Skip to content

Commit

Permalink
mimas borrowed (DefiLlama#12908)
Browse files Browse the repository at this point in the history
  • Loading branch information
Define101 authored Dec 29, 2024
1 parent b666eca commit 19d66e2
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions projects/mimas-finance/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const ADDRESSES = require('../helper/coreAssets.json')
const {compoundExports} = require('../helper/compound')
const ADDRESSES = require('../helper/coreAssets.json');
const { compoundExports } = require('../helper/compound');

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

const customCompoundExports = (comptroller, cToken, underlying) => {
const originalExports = compoundExports(comptroller, cToken, underlying);
return {
...originalExports,
borrowed: async () => 0, // Hard-code borrowed to 0
};
};

module.exports = {
cronos: {
...compoundExports(
...customCompoundExports(
"0xdD8c94211dD19155EFFbd57EAb6D4e0DE31A3b9E",
mmCRO,
wCRO,
wCRO
),
staking: stakingUnknownPricedLP(
stakingContract,
token,
"cronos",
"0xf56FDfeeF0Ba3de23DaB13a85602bd7BF135E80f",
addr => `cronos:${addr}`
),
staking: stakingUnknownPricedLP(stakingContract, token, "cronos", "0xf56FDfeeF0Ba3de23DaB13a85602bd7BF135E80f", addr=>`cronos:${addr}`)
}
}
},
};

0 comments on commit 19d66e2

Please sign in to comment.