Skip to content

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

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.

@nope-finance nope-finance merged commit ed2f77c into upcoming Apr 16, 2025
5 of 6 checks passed
@nope-finance nope-finance deleted the no_borrow_withdraw branch April 16, 2025 17:27
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