
Swan
Swan gamifies compliant repo funding, margin management, and bond liquidation on Hedera.
Demo
About
Swan is a collateral and repo arena that gives ATS-issued tokenized bonds a practical financing use case. Institutions assemble compliant bond baskets, optimize borrowing capacity under haircut and concentration rules, and compete for USDC funding from KYC-approved lenders. After funding, Swan monitors oracle prices, triggers margin calls when collateral value falls, supports repayment and collateral substitution, handles coupon obligations, and returns collateral when the repo closes. If the borrower defaults, the collateral enters a KYC-gated auction that repays the lender and returns any surplus to the borrower. The gamified interface rewards efficient collateral selection, competitive rates, quick margin responses, and successful repo completion.
How it's made
Swan is built inside the Asset Tokenization Studio monorepo using Solidity, Hardhat, TypeScript, React, Vite, RainbowKit, wagmi, and ethers. Its contracts are deployed on Hedera Testnet and integrate with four ATS-issued demonstration bonds and Hedera testnet USDC. RepoLifecycle manages collateral locking, lender offers, margin calls, substitution, repayment, maturity, and default. SignedPriceOracle verifies signed price observations and enforces freshness. ComplianceAuction handles voluntary and liquidation sales with delivery-versus-payment settlement, while KycAccessRegistry provides an on-chain KYC request and approval queue without storing personal information. ATS pause, freeze, balance, KYC, and transfer restrictions are checked throughout the lifecycle. The frontend connects through RainbowKit-compatible EVM wallets and presents the institutional workflow as a timed, score-driven arena.