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: refine-high-leverage-disable-criteria #1372

Merged
merged 3 commits into from
Dec 19, 2024

Conversation

0xbigz
Copy link
Member

@0xbigz 0xbigz commented Dec 11, 2024

No description provided.

// only check if signer is not user authority
if user.authority != *ctx.accounts.authority.key {
let slots_since_last_active = slot.safe_sub(user.last_active_slot)?;

let min_slots_inactive = if calc.total_spot_asset_value < QUOTE_PRECISION_I128 / 10
Copy link
Member

Choose a reason for hiding this comment

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

idt this is actually set if drift-rs flag isn't on

@crispheaney crispheaney merged commit 8d25337 into master Dec 19, 2024
7 of 9 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