-
Notifications
You must be signed in to change notification settings - Fork 195
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(perp): Add user discounts #1594
Conversation
|
||
repeated Discount global_discount = 8 [ (gogoproto.nullable) = false ]; | ||
|
||
repeated CustomDiscount custom_discounts = 9 [ (gogoproto.nullable) = false ]; |
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 proto breakage should be fine since unreleased, so we can group dnr genesis
# Conflicts: # CHANGELOG.md
SonarCloud Quality Gate failed.
|
Codecov Report
@@ Coverage Diff @@
## master #1594 +/- ##
==========================================
+ Coverage 71.21% 71.53% +0.31%
==========================================
Files 186 186
Lines 14493 14588 +95
==========================================
+ Hits 10321 10435 +114
+ Misses 3520 3505 -15
+ Partials 652 648 -4
|
* add discounts * impl genesis * fix test * make test more robust * galaxy brain int encoding fix * test and optimise * lint * CHANGELOG.md * do merge * clarify fee variable names in applyDiscountAndRebate func * refactor dnr_test.go as per PR review * add genesis tests --------- Co-authored-by: unknown unknown <unknown@unknown> Co-authored-by: godismercilex <[email protected]> Co-authored-by: Jonathan Gimeno <[email protected]>
test(tokenfactory): more CLI test coverage feat(perp): Add user discounts (#1594) * add discounts * impl genesis * fix test * make test more robust * galaxy brain int encoding fix * test and optimise * lint * CHANGELOG.md * do merge * clarify fee variable names in applyDiscountAndRebate func * refactor dnr_test.go as per PR review * add genesis tests --------- Co-authored-by: unknown unknown <unknown@unknown> Co-authored-by: godismercilex <[email protected]> Co-authored-by: Jonathan Gimeno <[email protected]> feat(perp): Add user discounts (#1594) * add discounts * impl genesis * fix test * make test more robust * galaxy brain int encoding fix * test and optimise * lint * CHANGELOG.md * do merge * clarify fee variable names in applyDiscountAndRebate func * refactor dnr_test.go as per PR review * add genesis tests --------- Co-authored-by: unknown unknown <unknown@unknown> Co-authored-by: godismercilex <[email protected]> Co-authored-by: Jonathan Gimeno <[email protected]>
…ModuleParams (#1607) * (proto): add some txs and events for token factory * #wip msg handlers impl * fix grpc query test * test(tokenfactory): validate basic and msg server tests * test(tokenfactory): update module params * fix(tokenfactory): changelog, linter, put blank CLi commands instead of panic * test(tokenfactory): add case for if the denom is not registered in ChangeAdmin * token factory CLI tests and queries with tests * test(tokenfactory/types): more coverage * combo squashed commit: Resolves strange proto break error test(tokenfactory): more CLI test coverage feat(perp): Add user discounts (#1594) * add discounts * impl genesis * fix test * make test more robust * galaxy brain int encoding fix * test and optimise * lint * CHANGELOG.md * do merge * clarify fee variable names in applyDiscountAndRebate func * refactor dnr_test.go as per PR review * add genesis tests --------- Co-authored-by: unknown unknown <unknown@unknown> Co-authored-by: godismercilex <[email protected]> Co-authored-by: Jonathan Gimeno <[email protected]> feat(perp): Add user discounts (#1594) * add discounts * impl genesis * fix test * make test more robust * galaxy brain int encoding fix * test and optimise * lint * CHANGELOG.md * do merge * clarify fee variable names in applyDiscountAndRebate func * refactor dnr_test.go as per PR review * add genesis tests --------- Co-authored-by: unknown unknown <unknown@unknown> Co-authored-by: godismercilex <[email protected]> Co-authored-by: Jonathan Gimeno <[email protected]> * ci(proto-lint): should refer to the PR, not just the last commit * ci(proto-lint): supply with github token in buf setup b/c rate limits --------- Co-authored-by: unknown unknown <unknown@unknown> Co-authored-by: godismercilex <[email protected]> Co-authored-by: Jonathan Gimeno <[email protected]> Co-authored-by: Matthias <[email protected]>
Description
Applies fee discounts based on the trader volume in the previous 30days.
Purpose