Deploy Compound III on Unichain

This document clarifies the Unichain USDC deployment.

Notes

  1. Native USDC address is 0x078D782b760474a361dDA0AF3839290b0EF57AD6. Proof.
  2. Token Minter (CCTP )address is 0x726bFEF3cBb3f8AF7d8CB141E78F86Ae43C34163. Proof.
  3. PauseGuardian address is 0x6784FC9e931D7d5B1075e665A4016c299ee6C31B. Migration has an additional verification step to verify, that the pauseGuardian has the same signers as on Mainnet.
  4. COMP token address is 0xdf78e4f0a8279942ca68046476919a90f2288656. As Unichain is Superchain, COMP extends the OptimismMintableERC20 standard.
  5. Linea USDC should be uncommented in migration in the verify section before pushing the on-chain proposal. Currently, it is commented, as Linea USDC proposal has not been executed.

Audit

The link to audit report will be attached in the next forum tread comment.

The change that is required by audit is implemented here - Squash Unichain Mainnet USDC by MishaShWoof · Pull Request #122 · woof-software/comet · GitHub

PR with all the changes including 24 collaterals update - Deploy cUSDCv3 on Unichain by MishaShWoof · Pull Request #961 · compound-finance/comet · GitHub

Actions

  1. Run Slither. Fails. :x:. Squash Unichain Mainnet USDC · woof-software/comet@e155e64 · GitHub
  2. Forge test. Success.:white_check_mark: Squash Unichain Mainnet USDC · woof-software/comet@e155e64 · GitHub
  3. Gas Profiler. Success.:white_check_mark: Squash Unichain Mainnet USDC · woof-software/comet@e155e64 · GitHub
  4. Scan. Success.:white_check_mark: Squash Unichain Mainnet USDC · woof-software/comet@e155e64 · GitHub
  5. unichain-usdc Scenario. Success. :white_check_mark: Squash Unichain Mainnet USDC · woof-software/comet@e155e64 · GitHub
  6. Unit tests. Success.:white_check_mark: Squash Unichain Mainnet USDC · woof-software/comet@e155e64 · GitHub
  7. Eslint. Success.:white_check_mark: Squash Unichain Mainnet USDC · woof-software/comet@e155e64 · GitHub
  8. Contract linter. Success.:white_check_mark: Squash Unichain Mainnet USDC · woof-software/comet@e155e64 · GitHub
  9. Deployment USDC. Success. :white_check_mark:Deploy Market · woof-software/comet@d30cd80 · GitHub
  10. Enact migration with impersonate. Success.:white_check_mark: Enact Migration · woof-software/comet@e155e64 · GitHub
  11. Enact migration. By delegator. Enact Migration · woof-software/comet@e155e64 · GitHub

Description we use:

Initialize cUSDCv3 on Unichain\n\n

Proposal summary\n\n

Compound Growth Program [AlphaGrowth] proposes the deployment of Compound III to the Unichain network. This proposal takes the governance steps recommended and necessary to initialize a Compound III USDC market on Unichain; upon execution, cUSDCv3 will be ready for use. Simulations have confirmed the market’s readiness, as much as possible, using the Comet scenario suite. The new parameters include setting the risk parameters based off of the recommendations from Gauntlet.\n\n

Further detailed information can be found on the corresponding proposal pull request, deploy market GitHub action run and forum discussion.\n\n\n

Price feeds\n\n

The market uses all price feeds by Redstone. All other price feeds in the USDC market should be used from Redstone as well.\n\n

Proposal Actions\n\n

The first action approves COMP tokens to be bridged.\n\n

The second action sends COMP tokens to the Unichain via a native standard bridge.\n\n

The third action approves USDC tokens to be bridged.\n\n

The fourth action sends USDC tokens to the Unichain via a CCTP bridge.\n\n

The fifth proposal action sets the Comet configuration and deploys a new Comet implementation on Unichain. This sends the encoded setConfiguration, deployAndUpgradeToand setRewardConfig calls across the bridge to the governance receiver on Unichain.\n\n

The sixth action updates the ENS TXT record v3-official-markets on v3-additional-grants.compound-community-licenses.eth, updating the official markets JSON to include the new Unichain cUSDCv3 market.