Credit
Unwrap position from earn vault
Creates list of contract calls to unwrap a position from an earn vault, converting vault shares back to the underlying asset.
get/credit/earn/unwrap
Query parameters
ownerstring required
Owner address that holds the vault shares
receiverstring required
Address that will receive the unwrapped underlying tokens
amountstring required
Amount of shares to unwrap
assetstring required
Vault shares token address
slippagenumber
Slippage tolerance in percent (e.g. 0.5 = 0.5%)
chainstring required
Chain ID in CAIP format
Response
OK
Example response
{
"amountOut": "1000000",
"minAmountOut": "997000",
"tokenOut": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
}