File tree Expand file tree Collapse file tree
content/stellar-contracts/tokens/vault Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -146,11 +146,13 @@ The vault module implements the ERC-4626 tokenized vault standard with one minor
146146
147147### ERC-4626 Deviation
148148
149- ⚠️ ** DEVIATION FROM ERC-4626** : The ` query_asset() ` function will panic if the asset address is not set, whereas ERC-4626 requires it to never revert.
149+ <Callout type = " warning" >
150+ ** DEVIATION FROM ERC-4626** : The ` query_asset() ` function will panic if the asset address is not set, whereas ERC-4626 requires it to never revert.
150151
151152** Rationale** : Soroban doesn't have a "zero address" concept like EVM. Returning ` Option<Address> ` would break ERC-4626 compatibility.
152153
153154** Mitigation** : Always initialize the vault properly in the constructor. Once initialized, ` query_asset() ` will never panic during normal operations.
155+ </Callout >
154156
155157Aside from this deviation, the vault implementation for Soroban provides:
156158
You can’t perform that action at this time.
0 commit comments