Skip to content
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

Advice on strategy for bancor staked tokens #21

Closed
TimDaub opened this issue Aug 10, 2021 · 3 comments
Closed

Advice on strategy for bancor staked tokens #21

TimDaub opened this issue Aug 10, 2021 · 3 comments

Comments

@TimDaub
Copy link

TimDaub commented Aug 10, 2021

Hi,

I'm interested in building a strategy to vote by staked tokens in bancor. I've taken a look around the internet, but I haven't found too much. I'm specifically interested in OCEAN/BNT. But I can make the strategy generic. Here's a bit of research:

Does anyone have tips or advice on how to get the number of staked tokens in a bancor pool?

@TimDaub
Copy link
Author

TimDaub commented Aug 10, 2021

@TimDaub
Copy link
Author

TimDaub commented Aug 10, 2021

I tried the Zerion adapter on Mainnet. But I wasn't successful...

@TimDaub
Copy link
Author

TimDaub commented Aug 11, 2021

Screen Shot 2021-08-11 at 14 19 45

glenn from bancor gave the deciding tip. Call https://etherscan.io/address/0x9712bb50dc6efb8a3d7d12cea500a50967d2d471#readContract totalProvierAmount.

I ended up implementing this as a test case in the "contract-call" strategy in the snapshot-strategies repository. Here's the working examples.json file.

@TimDaub TimDaub closed this as completed Aug 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant