Skip to content

Commit 5c5b84a

Browse files
committed
fix unleashed
1 parent f5852e5 commit 5c5b84a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

projects/etherfi-cash-collateral-management/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ async function tvl(api) {
1515
abi: 'function numContractsDeployed() view returns (uint256)',
1616
})) - 1;
1717

18-
const batch_size = 50;
18+
const batch_size = 32;
1919

2020

2121
const calls = [];
@@ -30,7 +30,7 @@ async function tvl(api) {
3030
});
3131
}
3232

33-
const chunks = sliceIntoChunks(calls, 100);
33+
const chunks = sliceIntoChunks(calls, 42);
3434
let i = 0
3535
for (const chunk of chunks) {
3636
const res = await api.multiCall({ abi: abi.getTotalCollateralForSafesWithIndex, calls: chunk })

projects/unleash/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
const { aaveExports } = require("../helper/aave");
1+
const { aaveV2Export } = require("../helper/aave");
22
const methodologies = require("../helper/methodologies");
33

44
module.exports = {
55
methodology: methodologies.lendingMarket,
6-
sty: aaveExports('sty', '0xe80c9a1D69cd3EE13A65BFA84C6Bb4Af7130D3a1', undefined, ['0x970C24ABaEA0dddf1b1C328237001c74Bb96c9e4'], { v3: true, } ),
6+
sty: aaveV2Export('0xC62Af8aa9E2358884B6e522900F91d3c924e1b38', { isAaveV3Fork: true }),
77
}
8+
9+
module.exports.sty.borrowed = () => ({}) // hacked

0 commit comments

Comments
 (0)