Giter VIP home page Giter VIP logo

Comments (4)

ChaituVR avatar ChaituVR commented on July 17, 2024

Is there a link to playground where we can test? i think it is because of the decimals value you pass,

from snapshot-strategies.

hjjlxm avatar hjjlxm commented on July 17, 2024

The link is too long, I'll put it in this hyperlink: erc20-with-balance

As instructed by the official doc, using USDC with decimal 6 and passed the "minbalance" to test.

Other Common strategies

erc20-with-balance is an example of strategy that checks whether the participant has a minimum amount of token required to vote and assigns all the votes to 1. You need to add the parameter “minBalance” and set it equal to the minimum balance required to vote on a proposal. This value is set to 0 by default.

from snapshot-strategies.

ChaituVR avatar ChaituVR commented on July 17, 2024

Maybe the playground link is wrong, i can't see any minbalance in it, i tried adding minBalance and it works. check here the user got 1 USDT, and if you remove minBalance you should see that voting power will be 1

from snapshot-strategies.

hjjlxm avatar hjjlxm commented on July 17, 2024

Thanks! I think it works.

For people who may seek help like this strategy, I'll comment as below:

  1. The token address doesn't need to be checksummed.
  2. make sure the param is “minBalance” not “minbalance”

from snapshot-strategies.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.