Skip to content

Commit b06cc17

Browse files
authored
Ethereum + arbitrum deployments (DefiLlama#11325)
* feat: monroeprotocol * feat: Monroe prod * MonroeProtocol: new chains deployments * feat: Monroe v2 * feat: arbitrum+eth deployments
1 parent 38668e6 commit b06cc17

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

projects/monroeprotocol/index.js

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,14 @@ const V1_SPECIAL_ADDRESSES = {
1616
monusd: "0x051baaA86328Fc7F522431932B8010F66f260A6a"
1717
}
1818
}
19-
// V2
20-
const roeUSD = "0xF88DF111343BffE7a2d89FB770d77A264d53f043"
19+
const DETERMINISTIC_roeUSD = "0x87196DB491ee1C77B91853CB79C118A322d6A9c0"
20+
// V2 addresses
21+
const V2_ADDRESSES = {
22+
manta: "0xF88DF111343BffE7a2d89FB770d77A264d53f043",
23+
avax: "0xF88DF111343BffE7a2d89FB770d77A264d53f043",
24+
arbitrum: DETERMINISTIC_roeUSD,
25+
ethereum: DETERMINISTIC_roeUSD
26+
}
2127

2228
async function tvl(api) {
2329
const owners = []
@@ -37,9 +43,10 @@ async function tvl(api) {
3743

3844
// V2
3945
if (V2_CHAINS.indexOf(api.chain) > -1) {
40-
const vaultLengthV2 = await api.call({ abi: "uint:getVaultsLength", target: roeUSD })
46+
const vaultLengthV2 = await api.call({ abi: "uint:getVaultsLength", target: V2_ADDRESSES[api.chain] })
4147
const vaultCallsV2 = createIncrementArray(vaultLengthV2)
42-
const vaultsV2 = await api.multiCall({ abi: "function vaults(uint vaultId) view returns (address)", calls: vaultCallsV2, target: roeUSD})
48+
const vaultsV2 = await api.multiCall({ abi: "function vaults(uint vaultId) view returns (address)", calls: vaultCallsV2, target: V2_ADDRESSES[api.chain]})
49+
4350
const _tokensV2 = await api.multiCall({ abi: 'address:collateralAsset', calls: vaultsV2})
4451
tokens.push(..._tokensV2)
4552
owners.push(...vaultsV2)

0 commit comments

Comments
 (0)