-
Notifications
You must be signed in to change notification settings - Fork 117
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
[DEC-2196] deprecate non-linear margin requirements #836
Changes from all commits
c626e7d
a3c5a62
28cf227
26e2c80
bedfeab
2a727a3
426876a
4ccdcfa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,7 +96,9 @@ message LiquidityTier { | |
// The maximum position size at which the margin requirements are | ||
// not increased over the default values. Above this position size, | ||
// the margin requirements increase at a rate of sqrt(size). | ||
uint64 base_position_notional = 5; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there an upgrade handler needed for this change? Or will the protocol just ignore this value after the upgrade? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, since the field is only marked as deprecated so it's backwards compatible. |
||
// | ||
// Deprecated since v3.x. | ||
uint64 base_position_notional = 5 [ deprecated = true ]; | ||
|
||
// The impact notional amount (in quote quantums) is used to determine impact | ||
// bid/ask prices and its recommended value is 500 USDC / initial margin | ||
|
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
Might be helpful to explicitly comment this is deprecated since some version, similar to Cosmos SDK style
I think here we should say
Deprecated since v3.x
?