Skip to content

Commit aefc6f5

Browse files
authored
added vaquita protocol adapter (#15465)
1 parent d2322a7 commit aefc6f5

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

projects/vaquita-protocol/index.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
const { sumTokens2 } = require('../helper/unwrapLPs');
2+
3+
const VAQUITA_CONTRACT = '0xfA95214EA8195e9D256Bb18adF0F56b3dEc66FaE';
4+
const A_TOKEN_ADDRESS = '0x4e65fE4DbA92790696d040ac24Aa414708F5c0AB';
5+
6+
async function tvl(api) {
7+
return sumTokens2({
8+
api,
9+
owners: [VAQUITA_CONTRACT],
10+
tokens: [A_TOKEN_ADDRESS],
11+
});
12+
}
13+
14+
module.exports = {
15+
base: { tvl },
16+
methodology: 'TVL is calculated by checking the aBasUSDC balance (Aave USDC on Base) held by VaquitaPool contract',
17+
};

0 commit comments

Comments
 (0)