Skip to main content

wrap_sol_instructions

Function wrap_sol_instructions 

Source
pub fn wrap_sol_instructions(user: &Pubkey, lamports: u64) -> [Instruction; 2]
Expand description

system_transfer(user → user_wsol_ata, lamports) followed by sync_native(user_wsol_ata). Used before any wSOL-quoted buy.