CHAN — Opt-In Security
One-line pitch: The registry of which wallet owns which YUE and which contracts that YUE has opted in.
What this is
Section titled “What this is”CHAN maps an origin wallet to its registered YUE through Yan(address) and records per-YUE, per-contract opt-ins. These are separate from ERC-20 allowances, token balances and MultiOwnable membership.
Opt-in gates CHAN’s specified withdrawal and force-transfer paths. Public YUE.Hong/Hung trades use caller balances against YUE inventory without this opt-in check.
If you’ve played a web3 game before
Section titled “If you’ve played a web3 game before”- Closest analogy: a per-contract token allowance — like approving a DEX router to spend your USDC, except tracked by CHAN on your behalf.
- Or: the connected apps / connected wallets list in MetaMask — revokable, granular, explicit.
- Or: Discord’s per-server notification settings — each relationship is opt-in separately.
| Dysnomia term | What it maps to |
|---|---|
| Yan | Directory of wallet → YUE address |
| Opt-in | Permission grant for a specific spender contract |
| NewSpenderContractOptIn | Event emitted every time you flip a permission |
| Xie | The XIE power contract, which CHAN calls into for reward math |
What you actually do with it
Section titled “What you actually do with it”Read Yan(wallet) for a registered YUE, then OptedIn(yue, contract) for each known spender. NewSpenderContractOptIn events provide candidates, not a getter for every current permission. Recheck candidate entries at the same block.
OptIn(contract, allow) changes the signing origin’s registered YUE permission. TransferYue(yue, newOrigin) requires the current Origin and an unused destination registry entry. It does not transfer every owner role or an ERC-20 balance.
Use these calls here. Simulations preview the current state; each confirmed call is a separate transaction.
CHAN.Yan(address)Read
Open this function to load its call form.
CHAN.OptedIn(address Yue, address Contract)Read
Open this function to load its call form.
CHAN.OptIn(address Contract, bool Allow)Simulate / call
Open this function to load its call form.
CHAN.TransferYue(address Yue, address NewOrigin)Simulate / call
Open this function to load its call form.
Rewards / costs
Section titled “Rewards / costs”- Cost: gas on every opt-in flip and wallet move. No protocol fee.
- Reward: none — CHAN is a safety layer, not a payout.
Requirements & gating
Section titled “Requirements & gating”- You need to have onboarded via SEI. Without a YUE, CHAN has nothing to manage for you.
OptInselects the YUE registered totx.origin. The signing wallet must already have a YUE inYan; LAU ownership is a separate role.
Where it connects
Section titled “Where it connects”CHAN sits between your YUE and every contract that wants to move funds into or out of it. CHOA, WAR, WORLD, QING, CHEON — they all check in with CHAN before touching your bank.
Quick FAQ
Section titled “Quick FAQ”Public YUE Hong and Hung trades do not check these opt-ins, so leaving a contract opted out is not a lock on your bank.
Want the Solidity? The contract reference lives at
technical/domain/sky/CHAN.