-
Notifications
You must be signed in to change notification settings - Fork 124
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
porgram: add high leverage mode #1240
Conversation
@@ -108,6 +108,7 @@ pub fn calculate_lp_shares_to_burn_for_risk_reduction( | |||
quote_oracle_price: i64, | |||
margin_shortage: u128, | |||
user_custom_margin_ratio: u32, | |||
user_high_leverage_mode: bool, |
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.
can we use margin mode enum?
pub struct HighLeverageModeConfig { | ||
pub max_users: u32, | ||
pub current_users: u32, | ||
pub padding: [u8; 32], |
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.
thinking of other useful things to have here:
maybe there should be a reduce only mode, so can allow number go down naturally to smaller set over time
No description provided.