GLAMIDL Reference

transfer_collateral_child_to_parent

Transfers collateral from a child subaccount back to its parent trader account.

Accounts

AccountRoleDescription
glam_statewritable`glam_state` account required by the `transfer_collateral_child_to_parent` instruction (see program source for the full constraint).
glam_vaultwritable`glam_vault` account required by the `transfer_collateral_child_to_parent` instruction (see program source for the full constraint).
glam_signersigner, writable`glam_signer` account required by the `transfer_collateral_child_to_parent` instruction (see program source for the full constraint).
integration_authorityread-only`integration_authority` account required by the `transfer_collateral_child_to_parent` instruction (see program source for the full constraint).
cpi_programread-only`cpi_program` account required by the `transfer_collateral_child_to_parent` instruction (see program source for the full constraint).
glam_protocol_programread-only`glam_protocol_program` account required by the `transfer_collateral_child_to_parent` instruction (see program source for the full constraint).
system_programread-only`system_program` account required by the `transfer_collateral_child_to_parent` instruction (see program source for the full constraint).

Arguments

ArgumentTypeNotes
paramsTransferCollateralChildToParentInstruction