Skip to content

Commit cc8d240

Browse files
dragudragu
and
dragu
authored
New OTTV contract (#14875)
Co-authored-by: dragu <[email protected]>
1 parent 1243088 commit cc8d240

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

projects/golden-otter-hub/index.js

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,28 @@
11
const { sumUnknownTokens } = require('../helper/unknownTokens')
2+
23
const GOLDEN_OTTER = '0x57268aFa4E496684611aAFB1E20D2116283C487e';
3-
const STAKING_CONTRACT = '0xc631A1A2E53984b461556b030A532BB83Bf49aEb';
4+
const OTTERVERSE = '0xBD179ad384a11Ac2162c0E808212ee3699D18447';
5+
6+
const LEGACY_STAKING_CONTRACT = '0xc631A1A2E53984b461556b030A532BB83Bf49aEb';
7+
const OTTV_STAKING_CONTRACT = '0x566c5441de4e952bc40aEE33004e42Da2Bc1e982';
48

59
const PAIR_GOTR_WLD = '0xccbbace82078705cab7f49b22fbdebfc3eb58840';
10+
const PAIR_OTTV_WLD = '0x9704d4c477a865ca359605d701aeffa1c4553e81';
611

712
const staking = async (api) => {
813
return sumUnknownTokens({
9-
tokens: [GOLDEN_OTTER],
10-
owner: STAKING_CONTRACT,
11-
lps: [PAIR_GOTR_WLD],
14+
tokensAndOwners: [
15+
[GOLDEN_OTTER, LEGACY_STAKING_CONTRACT],
16+
[OTTERVERSE, OTTV_STAKING_CONTRACT],
17+
],
18+
lps: [PAIR_GOTR_WLD, PAIR_OTTV_WLD],
1219
api,
1320
useDefaultCoreAssets: true,
14-
})
15-
}
21+
});
22+
};
1623

1724
module.exports = {
18-
methodology: 'Count TVL by counting the balance of the token in the staking contract and calculating its value in WLD based on the reserves of the GOTR/WLD pair.',
25+
methodology: 'TVL is calculated by checking the balances of GOLDEN_OTTER and OTTERVERSE tokens staked in their respective contracts, and valuing them using their LP pairs against WLD.',
1926
wc: {
2027
tvl: () => ({}),
2128
staking,

0 commit comments

Comments
 (0)