Skip to content

Commit c68ef7d

Browse files
committed
use callout
1 parent 20993f2 commit c68ef7d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • content/stellar-contracts/tokens/vault

content/stellar-contracts/tokens/vault/vault.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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

155157
Aside from this deviation, the vault implementation for Soroban provides:
156158

0 commit comments

Comments
 (0)