-
Notifications
You must be signed in to change notification settings - Fork 57
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
Max leverage #1093
Max leverage #1093
Conversation
use pool's leverageMax for proxy leverage calculation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1093 +/- ##
==========================================
+ Coverage 45.06% 45.08% +0.01%
==========================================
Files 964 967 +3
Lines 36943 37017 +74
==========================================
+ Hits 16649 16688 +39
- Misses 18989 19023 +34
- Partials 1305 1306 +1 |
(cosmos_proto.scalar) = "cosmos.Dec", | ||
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", | ||
(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.
need to use legacyPool structure and migrate old pool structure
could you please add migration script for leveragelp pools as well ? |
"github.com/elys-network/elys/x/leveragelp/types" | ||
) | ||
|
||
// Update params through gov proposal |
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.
// Update params through gov proposal | |
// Update max leverage for a pool through gov proposal |
"github.com/elys-network/elys/x/perpetual/types" | ||
) | ||
|
||
// Update params through gov proposal |
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.
// Update params through gov proposal | |
// Update max leverage for a pool through gov proposal |
Description