Skip to main content

refresh_reserves_batch

Function refresh_reserves_batch 

Source
pub fn refresh_reserves_batch(
    reserves: &[ReserveInfo],
    skip_price_updates: bool,
) -> Instruction
Expand description

Build a refresh_reserves_batch instruction from a slice of reserve infos.

The remaining_accounts list is built automatically: for each reserve, the reserve account (writable) is followed by its lending market (readonly) and oracle accounts (readonly).

Returns: refresh_reserves_batch