closeVault

Remove a specific vault that includes follow steps:

  1. collectClmmRewardDirectReturnVault

  2. withdrawVault

  3. closeVault

Signature

closeVault(options: CloseVaultArguments): Promise<Transaction>

Params

interface CloseVaultArguments {
  strategyId: string;
  vaultId: string;
  txb?: Transaction;
}

Examples

const txb = await sdk.vault.closeVault({
    "strategyId": "0x4880c0a3ea02c10382321828894f1c15d75348a965840d358f7127bc62d7e55c",
    "vaultId": "0xe3348159f00d59ff0c4f312112fe661ad737d5b802201532e74d4ad8d45c818a"
});

Last updated