-
Notifications
You must be signed in to change notification settings - Fork 170
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(proto)!: Add MaxCollateralShare, MinCollateralLiquidity, MaxSupplyUtilization #1159
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.
This has been split off from #1141 - it contains the following:
Mainly:
- New proto fields
Token.Validate
for new fields- Related errors
Misc:
- Cleaned up proto comments
- Shortened
MustNewDecFromStr
args in various token tests
Codecov Report
@@ Coverage Diff @@
## main #1159 +/- ##
==========================================
- Coverage 44.13% 43.17% -0.97%
==========================================
Files 65 65
Lines 8367 8574 +207
==========================================
+ Hits 3693 3702 +9
- Misses 4430 4628 +198
Partials 244 244
|
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.
We can easily use basis points instead of string. Let's firstly continue with #1149
Blacklist bool | ||
MaxCollateralShare sdk.Dec | ||
MaxSupplyUtilization sdk.Dec | ||
MinCollateralLiquidity sdk.Dec | ||
} |
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.
instead of copying the structure, let's create a link to generated code. This way it will be easier to keep it in sync.
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.
up
Co-authored-by: Robert Zaremba <robert@zaremba.ch>
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.
utack
Adds proto and Token struct updates for three new Token fields
closes: #1095 #1036
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...