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

feat(incentives): create gauge and add to gauge fee charge (backport #2227) #2237

Merged
merged 3 commits into from
Jul 26, 2022

Conversation

czarcas7ic
Copy link
Member

@czarcas7ic czarcas7ic commented Jul 26, 2022

This is a backport of PR #2227

p0mvn and others added 2 commits July 26, 2022 11:43
* feat(incentives)!: create gauge and add to gauge fee charge

* initialize txfees keeper before incentives

* finish TestChargeFee

* refactor to charge fee in message server

* more tests

* clean up

* test balances

* test create gauge fees (#2228)

* test create gauge fees

* add mod account to test

* test create gauge fees

* add mod account to test

* move to msg server

* merge

* add comments

* account keeper comment

* fix TestCreateGaugeFee

* apply appparams.BaseCoinUnit

* remove txfees keeper from incentives and revert order

* clean up

* remove unused keepers fromm incentives keeper

* Update x/incentives/keeper/gauge.go

* Update x/incentives/keeper/gauge.go

* clean up

* fixture names

* chargeFeeIfSufficientFeeDenomBalance test name

* changelog

* comment

* finished tests (#2230)

* finished tests

* use keeper instead of math

* remove unused tests

* clean up

* sim only allow accounts with enough to pay fee

* lint

* move fee to types and reuse in simulation (#2234)

Co-authored-by: Adam Tucker <[email protected]>
Co-authored-by: Adam Tucker <[email protected]>
@czarcas7ic czarcas7ic marked this pull request as ready for review July 26, 2022 16:53
@czarcas7ic czarcas7ic requested a review from a team July 26, 2022 16:53
go.mod Outdated Show resolved Hide resolved
@czarcas7ic czarcas7ic merged commit a54777b into v11.x Jul 26, 2022
@czarcas7ic czarcas7ic deleted the adam/gauge-backport branch July 26, 2022 18:02
@github-actions github-actions bot mentioned this pull request Apr 1, 2024
@github-actions github-actions bot mentioned this pull request May 1, 2024
@github-actions github-actions bot mentioned this pull request May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants