Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 1.87 KB

File metadata and controls

23 lines (15 loc) · 1.87 KB

CAP

For more info about CAP protocol check the docs.

Governance

cUSD contract is upgradable proxy on Mainnet. The roles are set in AccessStorageLocation at 0xb413d65cb88f23816c329284a0d3eb15a99df7963ab7402ade4c5da22bff6b00 which points to AccessControl proxy contract. Default admin role of the contract is set to Timelock contact with minimum 24h delay.

Internal timelock monitoring for queueing tx to Timelock contract on Mainnet.

Data Monitoring

The script liquidity.py is run daily by Github actions.

It monitors withdrawable liquidity for the CAP protocol's cUSD contract 0xcCcc62962d17b8914c62D74FfB843d73B2a3cccC:

  1. Fetches all assets from the cUSD contract
  2. For each asset, calculates total withdrawable liquidity:
    • Withdrawable amount from the fractional reserve vault (via maxWithdraw for the cUSD contract)
    • Direct token balance held by the cUSD contract
  3. Sums normalized values across all assets
  4. Sends Telegram alert if total withdrawable liquidity falls below defined threshold telegram alert is sent
  5. RedStone Price Feed for cUSD_FUNDAMENTAL if the value falls below 99980000, telegram alert is sent. Tenderly alert