Skip to content

Commit 5e05fe0

Browse files
0xedevAdefolalu
andauthored
Added new defillama adapter to track donut TVL and protocol fees (#17308)
Co-authored-by: Ayobami Adefolalu <[email protected]>
1 parent 3e08a8a commit 5e05fe0

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

projects/donut/index.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
const { sumTokensExport } = require("../helper/unwrapLPs");
2+
3+
const DONUT_ADDRESS = "0xAE4a37d554C6D6F3E398546d8566B25052e0169C";
4+
const MINER_ADDRESS = "0xF69614F4Ee8D4D3879dd53d5A039eB3114C794F6";
5+
const MULTICALL_ADDRESS = "0x7a85CA4b4E15df2a7b927Fa56edb050d2399B34c";
6+
const LP_ADDRESS = "0xD1DbB2E56533C55C3A637D13C53aeEf65c5D5703";
7+
const WETH_ADDRESS = "0x4200000000000000000000000000000000000006";
8+
9+
module.exports = {
10+
methodology:
11+
"TVL is the sum of tokens in the Miner, Multicall, and LP contracts. Staking TVL counts the tokens locked in the Miner and Multicall contracts. Pool2 TVL counts the tokens in the Liquidity Pool.",
12+
base: {
13+
tvl: sumTokensExport({
14+
owners: [MINER_ADDRESS, MULTICALL_ADDRESS, LP_ADDRESS],
15+
tokens: [WETH_ADDRESS],
16+
}),
17+
staking: sumTokensExport({
18+
owners: [MINER_ADDRESS, MULTICALL_ADDRESS],
19+
tokens: [DONUT_ADDRESS],
20+
}),
21+
pool2: sumTokensExport({
22+
owner: LP_ADDRESS,
23+
tokens: [WETH_ADDRESS, DONUT_ADDRESS],
24+
}),
25+
},
26+
};

0 commit comments

Comments
 (0)