Cap 백서

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 15쪽 중 6쪽

) * Fee Auctions (`setDuration`, `setStartPrice` ,`setPaymentToken`) * Delegations ( `addAgent`, `modifyAgent` ,`registerNetwork`) **3. Emergency Permissions** * Protocol pause (`pauseProtocol`, `unpauseProtocol`) * Emergency functions (`emergencyWithdraw`, `rescueERC20`) ## Timelock Critical administrative operations are routed through an OpenZeppelin [TimelockController](https://docs.openzeppelin.com/contracts/5.x/api/governance#TimelockController) with a **1-day minimum delay** (86,400 seconds). The Timelock enforces a mandatory waiting period between when an operation is proposed and when it can be executed, giving participants time to react to parameter changes. The Timelock holds permissions on Cap contracts via the same role-based access control system described above. Operations must be scheduled, wait the full delay period, and then be explicitly executed — they cannot bypass the delay. | Parameter | Value | | --------- | ----------------------------------------------------------------------------------------------------------------------- | | Min Delay | 86,400 seconds (1 day) | | Contract | [`0xD8236031d8279d82E615aF2BFab5FC0127A329ab`](https://etherscan.io/address/0xD8236031d8279d82E615aF2BFab5FC0127A329ab) | # Frontier Program The Frontier Program marks a pivotal launch phase for Cap, opening its doors to the public on Ethereum mainnet. The program aims to foster a vibrant, committed community at the heart of Cap’s ecosystem. The Frontier Program incentivizes early and consistent participation to earn "Caps". Those who join and remain active from the outset stand to earn the highest number of Caps. Users can start accruing Caps by exploring Cap's flagship products: cUSD and stcUSD. Below is the link to all venues where users can participate in the Frontier Program. Detailed information about the Program can be found [here](https://mirror.xyz/0x83c21bb4Bf0EC116f5a1945AaeF847Fe3b321B32/BNYypWfT0CyrV2De1_MM5_KqInuONerxJFi1anNHWPU). #### Pendle * [PT cUSD](https://app.pendle.finance/trade/markets/0x307c15f808914df5a5dbe17e5608f84953ffa023/swap?view=pt\&chain=ethereum) * [PT stcUSD](https://app.pendle.finance/trade/markets/0xcc781b043933c10a04409b22aada3a3d1a7f29d4/swap?view=pt\&chain=ethereum) * [Penpie PT cUSD](https://www.pendle.magpiexyz.io/stake/0x307c15f808914df5a5dbe17e5608f84953ffa023) * [Penpie PT stcUSD](https://www.pendle.magpiexyz.io/stake/0xcc781b043933c10a04409b22aada3a3d1a7f29d4) * [Equilibria PT stcUSD](https://equilibria.fi/stake) #### Yield Optimizer * [Beefy penpie stcUSD](https://app.beefy.com/vault/pendle-stcusd-29jan26) * [Beefy equilibria stcUSD](https://app.beefy.com/vault/pendle-eqb-stcusd-29jan26) #### Lending Markets * [Morpho stcUSD / USDC](https://app.morpho.org/ethereum/market/0xeb17955ea422baeddbfb0b8d8c9086c5be7a9cfdefb292119a102e981a30062e/stcusd-usdc) * [Morpho PT-stcUSD-29JAN2026 / USDC](https://app.morpho.org/ethereum/market/0x03f715ef1ae508ab3e1faf4dffdbf2a077d1f0ad10c5aad42cf4438d5e3328af/pt-stcusd-29jan2026-usdc) {% hint style="info" %} Caps are rewarded to USDC suppliers to the markets above {% endhint %} # Homestead Program With the Homestead program, we’re entering the next phase of the protocol: sustained production. ### Homestead timeline * Start date: January 29th, 2026 * End date: July 23rd, 2026 Within the program, there are two tracks: Caps and Cogs ### Caps <figure><img src="https://315632032-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkRZQBMptsoesj7n1mr8a%2Fuploads%2Fgit-blob-070a061af9ec4bafe18a94259e53df46718dc382%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure> USD holders have a choice: yield or Caps. cUSD holders are incentivized to earn Caps. Those who join and remain active from the outset stand to earn the highest number of Caps. Users can accrue Caps by exploring cUSD integrations across DeFi. The leaderboard for Caps can be found [here](https://cap.app/caps). {% hint style="info" %} For the first month of the program, users will earn **Double Caps** for all Homestead activities {% endhint %} #### Holding cUSD Holding cUSD earns **10x** Caps #### Pendle * [YT cUSD / LP cUSD](https://app.pendle.finance/trade/markets/0x307c15f808914df5a5dbe17e5608f84953ffa023/swap?view=yt\&chain=ethereum): Holding YT cUSD or LP cUSD for **20x** Caps * [YT stcUSD / LP stcUSD](https://app.pendle.finance/trade/markets/0x307c15f808914df5a5dbe17e5608f84953ffa023/swap?view=yt\&chain=ethereum): Holding YT stcUSD or LP stcUSD for **5x** Caps {% hint style="info" %} Pendle markets expire Jul 22 2026 {% endhint %} #### Lending Markets Lending stablecoins to stcUSD and Cap PTs earn **0.5x** Caps per dollar per day * [Morpho stcUSD / USDC](https://app.morpho.org/ethereum/market/0xeb17955ea422baeddbfb0b8d8c9086c5be7a9cfdefb292119a102e981a30062e/stcusd-usdc) #### Further Integrations Stay tuned for additional campaigns! Please follow [Cap’s community handle](https://x.com/capmoney_) on X for updates. ### Cogs Delegators on Cap will continue to earn COGs following the Frontier program. <figure><img src="https://315632032-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkRZQBMptsoesj7n1mr8a%2Fuploads%2Fgit-blob-d6a827a48127433c4c6cee441d3127c22a41db8b%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure> The formula to calculate COGs is the following: <p align="center"><em>COGs = Delegation Value * Borrow Boost * Delegation Boost</em></p> Breaking it down, Delegators earn COGs proportional to the amount delegated.<br> The Borrow Boost is calculated as: <p align="center"><em>Borrow Boost = min (18 * LTV + 1, 10)</em></p> In English, the borrow boost is determined based on the current Loan To Value of the delegated Borrower. If the Borrower's LTV is currently 20%, the boost will be **4.6x**. The minimum boost is **1x** and is capped at **10x.** Finally, we are introducing the Delegation Boost. Delegations over certain USD amounts will receive a multiplier boost. Specifically, the boost follows a step function at 3 amounts: $25m, $50m, and $100m. For example, a $75M delegation will receive **1.5x** COGs. <figure><img src="https://315632032-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkRZQBMptsoesj7n1mr8a%2Fuploads%2Fgit-blob-71996bf0f0c27c95371af5ad8224c217106a7c3e%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure> {% hint style="info" %} A minimum delegation of $2M is required to earn Cogs {% endhint %} # Addresses ## Ethereum Mainnet ### **Cap Vault** <table data-full-width="false"><thead><tr><th width="198.5">Contract</th><th width="541.5">Address</th></tr></thead><tbody><tr><td>cUSD</td><td>0xcCcc62962d17b8914c62D74FfB843d73B2a3cccC</td></tr><tr><td>stcUSD</td><td>0x88887bE419578051FF9F4eb6C858A951921D8888</td></tr><tr><td>Debt USDC</td><td>0xfa8C6D0b95d9191B5A1D51C868Da2BDFd6C04Ff9</td></tr></tbody></table> ### **Cap Infra** <table data-full-width="false"><thead><tr><th width="198.5">Contract</th><th width="541.5">Address</th></tr></thead><tbody><tr><td>Oracle</td><td>0xcD7f45566bc0E7303fB92A93969BB4D3f6e662bb</td></tr><tr><td>Lender</td><td>0x15622c3dbbc5614E6DFa9446603c1779647f01FC</td></tr><tr><td>Access Control</td><td>0x7731129a10d51e18cDE607C5C115F26503D2c683</td></tr><tr><td>Delegation</td><td>0xF3E3Eae671000612CE3Fd15e1019154C1a4d693F</td></tr><tr><td>Fee Auction</td><td>0xa1a20aBdc873CF291c22Ce3C8968EC06277324D0</td></tr><tr><td>Fee Receiver</td><td>0x0036c7b9b62c53F47c804a5643F0c09f864beF0b</td></tr><tr><td>USDC Fractional Reserve Vault</td><td>0x3Ed6aa32c930253fc990dE58fF882B9186cd0072</td></tr><tr><td>cUSD Adapter</td><td>0xAcc9ce4C15A0F6A2bec49C3F81261d60553D2Faf</td></tr><tr><td>stcUSD Adapter</td><td>0xdf48Eb321B38bc19E7F5b2CCA8242Cc6B9a6EcD0</td></tr><tr><td>Timelock</td><td>0xD8236031d8279d82E615aF2BFab5FC0127A329ab</td></tr></tbody></table> ### Symbiotic <table data-full-width="false"><thead><tr><th width="198.5">Contract</th><th width="541.5">Address</th></tr></thead><tbody><tr><td>Network</td><td>0x98e52Ea7578F2088c152E81b17A9a459bF089f2a</td></tr><tr><td>Network Middleware</td><td>0x09A3976d8D63728d20DCDFEe1e531C206Ba91225</td></tr><tr><td>Vault Factory</td><td>0x0B92300C8494833E504Ad7d36a301eA80DbBAE2e</td></tr><tr><td>Agent Manager</td><td>0x08A728CF4E6b39f4AFa059c6eE376103722953eA</td></tr></tbody></table> ### Oracles <table data-full-width="false"><thead><tr><th width="198.5">Contract</th><th width="541.5">Address</th></tr></thead><tbody><tr><td><a href="https://app.redstone.finance/app/feeds/ethereum-mainnet/cusd_fundamental/">Redstone cUSD</a></td><td>0x9A5a3c3Ed0361505cC1D4e824B3854De5724434A</td></tr><tr><td><a href="https://etherscan.io/address/0x8E3386B2f6084eB1B0988070c3d826995BD175c0">Morpho stcUSD</a></td><td>0x8E3386B2f6084eB1B0988070c3d826995BD175c0</td></tr></tbody></table> ### **Cap Token** <table data-full-width="false"><thead><tr><th width="198.5">Contract</th><th width="541.5">Address</th></tr></thead><tbody><tr><td>Cap Token</td><td>0x99991c6AAbba5a096f24f250b73580F5179b9999</td></tr></tbody></table> ## MegaETH Mainnet ### **Cap Vault** <table data-full-width="false"><thead><tr><th width="198.5">Contract</th><th width="541.5">Address</th></tr></thead><tbody><tr><td>cUSD</td><td>0xcCcc62962d17b8914c62D74FfB843d73B2a3cccC</td></tr><tr><td>stcUSD</td><td>0x88887bE419578051FF9F4eb6C858A951921D8888</td></tr></tbody></table> ### **Cap Infra** <table data-full-width="false"><thead><tr><th width="198.5">Contract</th><th width="541.5">Address</th></tr></thead><tbody><tr><td>Timelock Controller</td><td>0x0000000035A7744F94e6949431CE20EA77312a55</td></tr></tbody></table> ## Tempo Mainnet ### **Cap Vault** <table data-full-width="false"><thead><tr><th width="198.5">Contract</th><th width="541.5">Address</th></tr></thead><tbody><tr><td>cUSD</td><td>0x20C0000000000000000000000520792DcCccCccC</td></tr><tr><td>stcUSD</td><td>0x20c0000000000000000000008EE4fcFF88888888</td></tr></tbody></table> ### **Cap Infra** <table data-full-width="false"><thead><tr><th width="198.5">Contract</th><th width="541.5">Address</th></tr></thead><tbody><tr><td>Timelock Controller</td><td>0x0000000035A7744F94e6949431CE20EA77312a55</td></tr></tbody></table> ## Katana Mainnet ### **Cap Vault** <table data-full-width="false"><thead><tr><th width="198.5">Contract</th><th width="541.5">Address</th></tr></thead><tbody><tr><td>cUSD</td><td>0xcCcc62962d17b8914c62D74FfB843d73B2a3cccC</td></tr><tr><td>stcUSD</td><td>0x88887bE419578051FF9F4eb6C858A951921D8888</td></tr></tbody></table> ### **Cap Infra** <table data-full-width="false"><thead><tr><th width="198.5">Contract</th><th width="541.5">Address</th></tr></thead><tbody><tr><td>Timelock Controller</td><td>0x0000000035A7744F94e6949431CE20EA77312a55</td></tr></tbody></table> ## Multi-sigs **Developer multi-sig Address:** 0xb8FC49402dF3ee4f8587268FB89fda4d621a8793 **Cap token owner multi-sig:** 0x80A216738E4e49B262Deae6bEb6578Bdf164c2eA Signers: * 0xDD30a4712e6B34926d4f5aA99c1881573407538C * 0xdf466Fa3ddd0042d990FA9A023e040884CBaD439 * 0x7c29F6A93df60Bcd3B20f03B57a2F9e698FD4128 * 0x62D0b3c0a77bE77EaB2060266a95FfaD9e6A3F51 * 0xA62f87A9D4B5EE1F83cb644Ea076832A396101b8 # Price Sources This page describes **recommended ways to obtain an accurate cUSD price** (and similarly for stcUSD), plus how to derive pricing **on-chain** from the cUSD contract and the protocol oracle. Contract addresses for Ethereum mainnet are listed in [Addresses](/developers/addresses). ## Why not use DEX / AMM pool prices? Do **not** rely on on-chain DEX prices from venues such as Curve, Uniswap, or similar AMMs as your primary cUSD reference. cUSD can be **minted and redeemed 1:1 with USDC** (and other whitelisted reserve assets at published rates). There is **little economic reason** for liquidity providers to maintain **deep** two-sided AMM liquidity when mint and redeem offer a direct, tight on/off-ramp. As a result, DEX pools are often **shallow**, and spot or TWAP prices there can be **noisy, easy to move, or unrepresentative** of the price implied by reserves and the protocol oracle. Prefer the feeds and oracle methods on this page instead. ## Recommended: external feeds ### RedStone (reserve oracle) The RedStone feed used for cUSD reserve / fundamental pricing is the on-chain wrapper [`0x9A5a3c3Ed0361505cC1D4e824B3854De5724434A`](https://etherscan.io/address/0x9A5a3c3Ed0361505cC1D4e824B3854De5724434A) (Etherscan). The same feed is documented in the RedStone app at <https://app.redstone.finance/app/token/cUSD_FUNDAMENTAL/>. ### DefiLlama (Coins API) DefiLlama exposes current prices via the Coins API. Endpoint documentation: [https://api-docs.defillama.com/#tag/coins/get/prices/current/{coins}](https://api-docs.defillama.com/#tag/coins/get/prices/current/%7Bcoins%7D). Example for **cUSD** on Ethereum (checksum-insensitive in the path): ``` https://coins.llama.fi/prices/current/ethereum:0xcccc62962d17b8914c62d74ffb843d73b2a3cccc ``` For **stcUSD**, use the stcUSD token address on the same network, for example: ``` https://coins.llama.fi/prices/current/ethereum:0x88887be419578051ff9f4eb6c858a951921d8888 ``` DefiLlama’s pegged-asset adapter for Cap cUSD (issued supply / peg logic) is <https://github.com/DefiLlama/peggedassets-server/blob/master/src/adapters/peggedAssets/cap-cusd/index.ts>. ## On-chain The patterns below use the **cUSD** token contract and the mainnet **Oracle** (see [Addresses](/developers/addresses)). ### Backing balances per asset Call `cUSD.assets()` to obtain the ordered list of backing assets, then for each `asset` call `cUSD.totalSupply(asset)` to read how much of that reserve token is held in the cUSD vault for that asset. Together, these balances describe the collateral side of the basket that backs outstanding cUSD. ### Redemption weights (1 cUSD → each underlying) Using the same asset ordering from `cUSD.assets()`, call `cUSD.getRedeemAmount(1e18)` with **1e18** wei of cUSD (18 decimals). The return values give the amounts of each underlying you would receive for that redemption path, which you can treat as the per-asset conversion from one full cUSD unit into the basket (subject to fees and current oracle pricing encoded in the call). Align each entry in the returned arrays with the corresponding index in `assets()`. ### Protocol oracle price Query the deployed **Oracle** contract ([0xcD7f45566bc0E7303fB92A93969BB4D3f6e662bb](https://etherscan.io/address/0xcD7f45566bc0E7303fB92A93969BB4D3f6e662bb)) with `getPrice(cusd_address)`, where `cusd_address` is the cUSD token address. That is the same `getPrice` surface as in <https://github.com/cap-labs-dev/cap-contracts/blob/main/contracts/interfaces/IPriceOracle.sol> (`IPriceOracle` in cap-contracts): ```solidity function getPrice(address _asset) external view returns (uint256 price, uint256 lastUpdated); ``` For semantics (staleness, backup oracles, adapters), see [Oracles](/concepts/oracles). ## Etherscan proxy API When trading volume on secondary-market pairs is low, a robust approach for both **cUSD** and **stcUSD** is to read the **protocol oracle** directly—sometimes described as using a **virtual price** (the economically meaningful value from the Oracle rather than thin AMM liquidity). `getPrice(address _asset)` returns **two** `uint256` values: the **price** and **`lastUpdated`** (last update timestamp). The signature is specified in Cap’s [`IPriceOracle`](https://github.com/cap-labs-dev/cap-contracts/blob/main/contracts/interfaces/IPriceOracle.sol#L51) (`getPrice`). **Integrator note:** If you only deploy a small utility contract that forwards `getPrice` but **drops** `lastUpdated`, consumers may still get a spot price, but **historical** pricing pipelines often need **both** fields (or an equivalent archive of oracle updates) to attribute values correctly in time. Where possible, decode the full ABI return from `eth_call` against the Oracle (or index oracle update events) instead of stripping the timestamp. ### Example: `eth_call` via Etherscan API v2 These are illustrative `module=proxy` `eth_call` URLs for Ethereum mainnet (`chainid=1`). Replace `YOURAPIKEY` with a valid [Etherscan API](https://docs.etherscan.io/) key. **cUSD** (`getPrice` on the Oracle for the cUSD token address): ``` https://api.etherscan.io/v2/api?chainid=1&module=proxy&action=eth_call&to=0xcD7f45566bc0E7303fB92A93969BB4D3f6e662bb&data=0x41976e09000000000000000000000000cccc62962d17b8914c62d74ffb843d73b2a3cccc&tag=latest&apikey=YOURAPIKEY ``` **stcUSD:** ``` https://api.etherscan.io/v2/api?chainid=1&module=proxy&action=eth_call&to=0xcD7f45566bc0E7303fB92A93969BB4D3f6e662bb&data=0x41976e0900000000000000000000000088887be419578051ff9f4eb6c858a951921d8888&tag=latest&apikey=YOURAPIKEY ``` Example JSON-RPC style response (shape may vary slightly by client; `result` is the ABI-encoded return data): ```json {"jsonrpc":"2.0","id":1,"result":"0x0000000000000000000000000000000000000000000000000000000005f56ea50000000000000000000000000000000000000000000000000000000069ca971b"} ``` Decode as two 32-byte words: first word = `price`, second word = `lastUpdated` (Unix timestamp in seconds). Scaling and staleness rules for `price` follow the Oracle configuration described in [Oracles](/concepts/oracles). # Contract Reference Technical reference for all Cap protocol smart contracts. Each page covers the contract's mechanics, full function signatures, data structures, and usage examples. | Module | Description | | -------------------------------------------------------------- | ------------------------------------------------------------------- | | [Vault](/developers/contracts/vault) | cUSD backing asset vault — mint, burn, redeem, utilization tracking | | [Minter](/developers/contracts/minter) | Dynamic mint/burn fee model, deposit caps, and asset whitelisting | | [Fractional Reserve](/developers/contracts/fractional-reserve) | ERC4626 yield strategy integration — invest, divest, harvest | | [Lender](/developers/contracts/lender) | Operator borrowing, two-stream interest accrual, and liquidations | | [Delegation](/developers/contracts/delegation) | Slashable collateral tracking across EigenLayer and Symbiotic | | [Fee Auction](/developers/contracts/fee-auction) | Dutch auction distributing protocol yield to stcUSD holders | | [Oracle](/developers/contracts/oracle) | Price and rate oracle with pluggable adapter architecture | | [Access Controls](/developers/contracts/access-controls) | Per-function role-based permissioning | | [Tokens](/developers/contracts/tokens) | cUSD (CapToken), stcUSD (StakedCap), and L2Token (OFT) | # Vault The Vault is the core abstract contract inherited by every cUSD deployment. It holds the backing assets deposited by cUSD minters and lent out to whitelisted Operators, tracking total supplies and borrows per asset. Mint/burn/redeem operations flow through the Minter for fee calculation and through the FractionalReserve layer for liquidity management — the Vault itself only tracks principal amounts, leaving interest calculations to the Lender. ## Mechanics ### Minting cUSD Depositing a backing asset in exchange for cUSD: 1. **Deposit cap check**: `_amountIn` is silently capped to the remaining deposit capacity for the asset. 2. **Fee calculation**: The Minter computes `(amountOut, fee)` based on the asset's current allocation ratio vs. its optimal ratio. 3. **Slippage / deadline check**: Reverts if `amountOut < _minAmountOut` or the deadline has passed. 4. **Transfer in**: The asset is pulled from `msg.sender` and `totalSupplies[asset]` is incremented. 5. **Mint**: `amountOut` cUSD is minted to `_receiver`; if a fee applies, an additional `fee` cUSD is minted to the insurance fund. ### Burning cUSD Exchanging cUSD for a single backing asset: 1. **Fee calculation**: The Minter computes the post-fee asset output and fee amount. 2. **cUSD burn**: `_amountIn` cUSD is burned
프로젝트로 돌아가기