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

feat: $cCOP launch deployment scripts #226

Merged
merged 7 commits into from
Oct 17, 2024
Merged

feat: $cCOP launch deployment scripts #226

merged 7 commits into from
Oct 17, 2024

Conversation

nvtaveras
Copy link
Contributor

@nvtaveras nvtaveras commented Oct 10, 2024

Description

This adds the deployment script for launching $cCOP. Because it's essentially taking the same scripts we have written from previous deployments (in this case I took $PUSO as the base), I divided this into mostly 4 commits:

  1. Copying the $PUSO scripts into the existing $cCOP folder (without changing anything) - 999f434
  2. Making the actual changes to the scripts, essentially renaming a bunch of $PUSO references to $cCOP - 6352d42
  3. Renaming all the $PUSO scripts to cCOPXX.sol - de7c60f
  4. Fix the import statements from the renaming in the previous step - 71f8951

In this way, you can essentially review all commits after the first one independently to look at the smaller diff created when adjusting the $PUSO scripts, instead of the full blown overall changes of the PR.

Things left to do before this can be merged:

  • Get confirmation from Roman for the pool parameters and circuit breaker configuration changes in c1498f0. They were simply taken from $PUSO and adjusted to the COP/USD exchange rate.
  • The CELO/COP and COP/USD relayers should be deployed
  • Simulate the proposal and make sure all checks pass

Tested

Not yet tested/simulated as the relayers are not yet deployed due to an issue on Alfajores when trying to deploy a contract using forno.

Related issues

@nvtaveras nvtaveras changed the title Feat/c cop feat: $cCOP launch deployment scripts Oct 11, 2024
@@ -40,7 +40,8 @@ library cCOPConfig {
* @dev Returns the configuration for the COPUSD rate feed.
*/
function COPUSD_RateFeedConfig() internal pure returns (Config.RateFeed memory rateFeedConfig) {
// TODO: Get the final circuit breaker configuration values from Roman and update them below.
// TODO: Get confirmation for Roman that these are OK
// These are the exact same as the $PUSO rate feed config
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rcroessmann Didn't update any of the circuit breaker parameters below

asset1limits: Config.TradingLimit({
enabled0: true,
timeStep0: 5 minutes,
limit0: 4211 * 200_000,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rcroessmann Took this rate from the chainlink COP/USD aggregator directly https://celoscan.io/address/0x97b770B0200CCe161907a9cbe0C6B177679f8F7C#readContract

Copy link
Contributor

@philbow61 philbow61 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - Simulation on Alfajores works and looks good
will approve once we have the config

@bayological bayological merged commit ac148b2 into main Oct 17, 2024
1 check passed
@bayological bayological deleted the feat/cCOP branch October 17, 2024 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants