> For the complete documentation index, see [llms.txt](https://docs.tropicalwater.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tropicalwater.xyz/architecture/erc-4626-compliance-notes.md).

# ERC 4626 Compliance Notes

The contract declares `IERC4626` to expose standard view functions, but intentionally deviates on the withdrawal side to enforce the two-path redemption system.

| Function                                           |     Status    | Behaviour                                                     |
| -------------------------------------------------- | :-----------: | ------------------------------------------------------------- |
| `asset()`                                          |       ✅       | Returns `ASSET` address.                                      |
| `totalAssets()`                                    |       ✅       | Virtual accounting via rate factor — not actual USDC balance. |
| `convertToAssets` / `convertToShares`              |       ✅       | Correct with yield.                                           |
| `deposit(assets, receiver)`                        |       ✅       | Primary entry point.                                          |
| `maxDeposit` / `maxMint`                           |       ✅       | Respect cap.                                                  |
| `previewDeposit` / `previewMint` / `previewRedeem` |       ✅       | Accurate previews.                                            |
| `mint(shares, receiver)`                           | ❌ **REVERTS** | Use `deposit` instead.                                        |
| `withdraw(assets, receiver, owner)`                | ❌ **REVERTS** | Use redemption request flow.                                  |
| `redeem(shares, receiver, owner)`                  | ❌ **REVERTS** | Use redemption request flow.                                  |
| `previewWithdraw(assets)`                          | ❌ **REVERTS** | Use `previewCompleteRedemption`.                              |
| `maxWithdraw(owner)`                               |  Returns `0`  | Use redemption request flow.                                  |
| `maxRedeem(owner)`                                 |  Returns `0`  | Use redemption request flow.                                  |

{% hint style="warning" %}
**Integrator warning.** Any aggregator, yield router, or DeFi protocol that integrates this vault using the standard IERC4626 `redeem()` or `withdraw()` interface will revert. Integrators must use `requestRedemption` / `completeRedemption` / `redeemEarly`.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://docs.tropicalwater.xyz/architecture/erc-4626-compliance-notes.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.
