Skip to content

Commit 94c71a7

Browse files
committed
separate fusefi lending
1 parent 237d759 commit 94c71a7

File tree

3 files changed

+26
-17
lines changed

3 files changed

+26
-17
lines changed

projects/fusefi-lending/index.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
const { usdCompoundExports } = require('../helper/compound');
2+
3+
const unitroller_fuse = "0x26a562B713648d7F3D1E1031DCc0860A4F3Fa340"
4+
5+
const abis = {
6+
oracle: "address:getRegistry",
7+
underlyingPrice: "function getPriceForUnderling(address cToken) view returns (uint256)",
8+
}
9+
10+
const olalending = usdCompoundExports(unitroller_fuse, "fuse", "0x025B0ff0920298e087308F3b2de0CF6399685909", abis)
11+
module.exports = {
12+
fuse:{
13+
tvl: olalending.tvl,
14+
borrowed: async function(timestamp, ...otherParams){
15+
if(timestamp >= 1648684800){
16+
return {}
17+
}
18+
return olalending.borrowed(timestamp, ...otherParams)
19+
}
20+
},
21+
hallmarks: [
22+
[1648684800, "Ola Finance exploit"]
23+
]
24+
}

projects/fusefi/index.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
const sdk = require("@defillama/sdk");
21
const swap = require("./swap");
3-
const olalending = require("./olalending");
42
const { stakings } = require("../helper/staking");
53

64
const VOLT_TOKEN = "0x34Ef2Cc892a88415e9f02b91BfA9c91fC0bE6bD4".toLowerCase();
@@ -10,10 +8,7 @@ const VOLT_VOTE_ESCROW = "0xB0a05314Bd77808269e2E1E3D280Bff57Ba85672".toLowerCas
108
module.exports = {
119
misrepresentedTokens: true,
1210
fuse: {
13-
tvl: sdk.util.sumChainTvls([swap.tvl, olalending.tvl]),
11+
tvl: swap.tvl,
1412
staking: stakings([VOLT_BAR, VOLT_VOTE_ESCROW], VOLT_TOKEN),
15-
},
16-
hallmarks: [
17-
[1648684800, "Ola Finance exploit"]
18-
]
13+
}
1914
};

projects/fusefi/olalending.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)