For more info about CAP protocol check the docs.
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.
The script liquidity.py is run daily by Github actions.
It monitors withdrawable liquidity for the CAP protocol's cUSD contract 0xcCcc62962d17b8914c62D74FfB843d73B2a3cccC:
- Fetches all assets from the cUSD contract
- For each asset, calculates total withdrawable liquidity:
- Withdrawable amount from the fractional reserve vault (via
maxWithdrawfor the cUSD contract) - Direct token balance held by the cUSD contract
- Withdrawable amount from the fractional reserve vault (via
- Sums normalized values across all assets
- Sends Telegram alert if total withdrawable liquidity falls below defined threshold telegram alert is sent
- RedStone Price Feed for cUSD_FUNDAMENTAL if the value falls below 99980000, telegram alert is sent. Tenderly alert