Contracts
Factories, vaults, adapters, roles, functions, and events.
| Contract | Address | Role |
|---|---|---|
| VaultFactory | Not deployed yet | Creates vaults. Holds allowlists, oracle, treasury, guardian, protocol fee. |
| UmblynVault | Not deployed yet | One vault per createVault call. Share token and accounting. |
| UniswapV4SwapAdapter | Not deployed yet | Exact-input Uniswap v4 swaps for vaults and the treasury. |
| Treasury | Not deployed yet | Holds the protocol fee shares. Can buy $UMBLYN. |
| ManualPriceOracle | Not deployed yet | Owner-set prices. Replace before real deposits. |
Roles
| Role | Held by | Can |
|---|---|---|
| Factory owner | Ownable2Step on VaultFactory | Adapters, tokens, protocol fee, oracle, guardian, treasury, wrapped native, staleness. Force-clear a breaker. |
| Guardian | Starts as the factory owner | Pause deposits. Clear a breaker when the vault is no longer breached. |
| Lead | createVault caller | Trade, allow tokens, tighten params. Cannot raise fees or loosen risk. |
| Treasury owner | Ownable2Step on Treasury | Set factory once, set $UMBLYN, buy back, recover tokens. |
| Oracle owner | Ownable on ManualPriceOracle | setPrice. This owner is a price authority until the oracle is replaced. |
Key functions
| Contract | Function | Caller |
|---|---|---|
| VaultFactory | createVault | Anyone. Caller becomes Lead. |
| VaultFactory | setAdapter, setTokenAllowed, setProtocolFeeBps, setOracle, setTreasury, setGuardian, setOracleStaleness, setWrappedNative | Owner |
| VaultFactory | setDepositsPaused | Owner or guardian |
| VaultFactory | clearCircuit(vault, force) | Owner, or guardian when force is false |
| UmblynVault | deposit, mint, depositNative | Anyone, if deposits are open and prices are fresh |
| UmblynVault | requestRedeem, cancelRedeem, claim | The withdrawal owner |
| UmblynVault | executeTrade, setTokenAllowed, tighten | Lead |
| UmblynVault | poke | Anyone. Crystallizes fees. |
| UniswapV4SwapAdapter | swap | A vault or the treasury |
| Treasury | buyback, recover, setUmblyn, setFactory | Treasury owner |
| ManualPriceOracle | setPrice | Oracle owner |
Events
| Contract | Event | When |
|---|---|---|
| VaultFactory | VaultCreated | A vault is deployed |
| VaultFactory | AdapterUpdated, TokenAllowlistUpdated | An allowlist changes |
| UmblynVault | FeesMinted | Fee shares are minted |
| UmblynVault | TradeExecuted | A swap settles inside the caps |
| UmblynVault | WithdrawalRequested, WithdrawalClaimed, WithdrawalCancelled | Exit lifecycle |
| UmblynVault | CircuitBreakerTripped, CircuitCleared | Breaker trips or is cleared |
| UmblynVault | OracleStale | Crystallize sees a stale price and pauses trading |
| UmblynVault | DepositsPausedSet | The factory pauses or opens deposits |
| Treasury | BoughtBack | A buyback receives $UMBLYN |
| ManualPriceOracle | PriceSet | The owner writes a price |
External addresses the adapter expects
These are not Umblyn deployments. They are the public Elysium addresses recorded in ElysiumAddresses. Confirm them before a deploy. WHYPE was checked as a contract whose symbol is WHYPE. It is the wrapper published with the Uniswap routers.
| Name | Address |
|---|---|
| Uniswap v4 PoolManager | 0xE2e105d3F7209A9DA11f83cCf3E7398a753823F1 |
| WHYPE | 0xbA876237B0F021A6c6D852d6c26E107997cC5E81 |