Smart Contract Architecture
The contract set the frontend is written against.
Frontend01
Server components, client islandsProtocol adapter02
The only data seamContracts03
Not deployedEvents04
Emitted per actionIndexer05
Not connectedProtocol data06
Series, activity, accounting| Contract | Responsibility |
|---|---|
| Liquid token | Fixed-supply ERC-20 traded on external venues. |
| Claim token | Claim token minted on wrap, burned on redemption. |
| Wrapper | Mints and redeems the claim token, charges wrap fees. |
| Stockpile vault | Custodies acquired assets and reports balances. |
| Reserve engine | Routes protocol fees into asset acquisitions. |
| Fee router | Collects and accounts for every fee source. |
| Oracle registry | Valuation sources used for NAV and claim value. |
| Lending market | Phase II. Borrow against the claim token. |
Expectations the frontend encodes
- Stockpile balances are readable per asset without an off-chain service
- The wrapper exposes a quote function matching the fee arithmetic
- Every state change emits an event with enough detail to index
- Fees are attributable to a source at collection time