withdrawVault
Withdraw from specific vault
Signature
withdrawVaultV2(options: WithdrawVaultArguments): Promise<Transaction>
Params
interface WithdrawVaultArguments {
strategyId: string;
vaultId: string;
poolId: string;
address: string;
// Acceptable wasted amount percentage. Range: [0, 100), value is enlarged 10000 times
percentage: number;
// only withraw A token
onlyTokenA?: boolean;
// only withraw B token
onlyTokenB?: boolean;
slippage?: string | number;
deadline?: number;
txb?: Transaction;
}Examples
withdraw 50% a token and b token
only withdraw 50% B token, if onlyTokenA is true, only withdraw 50% B token
Last updated