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

feature: allow to the user to define a balance multiplier for tokens strategies #96

Open
lucasmenendez opened this issue Oct 5, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@lucasmenendez
Copy link
Collaborator

For some uses cases could be useful to reduce or increase the importance of a token on a predicate. It will modify the relevance of the balance of every token in the resulting voting weight that will be registered in the censuses of this strategy. The multiplier will be optionally defined in the token information of the strategy, and must be a float number (by default 1.0).

Here is a proposal of new the API request:

{
    "alias": "strategy_alias",
    "predicate": "MON AND (ANT OR USDC)",
    "tokens": {
        "MON": {
            "ID": "0x1234",
            "chainID": 5
        },
        "ANT": {
            "ID": "0x1234",
            "chainID": 1,
            // "minBalance": "1"
            "minBalance": "1",
            "balanceRatio": 0.8
        },
        "USDC": {
            "ID": "0x1234",
            // "chainID": 1
            "chainID": 1,
            "balanceRatio": 1.3
        }
    }
}
@lucasmenendez lucasmenendez added the enhancement New feature or request label Oct 5, 2023
@lucasmenendez lucasmenendez self-assigned this Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant