Skip to main content

collect_platform_fee

Function collect_platform_fee 

Source
pub fn collect_platform_fee(
    signer: Pubkey,
    treasury: Pubkey,
    stable_address: Pubkey,
    protocol_id: u8,
) -> Instruction
Expand description

Collect platform fees from a position. Admin can call this to collect the protocol’s share of yield from any position.