Skip to content
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

Merged
merged 11 commits into from
Apr 21, 2024
Merged

Conversation

crispheaney
Copy link
Member

No description provided.

Copy link

codecov bot commented Apr 2, 2024

Codecov Report

Merging #989 (9c392b9) into master (7d12e0b) will decrease coverage by 0.07%.
The diff coverage is 0.00%.

❗ Current head 9c392b9 differs from pull request most recent head 74751b0. Consider uploading reports for the commit 74751b0 to get more accurate results

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     
Components Coverage Δ
drift 75.27% <0.00%> (-0.07%) ⬇️

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);
Copy link
Member

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),
Copy link
Member

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,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

InsuranceFundOperationPaused

@crispheaney crispheaney merged commit 7dbe8f2 into master Apr 21, 2024
6 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants