-
Notifications
You must be signed in to change notification settings - Fork 133
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
program: add flag to disable staking #989
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #989 +/- ##
==========================================
- Coverage 75.16% 75.09% -0.07%
==========================================
Files 131 131
Lines 32812 32842 +30
==========================================
+ Hits 24662 24663 +1
- Misses 8150 8179 +29
|
pub fn log_all_operations_paused(current: u8) { | ||
for operation in ALL_IF_OPERATIONS.iter() { | ||
if Self::is_operation_paused(current, *operation) { | ||
msg!("{:?} is paused", operation); |
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.
add spot market index to log
let spot_market = ctx.accounts.spot_market.load()?; | ||
|
||
validate!( | ||
!spot_market.is_if_operation_paused(IFOperation::Init), |
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.
if -> insurance
|
||
validate!( | ||
!spot_market.is_if_operation_paused(IFOperation::Init), | ||
ErrorCode::DefaultError, |
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.
InsuranceFundOperationPaused
No description provided.