Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy Ronin WETH market #123

Open
wants to merge 137 commits into
base: squash-ronin
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
137 commits
Select commit Hold shift + click to select a range
bba7d99
feat: create comet with extended asset list
MishaShWoof Aug 9, 2024
fc16ae0
feat: move new cometExt to its own contract
MishaShWoof Aug 12, 2024
6b62ee6
fix: clean up
MishaShWoof Aug 12, 2024
d06a3f6
fix: gas optimization
MishaShWoof Aug 12, 2024
d2873ad
fix: more gas optimization
MishaShWoof Aug 12, 2024
5e867a0
fix: linter fix
MishaShWoof Aug 12, 2024
8ab1786
fix: natspec
MishaShWoof Aug 12, 2024
171eb7a
fix: more natspec
MishaShWoof Aug 12, 2024
53f1513
Update index.ts
MishaShWoof Aug 23, 2024
8df38e6
fix: remove unused iterface
MishaShWoof Aug 26, 2024
70e8a73
feat: add prepare and enact for simulation
MishaShWoof Aug 26, 2024
4c0a8f4
fix: fix to workflow
MishaShWoof Aug 26, 2024
c29f4b9
Update enact-migration.yaml
MishaShWoof Aug 26, 2024
cf08c19
fix: reverse
MishaShWoof Aug 26, 2024
71fee7b
feat: add prepare and enact workflow
MishaShWoof Aug 26, 2024
57d04f7
feat: update enact migration script
dmitriy-woof-software Aug 26, 2024
f0c33a1
feat: update enact migration script
dmitriy-woof-software Aug 26, 2024
df2d152
feat: update enact migration script
dmitriy-woof-software Aug 26, 2024
92937aa
feat: update enact migration script
dmitriy-woof-software Aug 26, 2024
b72092c
fix: remove verification from simulatative migration
MishaShWoof Aug 27, 2024
ea15450
Merge branch 'main' of github.com:woof-software/comet into woof-softw…
MishaShWoof Sep 17, 2024
dfe98c9
feat: fixes after audit
MishaShWoof Sep 19, 2024
4f2ba04
fix: working tests
MishaShWoof Sep 19, 2024
e641f95
fix: no network issue resolved
MishaShWoof Dec 13, 2024
986efa2
Merge branch 'main' into woof-software/collateral-extension
MishaShWoof Dec 20, 2024
5c75787
fix: audit fixes
MishaShWoof Dec 23, 2024
4e41a94
fix
MishaShWoof Dec 23, 2024
547e934
Merge branch 'woof-software/fix-to-no-network' of github.com:woof-sof…
MishaShWoof Dec 23, 2024
6635049
feat: working scenarios
MishaShWoof Dec 26, 2024
4ba3b92
feat: migrations and working scenarios
MishaShWoof Dec 27, 2024
c792011
fix
MishaShWoof Dec 27, 2024
9d67b33
fix: secret fix for scroll
MishaShWoof Dec 27, 2024
978dec0
fix: increase arbitrary number
MishaShWoof Dec 27, 2024
b6fb6a2
fix: scroll scan fix
MishaShWoof Dec 27, 2024
6a7f18a
feat: migrations and descriptions
MishaShWoof Jan 6, 2025
d7d9c2c
fix
MishaShWoof Jan 6, 2025
262fb3b
update descriptions
dmitriy-woof-software Jan 14, 2025
1b4307b
fix
MishaShWoof Jan 14, 2025
2381830
fix: review fix
MishaShWoof Jan 14, 2025
40e0370
fix: naming fix
MishaShWoof Jan 14, 2025
fb9f9b5
fix: optimizer
MishaShWoof Jan 14, 2025
f4860cf
fix: second optimizer fix
MishaShWoof Jan 14, 2025
94131ad
fix: optimization
MishaShWoof Jan 15, 2025
b6ff78e
Merge pull request #100 from woof-software/woof-software/collateral-e…
MishaShWoof Jan 17, 2025
5fe26a2
fix: merge fix
MishaShWoof Jan 17, 2025
d3522dc
fix: extension delegate fix and linter fix
MishaShWoof Jan 23, 2025
e3ac068
feat: roninscan, deploy, relayer ccip, etc
artemwoofsoftware Jan 24, 2025
b2ddf00
feat: migrations and fixes
artemwoofsoftware Jan 25, 2025
c04e412
fix: roninscan constructor args fetch and deploy script
artemwoofsoftware Jan 28, 2025
d8ac7a5
feat: add force push for ext deployment
dmitriy-woof-software Jan 28, 2025
6addf47
Merge branch 'woof-software/fix-to-no-network' of github.com:woof-sof…
artemwoofsoftware Jan 28, 2025
370f22a
fix: clean up debug
MishaShWoof Jan 28, 2025
d4affd7
info: wip
artemwoofsoftware Jan 28, 2025
4351754
Modified migration from GitHub Actions
Jan 28, 2025
a6d4d3d
fix: actions
artemwoofsoftware Jan 28, 2025
ffef88b
feat: wip
artemwoofsoftware Jan 29, 2025
f79de73
feat: wip
artemwoofsoftware Jan 29, 2025
0f3cd57
fix: resolved merge conflicts in workflow files and plugins
artemwoofsoftware Jan 29, 2025
f011826
feat: finalized scenarios, added ronin bridge receiver, etc
artemwoofsoftware Jan 29, 2025
56e20cc
fix: fixes after audit
MishaShWoof Jan 30, 2025
6fda51a
fix: opcode fix
MishaShWoof Feb 6, 2025
344e8c0
fix: forge fix
MishaShWoof Feb 6, 2025
091c0bc
fix: forge test
MishaShWoof Feb 6, 2025
6cd2191
fix: forge test
MishaShWoof Feb 6, 2025
1eb737b
feat: wip
artemwoofsoftware Feb 6, 2025
2a59c3d
feat: merge
artemwoofsoftware Feb 6, 2025
e42a958
fix: conflict
artemwoofsoftware Feb 6, 2025
c99f563
fix: conflict
artemwoofsoftware Feb 6, 2025
02a96fa
fix: scenarios
MishaShWoof Feb 6, 2025
0707d18
Trigger actions
dmitriy-woof-software Feb 7, 2025
ff81ff3
fix: remove repeatable deployments issue
MishaShWoof Feb 7, 2025
a82a1b0
fix: base usds contract support and scroll prepare fix
MishaShWoof Feb 7, 2025
7b43a9a
feat: wip
artemwoofsoftware Feb 11, 2025
6788ac6
update Seacrest commit hash to support scroll network
dmitriy-woof-software Feb 11, 2025
f0db6dd
feat: update node version to 18 in enact script
dmitriy-woof-software Feb 11, 2025
6634200
feat: re-use 24 collaterals comet factory and asset list factory
dmitriy-woof-software Feb 11, 2025
acd8af0
feat: fix prepare
dmitriy-woof-software Feb 11, 2025
adfa49e
feat: wip
artemwoofsoftware Feb 11, 2025
295aeef
feat: ronin weth market
artemwoofsoftware Feb 12, 2025
47d0c10
fix: linter, boilerplate
artemwoofsoftware Feb 12, 2025
a8da9bf
fix: minors
artemwoofsoftware Feb 12, 2025
0bd1837
fix: lint
artemwoofsoftware Feb 12, 2025
5cae1ae
fix: scenarios
artemwoofsoftware Feb 12, 2025
4f61483
feat: updated configuration
artemwoofsoftware Feb 18, 2025
7f6b47e
feat: update seacrest version
dmitriy-woof-software Feb 21, 2025
d9d67cc
feat: update configuration
dmitriy-woof-software Feb 21, 2025
b0b2f8a
feat: updated oracles
artemwoofsoftware Feb 21, 2025
c9c9f39
fix: clone multisig script
artemwoofsoftware Feb 21, 2025
85a44fd
feat: pause guardian, additional verification
artemwoofsoftware Feb 21, 2025
004914e
fix: disabled set rewards
artemwoofsoftware Feb 21, 2025
f17a0a3
fix: rewards disabled
artemwoofsoftware Feb 22, 2025
1239ae7
fix: migrations, deploy script, scenarios
artemwoofsoftware Feb 22, 2025
6d0f217
fix: oracles
artemwoofsoftware Feb 24, 2025
71b16dc
fix: price feeds
artemwoofsoftware Feb 24, 2025
464e9a7
fix: comments
artemwoofsoftware Feb 24, 2025
7c7482d
fix: scenarios, comments
artemwoofsoftware Feb 24, 2025
342f788
feat: update description
dmitriy-woof-software Feb 24, 2025
93b7967
feat: update deploy-market.yaml
dmitriy-woof-software Feb 24, 2025
e6b5eac
feat: update hardhat.config
dmitriy-woof-software Feb 24, 2025
e69a8dc
feat: clean up
dmitriy-woof-software Feb 24, 2025
5f31cc3
fix: wip
artemwoofsoftware Feb 25, 2025
93ef360
Modified deployment roots from GitHub Actions
Feb 25, 2025
a8822e3
feat: update description and caps
dmitriy-woof-software Feb 25, 2025
a63bd77
feat: use tenderly RPC after deployment to run scenarios
dmitriy-woof-software Feb 26, 2025
b387e59
fix: bridge receiver deployment
artemwoofsoftware Feb 26, 2025
fcf8bcb
fix: bridge receiver
artemwoofsoftware Feb 26, 2025
dac9889
fix: deleted roots
artemwoofsoftware Feb 27, 2025
327fa10
Modified deployment roots from GitHub Actions
Feb 27, 2025
31016a7
feat: audit fixes
artemwoofsoftware Feb 27, 2025
1e3e0ef
fix: deployment
artemwoofsoftware Feb 27, 2025
bebd34e
Modified deployment roots from GitHub Actions
Feb 28, 2025
a467b27
fix: null caps
artemwoofsoftware Feb 28, 2025
38a86c9
Modified deployment roots from GitHub Actions
Feb 28, 2025
98eb392
feat: standalone config
artemwoofsoftware Feb 28, 2025
0ce2330
feat: update ENS list in verification
dmitriy-woof-software Feb 28, 2025
7a8fb7c
feat: add WBTC market into ENS
dmitriy-woof-software Feb 28, 2025
769b8e3
feat: debug ENS
dmitriy-woof-software Feb 28, 2025
020f21a
feat: debug ENS
dmitriy-woof-software Feb 28, 2025
94724ee
feat: debug ENS
dmitriy-woof-software Feb 28, 2025
7e3b161
feat: comment rewards config check
dmitriy-woof-software Feb 28, 2025
7f16bfc
fix: enact
artemwoofsoftware Mar 4, 2025
9d61762
feat: update ENS
dmitriy-woof-software Mar 5, 2025
560879e
fix: erased caps and roots
artemwoofsoftware Mar 12, 2025
93ee109
fix: tenderly provider
artemwoofsoftware Mar 12, 2025
9790f5d
fix: bridge receiver rollback
artemwoofsoftware Mar 12, 2025
d170677
fix: bridge receiver
artemwoofsoftware Mar 12, 2025
0108f65
Merge pull request #144 from woof-software/fix/bridge-receiver
artemwoofsoftware Mar 13, 2025
7aa3732
feat: updated existing addresses
artemwoofsoftware Mar 13, 2025
8616c13
Modified deployment roots from GitHub Actions
Mar 13, 2025
44ce31f
feat: updated caps
artemwoofsoftware Mar 13, 2025
8b51911
feat: updated caps
artemwoofsoftware Mar 13, 2025
538b21a
feat: updated description
artemwoofsoftware Mar 13, 2025
4313d3b
fix: updated bridge receiver address
artemwoofsoftware Mar 13, 2025
bbbf4b1
Modified deployment roots from GitHub Actions
Mar 13, 2025
d3131e2
feat: rollback caps
artemwoofsoftware Mar 13, 2025
3695e9d
feat: updated description
artemwoofsoftware Mar 13, 2025
c071830
Modified migration from GitHub Actions
Mar 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: standalone config
  • Loading branch information
