Skip to content

Conversation

@sirpy
Copy link
Contributor

@sirpy sirpy commented Oct 30, 2024

Description by Korbit AI

What change is being made?

Disable certain job steps in the CI pipeline by introducing new if conditions set to false and add new interfaces including IMentoReserve, IBancorExchangeProvider, IGoodDollarExpansionController, IGoodDollarExchangeProvider, and ITradingLimits in MentoInterfaces.sol to the codebase. Add a new CeloDistributionHelper contract and its test helper along with upgrading the GoodMarketMaker, GoodFundManager, and modifying configurations in hardhat.config.ts. Introduce new deployment scripts and update package dependencies along with deployment configuration.

Why are these changes being made?

These changes aim to disable parts of the CI pipeline temporarily for testing or debugging purposes without removing the code, and to enhance contract functionality by adding significant improvements such as upgrading the protocol to incorporate new Mento components. This facilitates integration with Celo and improves functionality through new distribution and reserve handling mechanisms while simplifying and updating scripts and deployment configurations to better align with the current requirements of the project.

Is this description stale? Ask me to generate a new description by commenting /korbit-generate-pr-description

@openzeppelin-code
Copy link

openzeppelin-code bot commented Oct 30, 2024

mento reserve upgrade

Generated at commit: 1eca0e97cd22f8a5492083eb83ea11c19906cca0

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
3
5
0
16
44
68
Dependencies Critical
High
Medium
Low
Note
Total
0
0
1
0
111
112

For more details view the full report in OpenZeppelin Code Inspector

@sirpy sirpy requested a review from peterje-tr December 16, 2024 07:45
@sirpy sirpy merged commit c6da5db into reserve-hack-fix Mar 30, 2025
9 of 10 checks passed
sirpy added a commit that referenced this pull request Mar 31, 2025
* fix: make sure GOOD rewards are updated on change

* fix: limit amount of G$ to sell for fees

* fix: dont count on fundmanager and exchange helper for funds transfer

* fix: dont allow untrusted staking contracts

* fix: dont allow transfer of hacked funds

* add: hack fix upgrade script

* add: test for reward update fix

* add: celo distribution helper

* add: basic upgrade script

* Revert "fix: dont count on fundmanager and exchange helper for funds transfer"

This reverts commit deeec59.

* Revert "fix: dont allow transfer of hacked funds"

This reverts commit a88a438.

* revert: initial reserve deposit

* fix: reset so other test file dont break

* fix: e2e testing issue

* add: todo

* add: mento upgrade simulation and contract

* add: mint ubi calculation fixes and guardian proposal approval

* fix: dont count on fundmanager and exchange helper for funds transfer

* add: only trust reservesupply for ubi minting

* fix: new var storage location

* add: eth reserve restore upgrade

* add: audit fixes

* add: fix tests

* fix: celodisthelper sell gd

* fix: celodist helper tests

* fix: failing test

* fix: coverage

* add: use transferfrom to prevent dai lock. upgrade fuse governance

* add: remove mento upgrade into separate PR

* add: removed outdated todo

* fix: code review use constant for repeating addresses

* fix: remove redundant require

* add: allow to restore reserve in batches

* mento reserve upgrade (#274)

* wip: metno upgrade

* fix: make sure to unpause reserve only after funds restoration

* fix: exit contribution from mento audit

* add: working mento upgrade for dev

* fix: restore deleted

* add: celo dev env deployment + simulation

* add: adapt to mento after audit

* fix: comments

* add: final upgrade script for celo reserve

* fix: allow stakers to withdraw from staking contracts if G$ rewards pending

* fix: dont try to mint reward if reserve is paused

* fix: dont fail distribution if cant buy native tokens

* fix: use global supply to determine initial price

* add: adapt script to work with us deploying mento reserve

* add: full broker interface

* add: dont mint GOOD post hack on ethereum

* add: deployed production + safe sdk upgrade

* fix: disable coverage

* fix: superfluid missing contract

* add: checksonly
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.

4 participants