Contracts
Source: contracts/ in the CheomaYield repo.
CheomaPreDeposit.sol — legacy
Fixed-APY tokenized vault. Non-transferable (soulbound) ERC-20 receipt. Deployed on Base (USDC, Wave 1). The Wave 1 Base and Robinhood Chain partner deployments are legacy — deposits closed. The current pre-deposit vaults are BasePreDeposit.sol (Base) and SonicPreDeposit.sol (Sonic) below.
Immutables
usdc— deposit assetapyBps— fixed APY in basis points (e.g. 5200 = 52.00%)admin— config-only (cap + toggles)treasury— sole funds mover
State
cap— max principal (totalSupply)totalAssets,totalPrincipal,lastUpdate
Write
deposit(uint256 amount)— approve USDC first; mints receipt, records FIFO 90-day lotredeem(uint256 shares)— burn receipt → pro-rata USDC (requires lot maturity +withdrawalsOpen)withdraw(uint256 amount, address to)—onlyTreasurysetCap(uint256),setDepositsOpen(bool),setWithdrawalsOpen(bool)—onlyAdminemergencyWithdrawAll(address to)—onlyTreasury
Read
lotCount(address),getLot(...),firstUnconsumedLot(address)
Events
Deposit(depositor, amount, shares, timestamp, maturity)Redeem(redeemer, shares, worth, timestamp)Withdrawal,CapUpdated,DepositsOpenUpdated,WithdrawalsOpenUpdated,EmergencyWithdrawAll
BasePreDeposit.sol
Base-native pre-deposit vault (chainId 8453), the Base sibling of SonicPreDeposit with one delta: a single deposit asset (native Base USDC, 6 dec). Transferable 6-dec ERC-20 receipt (prechUSDCb); 13% simple APR (apyBps = 1300), $30M cap. No per-deposit lock and no on-chain user redeem — withdrawalsOpen is permanently false and exit runs through a future phase-2 gate on GIWA mainnet. Only the cold treasury key can move funds out.
SonicPreDeposit.sol
Sonic-native fork of CheomaPreDeposit (chainId 146). Two deltas vs Base: transferable receipt (DeFi composability + gate-migration forward-compat) and two deposit assets — native Sonic USDC (6 dec) + canonical bnUSD (18 dec, credited at fixed 1:1, held raw). 13% simple APR (apyBps = 1300), $30M cap, receipt prechUSDCs. No per-deposit lock; withdrawals gated until GIWA mainnet (phase 2).
Write
deposit(uint256 amount)— USDCdepositBnUSD(uint256 amount)— bnUSD, 1:1 creditwithdraw(uint256, address)/withdrawBnUSD(uint256, address)—onlyTreasuryemergencyWithdrawAll(address)— drains BOTH USDC + bnUSD
PartnerPreDeposit.sol
Bond-gated variant of CheomaPreDeposit.
Immutables
usdg— deposit assetpartnerToken— bond token (escrowed)poolGiwaWeth,poolWethUsdg— two-leg Uniswap V3 TWAPapyBps,admin,treasury
Write
deposit(uint256 amount)— requirespartnerToken.balanceOf(msg.sender) >= minGateUsd; escrows the bondredeem(uint256 shares)— bond released in-kind on full exitsetMinGateUsd(uint256),setCap,setDepositsOpen,setWithdrawalsOpen—onlyAdminforceReleaseBond(address user)—onlyTreasury
Events
Deposit,Redeem,Withdrawal,BondPosted,BondReleased,PartnerGateUpdated,CapUpdated, …
CheomaVault.sol
Shares-based combined vault (testnet). Deposits mint internal shares; no transferable token; operator-managed yield.
CheomaReferralNFT.sol
ERC-721 referral code NFT. The reward is 0.5% of every deposit made by a referred wallet ($5 per $1,000), paid from protocol revenue — not from a fee. Note: not ERC-721 Enumerable — tokenOfOwnerByIndex is not implemented; per-wallet lookup must use Transfer logs.
CheomaFaucet.sol / MockUSDC.sol
Testnet-only: free USDC faucet and open-mint mock stablecoin.
Last updated
Was this helpful?
