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

relax staleness requirements when withdrawing with no borrows #195

Open
wants to merge 1 commit into
base: upcoming
Choose a base branch
from

Conversation

0xripleys
Copy link

If an obligation has no borrows, we don't need to enforce price freshness when trying to withdraw.
This will help permissionless pool users withdraw in the cases where the pool operator has configured invalid oracles

@@ -785,6 +785,7 @@ fn process_redeem_reserve_collateral(
let clock = &Clock::get()?;
let token_program_id = next_account_info(account_info_iter)?;

_refresh_reserve_interest(program_id, reserve_info, clock)?;
Copy link
Author

Choose a reason for hiding this comment

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

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.

1 participant