BTB
/

Cap (cUSD, stcUSD)

Stablecoinwebsite
Stablecoin protocol on Ethereum. Mint cUSD by depositing a backing asset (USDC) and burn cUSD to get the asset back. Stake cUSD into stcUSD (ERC-4626) to earn yield, which vests over time.

What you can do

mint-cusdDeposit USDC and receive cUSDapprove cUSD (0xcCcc...) to spend USDC, then cUSD.mint(USDC, amountIn, minAmountOut, receiver, deadline)
burn-cusdBurn cUSD for USDCcUSD.burn(USDC, amountIn, minAmountOut, receiver, deadline); redeem(...) gives a share of every backing asset
stake-cusdStake cUSD to earn yieldapprove stcUSD (0x8888...) to spend cUSD, then stcUSD.deposit(amount, receiver)
unstake-cusdWithdraw cUSD from stcUSDstcUSD.redeem(shares, receiver, owner) or withdraw(assets, receiver, owner); yield shows up in convertToAssets
check-positionRead backing and yieldcUSD.availableBalance(asset), stcUSD.convertToAssets(shares), stcUSD.lockedProfit()
Minting and burning go through a dynamic fee model and deposit caps. The fee and the cap can change, so check the preview before you act.
Redemptions are paid from assets in the vault that are not lent out. When utilization is high, a burn can revert or return less.
Part of the backing can be placed in ERC-4626 yield strategies (fractional reserve). Losses there reduce the backing.
stcUSD yield vests over a set period. Value per share can move in steps when yield is notified.

Contracts

Read any function, or build a write and sign it. Amounts are in base units (1 USDC = 1000000).
cUSD (CapToken, with the vault functions)token on ethereum0xcCcc62962d17b8914c62D74FfB843d73B2a3cccC
write mint(address,uint256,uint256,address,uint256)
Deposit a backing asset and receive cUSD. Arguments: asset (USDC address), amountIn in the asset's smallest unit, minAmountOut (cUSD, slippage guard), receiver, deadline (unix seconds). Approve this cUSD address to spend amountIn of the asset first. Deposit caps can silently reduce the amount taken.
write burn(address,uint256,uint256,address,uint256)
Burn cUSD and receive one backing asset. Arguments: asset, amountIn of cUSD, minAmountOut of the asset, receiver, deadline. No approval is needed when burning your own cUSD.
write redeem(uint256,uint256[],address,uint256)
Burn cUSD and receive a share of every backing asset. Arguments: amountIn of cUSD, minAmountsOut (one entry per asset, in the order of assets()), receiver, deadline.
read assets()
List of backing assets the cUSD vault accepts.
read availableBalance(address)
Amount of a backing asset held in the vault and not lent out. Redemptions draw on this.
read getMintAmount(address,uint256)
Preview for a deposit. Arguments: asset, amountIn. Returns the cUSD amount out and the fee.
read getRedeemAmount(uint256)
Preview for a redemption. Argument: cUSD amountIn. Returns the amount of each backing asset and the fees.
stcUSD (StakedCap, ERC-4626)staking on ethereum0x88887bE419578051FF9F4eb6C858A951921D8888
write deposit(uint256,address)
Stake cUSD and receive stcUSD shares. Arguments: assets (cUSD amount in wei), receiver. Approve the stcUSD address to spend the cUSD first.
write redeem(uint256,address,address)
Burn stcUSD shares and receive cUSD. Arguments: shares, receiver, owner.
write withdraw(uint256,address,address)
Withdraw an exact cUSD amount, burning the matching stcUSD shares. Arguments: assets, receiver, owner.
read convertToAssets(uint256)
cUSD value of a number of stcUSD shares. Rises as yield vests.
read totalAssets()
Total cUSD held by the stcUSD vault, including yield that has not vested yet.
read lockedProfit()
Yield that is still vesting. Zero means the last yield cycle has finished.
write notify()
Start a new yield vesting cycle. The docs say to call it only after lockedProfit() reaches zero. Access rules are set in the contract.