Skip to content

Commit

Permalink
Added curve pools for maha.xyz (DefiLlama#11256)
Browse files Browse the repository at this point in the history
* removed old maha token and lp from treasury

* added zai curve lp pools into pool2 for mahaxyz

* added staking contracts for Lp tokens
  • Loading branch information
senamakel authored and tlatkdgus1 committed Nov 25, 2024
1 parent 81aa40e commit beb70af
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 23 deletions.
35 changes: 17 additions & 18 deletions projects/mahaxyz/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const ADDRESSES = require('../helper/coreAssets.json')
const { sumTokens2 } = require("../helper/unwrapLPs.js");
const { staking } = require("../helper/staking");
const ADDRESSES = require('../helper/coreAssets.json');
const { sumTokensExport } = require('../helper/unwrapLPs.js');

const eth = {
// tokens
Expand All @@ -11,15 +10,16 @@ const eth = {
weth: ADDRESSES.ethereum.WETH,
zai: "0x69000405f9dce69bd4cbf4f2865b79144a69bfe0",

// pools
zaiFraxBPCurve: "0x057c658dfbbcbb96c361fb4e66b86cca081b6c6a",
mahaEthCurve: "0x6b7127a638edc7db04bede220c7c49930fdb4160",

// staking contracts
// peg stability modules
psmUSDC: '0x69000052a82e218ccb61fe6e9d7e3f87b9c5916f',
stakedZai: '0x69000e468f7f6d6f4ed00cf46f368acdac252553',
zaiFraxBPStaked: "0x6900066d9f8df0bfaf1e25ef89c0453e8e12373d",

// pools
zaiUsdcCurve: "0x6ee1955afb64146b126162b4ff018db1eb8f08c3",
zaiMahaCurve: "0x0086ef314a313018c70a2cd92504c7d1038a25aa",

// pool staking contracts
zaiMahaCurveStaking: "0x237efe587f2cb44597063dc8403a4892a60a5a4f",
zaiUsdcCurveStaking: "0x154F52B347D8E48b8DbD8D8325Fe5bb45AAdCCDa",
};

Object.keys(eth).forEach((k) => (eth[k] = eth[k].toLowerCase()));
Expand All @@ -29,13 +29,12 @@ const pegStabilityModules = [eth.psmUSDC]

module.exports = {
ethereum: {
// todo add pool2
// pool2: genericUnwrapCvxDeposit({
// tokensAndOwners: [
// [eth.zaiFraxBP, eth.zaiFraxBPStaked],
// ]
// }),
// staking: staking(eth.stakedZai, eth.zai), // we dont staking for CDP as tokens backing the minted token is already counted towards tvl
tvl: () => sumTokens2({ owners: pegStabilityModules, tokens: collaterals}),
pool2: sumTokensExport({
tokensAndOwners: [
[eth.zaiMahaCurve, eth.zaiMahaCurveStaking],
[eth.zaiUsdcCurve, eth.zaiUsdcCurveStaking]
]
}),
tvl: sumTokensExport({ owners: pegStabilityModules, tokens: collaterals }),
}
};
8 changes: 3 additions & 5 deletions projects/treasury/mahaxyz.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
const { nullAddress, treasuryExports } = require("../helper/treasury");
const { treasuryExports } = require("../helper/treasury");

const treasury = "0x6357EDbfE5aDA570005ceB8FAd3139eF5A8863CC";

module.exports = treasuryExports({
ethereum: {
owners: [treasury],
ownTokens: [
"0x745407c86DF8DB893011912d3aB28e68B62E49B0", // MAHA
"0xB4d930279552397bbA2ee473229f89Ec245bc365", // MAHA
"0x6b7127a638eDC7Db04bEde220c7c49930fdB4160" // MAHAETH
"0x745407c86DF8DB893011912d3aB28e68B62E49B0", // MAHA
]
},
})
})

0 comments on commit beb70af

Please sign in to comment.