artemwoofsoftware committed Feb 28, 2025
commit 98eb39279304a1cab78915c64663c5bd9fca9102
6 changes: 3 additions & 3 deletions deployments/ronin/weth/configuration.json
Original file line number Diff line number Diff line change
@@ -30,23 +30,23 @@
"borrowCF": 0.75,
"liquidateCF": 0.80,
"liquidationFactor": 0.88,
"supplyCap": "0e18"
"supplyCap": "3000000e18"
},
"USDC": {
"address": "0x0b7007c13325c48911f73a2dad5fa5dcbf808adc",
"decimals": "6",
"borrowCF": 0.83,
"liquidateCF": 0.90,
"liquidationFactor": 0.95,
"supplyCap": "0e6"
"supplyCap": "400000e6"
},
"AXS": {
"address": "0x97a9107c1793bc407d6f527b77e7fff4d812bece",
"decimals": "18",
"borrowCF": 0.70,
"liquidateCF": 0.75,
"liquidationFactor": 0.80,
"supplyCap": "0e18"
"supplyCap": "300000e18"
}
}
}
49 changes: 24 additions & 25 deletions deployments/ronin/weth/migrations/1689892563_configurate_and_ens.ts
Original file line number Diff line number Diff line change
@@ -142,7 +142,7 @@ export default migration("1689892563_configurate_and_ens", {
];


const description = "# Initialize cWETHv3 on Ronin\n\n## Proposal summary\n\nCompound Growth Program [AlphaGrowth] proposes deployment of Compound III to Ronin network. This proposal takes the governance steps recommended and necessary to initialize a Compound III WETH market on Ronin; upon execution, cWETHv3 will be ready for use. Simulations have confirmed the market’s readiness, as much as possible, using the [Comet scenario suite](https://github.com/compound-finance/comet/tree/main/scenario). The new parameters include setting the risk parameters based off of the [recommendations from Gauntlet](https://www.comp.xyz/t/deploy-compound-iii-on-ronin/6128/8).\n\nFurther detailed information can be found on the corresponding [deployment pull request](https://github.com/compound-finance/comet/pull/962), [deploy market GitHub action run](https://github.com/woof-software/comet/actions/runs/13510905041/job/37750806965) and [forum discussion](https://www.comp.xyz/t/deploy-compound-iii-on-ronin/6128).\n\n\n## Rewards\n\nGauntlet provided recommendations for COMP rewards, however, the COMP token is not whitelisted on CCIP. When the COMP token is whitelisted, we will create a proposal to bridge COMP tokens and set up speeds.\n\n## Proposal Actions\n\nThe first proposal action bridges ETH seed reserves to the comet using [roninl1NativeBridge](https://etherscan.io/address/0x64192819Ac13Ef72bF6b5AE239AC672B43a9AF08). Bridged ETH will be converted to WETH automatically.\n\nThe second proposal action sets the Comet configuration and deploys a new Comet implementation on Ronin. This sends the encoded `setConfiguration` and `deployAndUpgradeTo` calls across the [l1CCIPRouter](https://etherscan.io/address/0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D) to the bridge receiver on Ronin. \n\nThe third 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 Ronin cWETHv3 market.";
const description = "# Initialize cWETHv3 on Ronin\n\n## Proposal summary\n\nCompound Growth Program [AlphaGrowth] proposes deployment of Compound III to Ronin network. This proposal takes the governance steps recommended and necessary to initialize a Compound III WETH market on Ronin; upon execution, cWETHv3 will be ready for use. Simulations have confirmed the market’s readiness, as much as possible, using the [Comet scenario suite] (https://github.com/compound-finance/comet/tree/main/scenario). The new parameters include setting the risk parameters based off of the [recommendations from Gauntlet](https://www.comp.xyz/t/deploy-compound-iii-on-ronin/6128/8).\n\nFurther detailed information can be found on the corresponding [deployment pull request](https://github.com/woof-software/comet/pull/123), [deploy market GitHub action run](https://github.com/woof-software/comet/actions/runs/13578786406) and [forum discussion](https://www.comp.xyz/t/deploy-compound-iii-on-ronin/6128).\n\n\n## Rewards\n\nGauntlet provided recommendations for COMP rewards, however, the COMP token is not whitelisted on CCIP. When the COMP token is whitelisted, we will create a proposal to bridge COMP tokens and set up speeds.\n\n## Proposal Actions\n\nThe first proposal action bridges ETH seed reserves to the comet using [roninl1NativeBridge](https://etherscan.io/address/0x64192819Ac13Ef72bF6b5AE239AC672B43a9AF08). Bridged ETH will be converted to WETH automatically.\n\nThe second proposal action sets the Comet configuration and deploys a new Comet implementation on Ronin. This sends the encoded `setConfiguration` and `deployAndUpgradeTo` calls across the [l1CCIPRouter](https://etherscan.io/address/0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D) to the bridge receiver on Ronin. \n\nThe third 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 Ronin cWETHv3 market.";

const txn = await governor.propose(...(await proposal(actions, description)))
const event = (await txn.wait()).events.find((event) => event.event === "ProposalCreated");
@@ -207,32 +207,31 @@ export default migration("1689892563_configurate_and_ens", {

expect(assetListAddress).to.not.be.equal(ethers.constants.AddressZero);

// 1.
// const stateChanges = await diffState(
// comet,
// getCometConfig,
// preMigrationBlockNumber
// );
// expect(stateChanges).to.deep.equal({
// WRON: {
// supplyCap: exp(3000000, 18)
// },
// USDC: {
// supplyCap: exp(400000, 6)
// },
// AXS: {
// supplyCap: exp(300000, 18)
// },
// baseTrackingSupplySpeed: 0,
// baseTrackingBorrowSpeed: 0,
// });

const config = await rewards.rewardConfig(comet.address);
//expect(config.rescaleFactor).to.be.equal(exp(1, 12));
//expect(config.shouldUpscale).to.be.equal(true);
const stateChanges = await diffState(
comet,
getCometConfig,
preMigrationBlockNumber
);
expect(stateChanges).to.deep.equal({
WRON: {
supplyCap: exp(3000000, 18)
},
USDC: {
supplyCap: exp(400000, 6)
},
AXS: {
supplyCap: exp(300000, 18)
},
// baseTrackingSupplySpeed: exp(2/86400, 15, 18),
// baseTrackingBorrowSpeed: exp(1/86400, 15, 18),
});

// const config = await rewards.rewardConfig(comet.address);
// expect(config.rescaleFactor).to.be.equal(exp(1, 12));
// expect(config.shouldUpscale).to.be.equal(true);

// 4. & 5.
//expect(await WETH.balanceOf(comet.address)).to.be.equal(exp(10, 18));
expect(await WETH.balanceOf(comet.address)).to.be.equal(exp(25, 18));
// 6.
const ENSResolver = await govDeploymentManager.existing(
'ENSResolver',
2 changes: 1 addition & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
@@ -118,7 +118,7 @@ const networkConfigs: NetworkConfig[] = [
{
network: 'ronin',
chainId: 2020,
url: `https://api.roninchain.com/rpc`,
url: `https://ronin.gateway.tenderly.co/${TENDERLY_KEY_RONIN}`,
},
{
network: 'polygon',
Loading