Skip to main content

unwrap

Function unwrap 

Source
pub fn unwrap(
    signer: Pubkey,
    mint_stable: Pubkey,
    protocol_id: u8,
    amount: u64,
    min_usdc_out: u64,
) -> Instruction
Expand description

Unwrap stablecoin to USDC from a single protocol. For large withdrawals spanning multiple protocols, use build_unwrap_bundle. Position must exist (created during wrap).