Events
The event surface the indexer and activity terminal consume.
| Event | Key fields |
|---|---|
| Swap | trader, tokenIn, tokenOut, amountIn, amountOut, fee |
| Wrap | account, amountIn, minted, fee |
| Unwrap | account, burned, amountOut, fee |
| Redeem | account, burned, legs[], fee |
| StockpileBuy | asset, amount, cost, settlementId |
| FeeCollected | source, token, amount |
| Borrow / Repay / Liquidation | Phase II |
Design requirement
Every figure the interface displays must be reconstructible from events alone. If a number cannot be derived from the event log, it does not belong in the interface.