Withdrawals
Last updated
Last updated
To initiate a withdrawal, use the following code:
Where:
vaultAddress
– One of the vaults set up by Yelay. See vault addresses here:
🔗
poolId
– One of the projects (also referred to as "pools") set up by the client within the vault.
amount
– The amount to withdraw.
Withdrawals always return the vault’s native asset:
A USDC vault returns USDC.
A WETH vault returns WETH, and so on.