Skip to content

Commit 138d6e4

Browse files
authored
Zivoe TVL updates (DefiLlama#16898)
1 parent dd75b15 commit 138d6e4

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

projects/zivoe/index.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ const M0 = "0x437cc33344a0B27A429f795ff6B469C72698B291";
2525
const aUSDC = "0x98C23E9d8f34FEFb1B7BD6a91B7FF122F4e16F5c";
2626

2727
// Borrowers
28-
const BORROWER_NEW_CO = "0x50C72Ff8c5e7498F64BEAeB8Ed5BE83CABEB0Fd5";
29-
const BORROWER_ZINCLUSIVE = "0xC8d6248fFbc59BFD51B23E69b962C60590d5f026";
28+
const BORROWER_PORTFOLIO_B = "0x50C72Ff8c5e7498F64BEAeB8Ed5BE83CABEB0Fd5";
29+
const BORROWER_PORTFOLIO_A = "0xC8d6248fFbc59BFD51B23E69b962C60590d5f026";
3030

3131
const OCC_CYCLE_START_BLOCK = 23484381;
3232

@@ -40,6 +40,7 @@ async function tvl(api) {
4040
[USDC, ST_STT],
4141
[USDC, OCT_DAO],
4242
[USDC, OCC_Variable],
43+
[USDC, OCC_Cycle],
4344

4445
// USDT balances
4546
[USDT, DAO],
@@ -83,25 +84,25 @@ async function borrowed(api) {
8384
const occVariableBorrowed = await api.call({
8485
abi: "function usage(address) view returns (uint256)",
8586
target: OCC_Variable,
86-
params: [BORROWER_NEW_CO],
87+
params: [BORROWER_PORTFOLIO_B],
8788
});
8889

89-
const zinclusiveBorrowed = await api.call({
90+
const portfolioABorrowed = await api.call({
9091
abi: "function usage(address) view returns (uint256)",
9192
target: OCC_Cycle,
92-
params: [BORROWER_ZINCLUSIVE],
93+
params: [BORROWER_PORTFOLIO_A],
9394
});
9495

95-
const newCoBorrowed = await api.call({
96+
const portfolioBBorrowed = await api.call({
9697
abi: "function usage(address) view returns (uint256)",
9798
target: OCC_Cycle,
98-
params: [BORROWER_NEW_CO],
99+
params: [BORROWER_PORTFOLIO_B],
99100
});
100101

101102
const isOCCCycle = api.block >= OCC_CYCLE_START_BLOCK;
102103
if (isOCCCycle) {
103-
api.add(USDC, zinclusiveBorrowed);
104-
api.add(USDC, newCoBorrowed);
104+
api.add(USDC, portfolioABorrowed);
105+
api.add(USDC, portfolioBBorrowed);
105106
} else {
106107
api.addTokens([USDC], owedAmounts);
107108
api.add(USDC, occVariableBorrowed);

0 commit comments

Comments
 (0)