# Common Frontend Flows

#### Exit Flow With Cooldown Enabled

1. Read `client.cooldownDuration({ vault })`.
2. If greater than 0, present the user with a "Request Withdrawal" button that calls `cooldownAssets` or `cooldownShares`.
3. Read `client.cooldowns({ vault, owner })` to display the unlock time and locked amount in the UI.
4. After maturity, present a "Claim Assets" button that calls `claimFromAp`.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://city-protocol.gitbook.io/docs/software-development-kit/vault/common-frontend-flows.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
