Skip to main content

Module refresh

Module refresh 

Source

Enums§

RefreshError
Error type for refresh operations.

Functions§

refresh_all_for_obligation
Build all refresh instructions needed for an obligation: refresh each unique reserve (deposits + borrows), then refresh the obligation itself.
refresh_obligation
Build a single refresh_obligation instruction with all required remaining accounts (deposit reserves, borrow reserves, referrer token states) derived from the obligation info.
refresh_reserve
Build a single refresh_reserve instruction.
refresh_reserves_batch
Build a refresh_reserves_batch instruction from a slice of reserve infos.