Skip to main content

vault_batch_transaction_account_close

Function vault_batch_transaction_account_close 

Source
pub fn vault_batch_transaction_account_close(
    ctx: Context<'_, '_, '_, '_, VaultBatchTransactionAccountClose<'_>>,
) -> Result<()>
Expand description

Closes a VaultBatchTransaction belonging to the batch and proposal. transaction can be closed if either:

  • it’s marked as executed within the batch;
  • the proposal is in a terminal state: Executed, Rejected, or Cancelled.
  • the proposal is stale and not Approved.