Docs

Get a user's V2 vault withdrawal options

Public API

The vault's withdrawal options plus the exit paths one user can currently take: ordinary withdraw, force-withdraw and redeem-in-kind, each with the most assets it can exit, the penalty, and what the user receives. Values are quotes from indexed state, not execution guarantees; the Actions API re-reads live state when it prepares an exit. Try withdraw first and let the user choose a penalty or in-kind path explicitly.


GET
/v0/vaults-v2/{vault-selector}/users/{user-address}/withdrawal-options

Vault selector example: 1:0x23f5E9c35820f4baB695Ac1F19c203cC3f8e1e11 (format: <chain_id>:<vault_address>; replace with the target vault).

Path Parameters

user-address*string

Position owner address. Example: 0xabcdefabcdefabcdefabcdefabcdefabcdefabcd.

Formataddress
vault-selector*string

Selector formatted as <chain_id>:<vault_address>. Example: 1:0x23f5E9c35820f4baB695Ac1F19c203cC3f8e1e11.

Format<chain_id>:<vault_address>

Response Body

application/json

curl -X GET "https://example.com/v0/vaults-v2/1:0x23f5E9c35820f4baB695Ac1F19c203cC3f8e1e11/users/0xabcdefabcdefabcdefabcdefabcdefabcdefabcd/withdrawal-options"
{  "data": {    "adapter_penalties": [      {        "adapter_address": "0x1111111111111111111111111111111111111111",        "adapter_kind": "blue_market_adapter",        "force_deallocatable_assets": "60000000000000",        "penalty_rate_wad": "5000000000000000"      }    ],    "chain_id": 1,    "idle_assets": "12500000000000",    "liquidity_adapter_available_assets": "12500000000000",    "options": [      {        "cash_received_assets": "25000000000000",        "in_kind_market": null,        "max_assets": "25000000000000",        "path": "withdraw",        "penalty_assets": "0",        "received_position": null      },      {        "cash_received_assets": "39800995024876",        "in_kind_market": null,        "max_assets": "40000000000000",        "path": "force_withdraw",        "penalty_assets": "199004975124",        "received_position": null      },      {        "cash_received_assets": "25000000000000",        "in_kind_market": "1:0xb323495f7e4148be5643a4ea4a8221eef163e4bccfdedc2a6f4696baacbc86cc",        "max_assets": "40000000000000",        "path": "redeem_in_kind",        "penalty_assets": "74626865672",        "received_position": {          "supply_assets": "14925373134328"        }      }    ],    "user_address": "0x2222222222222222222222222222222222222222",    "vault_address": "0x23f5E9c35820f4baB695Ac1F19c203cC3f8e1e11"  }}