-
Notifications
You must be signed in to change notification settings - Fork 13
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
[V6] Add ERC20 incentive type, improve multiplier #42
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor adjustments needed. Also don't forget to bump the package version in the config
@@ -259,8 +265,13 @@ def is_voter( | |||
self, | |||
ual: UAL, | |||
address: Address | None = None, | |||
incentives_type: ParanetIncentivizationType = ParanetIncentivizationType.NEUROWEB, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a breaking change, we shouldn't do that imo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I c your logic, but I would rather make default None and if it's None, then figure it out from the ual
dkg/paranet.py
Outdated
) -> str | dict[str, str]: | ||
incentives_pool_name = f"Paranet{str(incentives_type)}IncentivesPool" | ||
incentives_pool_name = f"ParanetNeurowebIncentivesPool" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's move it to constants perhaps
dkg/dataclasses.py
Outdated
NEUROWEB = auto() | ||
class ParanetIncentivizationType(Enum): | ||
NEUROWEB = "Neuroweb" | ||
ERC20 = "NeurowebERC20" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we call it NEUROWEB_ERC20
? There is no support for any custom ERC20 atm, so perhaps it would be more clear
No description provided.