Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

feat: implement velodrome #832

Merged
merged 5 commits into from
Jul 6, 2022
Merged

feat: implement velodrome #832

merged 5 commits into from
Jul 6, 2022

Conversation

network,
resolveContract: ({ address, network }) => this.contractFactory.velodromeVe({ address, network }),
resolveStakedTokenBalance: async ({ contract, address, multicall }) => {
const veCount = Number(await multicall.wrap(contract).tokenOfOwnerByIndex(address, 0));
Copy link
Contributor

@immasandwich immasandwich Jul 6, 2022

Choose a reason for hiding this comment

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

This should be balanceOf(address) not tokenOfOwnerByIndex(address, 0) to get the number of ve NFTs held by the address.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nice catch

@tonzgao tonzgao requested a review from immasandwich July 6, 2022 21:38
@immasandwich
Copy link
Contributor

@tonzgao one last error, I think you put balanceOf(address, 0) instead of balanceOf(address)

@immasandwich immasandwich merged commit 4201d07 into Zapper-fi:main Jul 6, 2022
@immasandwich
Copy link
Contributor

@tonzgao VELO token coming soon too.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants