-
Notifications
You must be signed in to change notification settings - Fork 51
clearing_house: init user groups #62
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
base: master
Are you sure you want to change the base?
Conversation
| let markets = &markets.load()?; | ||
| let user_positions = &mut user_positions.load_mut()?; | ||
| let funding_payment_history = &mut funding_payment_history.load_mut()?; | ||
| settle_funding_payment(user, user_positions, markets, funding_payment_history, now)?; |
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.
would it be better to settle funding and then set the collateral_before?
think it more accurately reflects the user collateral just before deposit
| let markets = &markets.load()?; | ||
| let user_positions = &mut user_positions.load_mut()?; | ||
| let funding_payment_history = &mut funding_payment_history.load_mut()?; | ||
| settle_funding_payment(user, user_positions, markets, funding_payment_history, now)?; |
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.
here as well for collateral_before
| @@ -0,0 +1,27 @@ | |||
| use anchor_lang::prelude::*; | |||
|
|
|||
| pub const UNINITIALIZED_NAME: [u8; 32] = [32; 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.
is this just all spaces? can emojis be used in the name?
No description provided.