This document clarifies the Linea USDC market deployment
Issues overview
The audit report of the deployment can be found here.
- C1. Uninitialized Bridge Receiver. This issue was immediately fixed. During the development, we added additional tests to verify, that the bridge is initialized.
- L1. Inaccurate Proposal Description. Changed in the commit after receiving the audit report.
- L1. Scenario and Enactment Migration Failure. The issue is raised by the newly deployed Governor. Commit with changes.
Note
- USDS on Base proposal is active on the moment of pushing this proposal. The proposal reached the quorum and we expect that the proposal will be executed without fail. In case we need to cancel proposal 395, we need to cancel this proposal too.
Proposal - https://www.tally.xyz/gov/compound/proposal/401
PR with all the changes including 24 collaterals update - Add USDC, USDT and WETH markets on Linea by MishaShWoof · Pull Request #953 · compound-finance/comet · GitHub
PR ONLY with Linea changes for easier review - Squash Linea by MishaShWoof · Pull Request #114 · woof-software/comet · GitHub - please review only this scope
Actions
- Run Slither. Fails.
. Squash Linea · woof-software/comet@436dd53 · GitHub
- Forge test. Success.
Squash Linea · woof-software/comet@436dd53 · GitHub
- Gas Profiler. Success.
Squash Linea · woof-software/comet@436dd53 · GitHub
- Scan. Success.
Squash Linea · woof-software/comet@436dd53 · GitHub
- linea-usdc Scenario. Success.
Squash Linea · woof-software/comet@436dd53 · GitHub
- Unit tests. Success.
Squash Linea · woof-software/comet@436dd53 · GitHub
- Eslint. Success.
Squash Linea · woof-software/comet@436dd53 · GitHub
- Contract linter. Success.
Squash Linea · woof-software/comet@436dd53 · GitHub
- Deployment USDC. Success.
Deploy Market · woof-software/comet@3bd402a · GitHub
- Enact migration with impersonate. Success.
Enact Migration · woof-software/comet@436dd53 · GitHub
- Enact migration. Success.
Enact Migration · woof-software/comet@85fca0a · GitHub
Description we use:
Initialize cUSDCv3 on Linea network\n\n
Proposal summary\n\n
Compound Growth Program [AlphaGrowth] proposes the deployment of Compound III to the Linea network. This proposal takes the governance steps recommended and necessary to initialize a Compound III USDC market on Linea; 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
ENS TXT record update\n\n
USDS on Base proposal is active on the moment of pushing this proposal. The proposal reached the quorum and we expect that the proposal will be executed without fail. In case we need to cancel proposal 395, we need to cancel this proposal too\n\n
Proposal Actions\n\n
The first proposal action sets the Comet configuration, deploys a new Comet implementation, and sets the reward config on Linea. This sends the encoded setConfiguration
, deployAndUpgradeTo
, setRewardConfig
calls across the bridge to the governance receiver on Linea.\n\n
The second action approves USDC tokens to the bridge.\n\n
The third action sends USDC tokens to the Linea chain via a special native USDC bridge.\n\n
The fourth action approves COMP tokens to the bridge.\n\n
The fifth action sends COMP tokens to the Linea chain via bridge.\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 Linea cUSDCv3 market.