Skip to content

Commit f4637c6

Browse files
authored
Refactor module.exports to include LP tokens in staking
1 parent 273810c commit f4637c6

File tree

1 file changed

+24
-23
lines changed

1 file changed

+24
-23
lines changed

projects/donut/index.js

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
11
const { sumTokensExport } = require("../helper/unwrapLPs");
22

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";
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";
88

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-
};
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+
lps: [LP_ADDRESS],
21+
}),
22+
pool2: sumTokensExport({
23+
owner: LP_ADDRESS,
24+
tokens: [WETH_ADDRESS, DONUT_ADDRESS],
25+
}),
26+
},
27+
};

0 commit comments

Comments
 (0)