-
Notifications
You must be signed in to change notification settings - Fork 613
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
[VS Incentives]: remove gauge creation logic from CreateGroup
, call CreateGauge
instead
#6513
Comments
I agree with avoiding duplicate code, but we should be careful about storing group gauges in state alongside regular gauges since we fetch all active gauges from state for distribution using a prefix iterator: osmosis/x/incentives/keeper/hooks.go Line 51 in 9691451
This means if we use |
This is a valid concern. However, a workaround was fond and tracked:
Additionally, we must write the osmosis/x/incentives/keeper/gauge.go Line 424 in 58e1d3e
Lmk if this doesn't address your concern |
It does, great! |
Context
Logic in
CreateGroup
essentially duplicaed gauge creation.We should instead encapsulated any gauge creation inside
CreateGauge
and call that fromCreateGroup
A/C
CreateGauge
& update testsCreateGauge
fromCreateGroup
The text was updated successfully, but these errors were encountered: