Settings
Treasury status
โ
Client liabilities (AED-S)
โ
House equity (AED-S)
โ
Capital reserve
โ
Your role
โ
๐ค
Your Account
| AED-S balance | โ |
| ETH balance | โ |
| KYC tier | โ |
| Daily limit | โ |
| Daily used | โ |
โ
Compliance Console
๐ก
Guardian & Operations
๐
How to use this dApp
- Connect your wallet โ press Connect Wallet in the top-right. The dApp is configured for the Sepolia testnet (see the chain badge); approve the network switch in your wallet if prompted.
- Check your account โ the Your Account card shows your AED-S and ETH balances, KYC tier and daily withdrawal limits.
- Deposit funds โ enter an amount and press Deposit (AED-S) or Deposit ETH. For AED-S the dApp first asks you to approve the token spend, then credits your segregated client ledger.
- Withdraw โ fill Withdraw to (yourself or an approved counterparty) and the amount, then press Withdraw. KYC limits and the capital reserve are enforced on-chain.
- Operate as staff โ the Compliance Console sets KYC tiers, sanctions, freezes and counterparties; Guardian & Operations pauses the treasury, sets the reserve ratio and recovery address, and runs the emergency drain.
โ
The process โ what happens on-chain
- KYC & screening โ the ComplianceModule contract stores each account's KYC tier (None / Standard / Enhanced), sanction and freeze flags; the treasury calls isBlocked() before every deposit and withdrawal.
- Client deposit โ VASPTreasury.deposit() / depositEth() verify the asset is listed, take custody of AED-S (MockStable) or ETH into a segregated client ledger, and checkpoint client totals per block for audit.
- Withdrawal limits โ VASPTreasury reads the ComplianceModule KYC-tier limits and enforces per-transaction and rolling 24-hour ceilings before funds can leave.
- Capital reserve โ every outflow re-checks that house equity stays at least reserveBps ร client liabilities per asset, otherwise the transaction reverts.
- Regulatory & emergency powers โ the guardian can pause() the treasury; while paused, emergencyDrain() sends every asset to the licensed recovery address. Compliance can forcedTransfer() frozen clients' funds to recovery.
๐
Flow graph โ funds through the treasury
Amber boxes are on-chain stages; blue arrows trace client funds from deposit to the guardian's emergency drain.