Player's Guide

CHAN — Opt-In Security

Last updated:

One-line pitch: The registry of which wallet owns which YUE and which contracts that YUE has opted in.

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.

  • 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

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
0xe250bf9729076B14A8399794B61C72d0F4AeFcd8
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.

  • Cost: gas on every opt-in flip and wallet move. No protocol fee.
  • Reward: none — CHAN is a safety layer, not a payout.
  • You need to have onboarded via SEI. Without a YUE, CHAN has nothing to manage for you.
  • OptIn selects the YUE registered to tx.origin. The signing wallet must already have a YUE in Yan; LAU ownership is a separate role.

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.

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.