Skip to content

Commit 19d66e2

Browse files
authored
mimas borrowed (DefiLlama#12908)
1 parent b666eca commit 19d66e2

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

projects/mimas-finance/index.js

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const ADDRESSES = require('../helper/coreAssets.json')
2-
const {compoundExports} = require('../helper/compound')
1+
const ADDRESSES = require('../helper/coreAssets.json');
2+
const { compoundExports } = require('../helper/compound');
33

44
const { stakingUnknownPricedLP } = require("../helper/staking");
55
const token = "0x10C9284E6094b71D3CE4E38B8bFfc668199da677";
@@ -8,13 +8,27 @@ const stakingContract = "0x268E2E1e5a465034Ee5742DA578feb41B228ad7B";
88
const wCRO = ADDRESSES.cronos.WCRO_1;
99
const mmCRO = "0xff024211741059a2540b01f5Be2e75fC0c1b3d82";
1010

11+
const customCompoundExports = (comptroller, cToken, underlying) => {
12+
const originalExports = compoundExports(comptroller, cToken, underlying);
13+
return {
14+
...originalExports,
15+
borrowed: async () => 0, // Hard-code borrowed to 0
16+
};
17+
};
18+
1119
module.exports = {
1220
cronos: {
13-
...compoundExports(
21+
...customCompoundExports(
1422
"0xdD8c94211dD19155EFFbd57EAb6D4e0DE31A3b9E",
1523
mmCRO,
16-
wCRO,
24+
wCRO
25+
),
26+
staking: stakingUnknownPricedLP(
27+
stakingContract,
28+
token,
29+
"cronos",
30+
"0xf56FDfeeF0Ba3de23DaB13a85602bd7BF135E80f",
31+
addr => `cronos:${addr}`
1732
),
18-
staking: stakingUnknownPricedLP(stakingContract, token, "cronos", "0xf56FDfeeF0Ba3de23DaB13a85602bd7BF135E80f", addr=>`cronos:${addr}`)
19-
}
20-
}
33+
},
34+
};

0 commit comments

Comments
 (0)