Skip to content

New OTTV contract #14875

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 2, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions projects/golden-otter-hub/index.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
const { sumUnknownTokens } = require('../helper/unknownTokens')

const GOLDEN_OTTER = '0x57268aFa4E496684611aAFB1E20D2116283C487e';
const STAKING_CONTRACT = '0xc631A1A2E53984b461556b030A532BB83Bf49aEb';
const OTTERVERSE = '0xBD179ad384a11Ac2162c0E808212ee3699D18447';

const LEGACY_STAKING_CONTRACT = '0xc631A1A2E53984b461556b030A532BB83Bf49aEb';
const OTTV_STAKING_CONTRACT = '0x566c5441de4e952bc40aEE33004e42Da2Bc1e982';

const PAIR_GOTR_WLD = '0xccbbace82078705cab7f49b22fbdebfc3eb58840';
const PAIR_OTTV_WLD = '0x9704d4c477a865ca359605d701aeffa1c4553e81';

const staking = async (api) => {
return sumUnknownTokens({
tokens: [GOLDEN_OTTER],
owner: STAKING_CONTRACT,
lps: [PAIR_GOTR_WLD],
tokensAndOwners: [
Copy link
Preview

Copilot AI Jun 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verify that the 'sumUnknownTokens' helper function correctly supports multiple token-owner pairs as provided here.

Copilot uses AI. Check for mistakes.

[GOLDEN_OTTER, LEGACY_STAKING_CONTRACT],
[OTTERVERSE, OTTV_STAKING_CONTRACT],
],
lps: [PAIR_GOTR_WLD, PAIR_OTTV_WLD],
api,
useDefaultCoreAssets: true,
})
}
});
};

module.exports = {
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.',
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.',
Copy link
Preview

Copilot AI Jun 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Consider clarifying which LP pair is associated with each token to provide further transparency on the valuation process.

Copilot uses AI. Check for mistakes.

wc: {
tvl: () => ({}),
staking,
Expand Down
Loading