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

Aerodrome OETH AMO #2019

Closed
wants to merge 65 commits into from
Closed

Aerodrome OETH AMO #2019

wants to merge 65 commits into from

Conversation

PraneshASP
Copy link
Contributor

@PraneshASP PraneshASP commented Apr 15, 2024

If you made a contract change, make sure to complete the checklist below before merging it in master.

Refer to our documentation for more details about contract security best practices.

Contract change checklist:

  • Code reviewed by 2 reviewers.
  • Copy & paste code review security checklist below this checklist.
  • Unit tests pass
  • Slither tests pass with no warning
  • Echidna tests pass if PR includes changes to OUSD contract (not automated, run manually on local)

Notion resources:

@PraneshASP PraneshASP marked this pull request as draft May 15, 2024 19:10
@PraneshASP PraneshASP marked this pull request as ready for review May 17, 2024 09:22
* @param asset address of the asset
* @return uint256 unit price for 1 asset unit, in 18 decimal fixed
*/
function price(address asset)
Copy link
Member

Choose a reason for hiding this comment

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

this function is still identical to the one in OETHOracleRouter. You can create a OETHOracleRouterBase and implement the price function in it. And then have OETHOracleRouter and BaseOETHOracleRouter inherit from it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Refactored here: 826361f

PraneshASP and others added 2 commits May 17, 2024 14:57
* feat: oethcore deployment

* chore: fix deployment setup

* chore: update global hook

* config: update defi.yml

* config: add base fork tests to defi.yml

* Fix order of comparison

* Minor tweaks

* Fund correct deployer on fork

* fix: tests

* chore: fix tests

* chore: remove stack trace flag

* chore: fix typo

* chore: fix test

* fix: base fork test fixture

* chore: rename deployment file

* feat: OETHBase Vault base fork tests

* fix: unit tests

* feat: add more fork tests

* feat: refactor deploy actions, fixture  and fork test

* chore: minor optimization

* refactor: fix deploy actions and fixtures

* refactor: fork tests

* refactor: harvester contracts

* refactor: tests and deploy action

* chore: more refactoring

* Update deploy scripts to use Guardian address (#2075)

* wip

* refactor: update deploy scripts to use guardian

* chore: rename AeroHarvester -> OETHBaseHarvester

* refactor: abstract oracle contract

* chore: fmt

* refactor: base harvester aerodrome route

---------

Co-authored-by: Domen Grabec <[email protected]>
Co-authored-by: Shahul Hameed <[email protected]>
Copy link

codecov bot commented May 28, 2024

Codecov Report

Attention: Patch coverage is 40.59406% with 240 lines in your changes missing coverage. Please review.

Project coverage is 56.22%. Comparing base (8dbbd67) to head (37817e0).
Report is 10 commits behind head on master.

Files Patch % Lines
...acts/contracts/strategies/AerodromeEthStrategy.sol 0.00% 152 Missing ⚠️
contracts/contracts/harvest/OETHBaseHarvester.sol 0.00% 46 Missing ⚠️
contracts/contracts/oracle/PriceFeedPair.sol 0.00% 28 Missing ⚠️
...ontracts/contracts/oracle/BaseOETHOracleRouter.sol 0.00% 9 Missing ⚠️
contracts/contracts/harvest/OETHHarvester.sol 97.29% 2 Missing ⚠️
contracts/contracts/token/BridgedWOETH.sol 0.00% 2 Missing ⚠️
...tracts/contracts/harvest/AbstractHarvesterBase.sol 98.73% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2019      +/-   ##
==========================================
- Coverage   60.34%   56.22%   -4.13%     
==========================================
  Files          59       64       +5     
  Lines        3006     3262     +256     
  Branches      775      637     -138     
==========================================
+ Hits         1814     1834      +20     
- Misses       1189     1425     +236     
  Partials        3        3              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

openzeppelin-code bot commented Jun 1, 2024

Aerodrome OETH AMO

Generated at commit: eef77ffeaf25965e1b4d21ea9a58bc41a87e0132

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
3
3
0
18
42
66
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

@DanielVF DanielVF closed this Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contracts Works related to contracts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants