Skip to content

Commit 4b4be7c

Browse files
committed
track aixcb DefiLlama#12847
1 parent 65f38b3 commit 4b4be7c

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

projects/aixcb/index.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
const ADDRESSES = require('../helper/coreAssets.json');
2+
const { staking } = require("../helper/staking");
3+
4+
// Token addresses
5+
const AIXCB_TOKEN = "0x76C71F1703Fbf19FFdcF3051E1e684Cb9934510f";
6+
const WETH = ADDRESSES.base.WETH;
7+
8+
// LP and staking addresses
9+
const AERODROME_LP_TOKEN = "0x19C3c7EEfb070EE00ddE367A9768De1DF52cbE5d";
10+
const LP_STAKING = "0xEE5C223aD4055beE465244d8Cb344fb22DaDa570";
11+
const AIXCB_STAKING = "0xF5acA5c3a0B70f847dE4652AC77BD601ccFE8339";
12+
13+
async function stakingTvl(api) {
14+
const totalStaked = await api.call({ abi: 'uint256:getTotalStaked', target: AIXCB_STAKING, });
15+
api.add(AIXCB_TOKEN, totalStaked);
16+
}
17+
18+
module.exports = {
19+
methodology: 'TVL consists of aixCB tokens staked in the AIXCBStaking contract (getTotalStaked) and Aerodrome vAMM-aixCB/WETH LP tokens staked in the AIXCBLPStaking contract (totalStakedAmount).',
20+
base: {
21+
tvl: () => ({}),
22+
staking: stakingTvl,
23+
pool2: staking(LP_STAKING, AERODROME_LP_TOKEN),
24+
},
25+
};

0 commit comments

Comments
 (0)