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/erc4626 share price oracle automation forwarder #149

Conversation

crispymangoes
Copy link
Collaborator

No description provided.

@crispymangoes crispymangoes merged commit 9cf184f into dev/macro-audit-12 Oct 17, 2023
@crispymangoes crispymangoes deleted the feat/erc4626-share-price-oracle-automation-forwarder branch October 17, 2023 15:05
Copy link
Contributor

@0xEinCodes 0xEinCodes left a comment

Choose a reason for hiding this comment

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

All in all looks good to me. I noticed you commented out some test code in the LegacyCellarAdaptorForRye, may you expand on that? Also I have a couple clarification questions that I'm not too worried about:

  1. Interfaces are custom? I may have just missed this at a glance but it seems getForwarder is not an interface function within IRegistry.sol from Chainlink for example.
  2. Forwarder == reverse proxy. Essentially it acts as a single address that any node can report to. Is this an alright interpretation? This would make sense that it has to be the one performing upkeep now.

@crispymangoes
Copy link
Collaborator Author

Yeah so LegacyCellarAdaptorForRye is a bit weird. The original test relies on blockchain state from a couple months ago. But the new Chainlink Automation V2 contracts are not deployed at said block. So in order for the new share price oracle contracts to work we need a much more recent blockchain state, but this new blockchain state already has the RYBTC, RYE integration completed, so the test state is no longer valid.

Because of this the test is commented out. In the future we might completely remove this test, but for now it has been left commented out, so that it can be referenced.

crispymangoes added a commit that referenced this pull request Oct 30, 2023
* Feat/pricing extensions erc4626 redstone eth curve ema (#148)

* Create Redstone Eth pricing extension and add tests.

* Create ERC4626 pricing extension and write test.

* Create Curve EMA oracle extension

* Work on CurveEMAExtension test

* Add integration test with actual sweth eth feed

* Update outdated comment

* Create redstone Eth deploy script, and script for deploying V1 Auotmation Upkeeps

* Fix script error using the wrong func selector

* Feat/erc4626 share price oracle automation forwarder (#149)

* Work out how to integrate forwarder address

* Setup share price oracle to work with new forwarder

* Integreate new forwarder logic for share price oracle

* Update comment

* Update comments in pricing extensions, move interface, and rename `testStrategist` to `devStrategist` so it is not included in tests

* feat/ Write Aura Protocol Integrations Smart Contracts (#141)

* Write README for Aura integration to discuss around

* Write rough AuraExtrasAdaptor.sol && questions in md files

* Write CellarAdaptorWithAura.t.sol pseudo-code

* Continue working on aura tests w/ cellar adaptor

* Finish 1st stateless fuzz tests w/ Aura Positions

* Start drafting up ERC4626Adaptor.sol

* Start writing new AuraERC4626 Adaptor & tests

* Write AuraERC4626Adaptor tests w/ new ERC4626Adaptor.sol

* Replace old aura test files w/ new auraERC4626 tests

* Reformat ERC4626Adaptor.sol to use ERC4626 vs Cellar

* Delete prelim md aura adaptor docs & finalize tests

* Make minor change requests as per PR Review #141

* Create relevant tests w/ Cellar & ERC4626Adaptor & move ERC4626Adaptor.sol

* Make changes as per PR #141 Review

* Check, then remove console logs from AuraERC4626AdaptorTest

* Reformat AdaptorHelperFunctions.sol

* Remove TODO comments in AuraERC4626Adaptor.sol

* Make adjustments to Fraxlend Adaptors as per Feedback from Strategists (#150)

* Add maxAvailable() to removeCollateral() & fix DebtFTokenAdaptor w/ toBorrowShares()

* Add more Fraxlend removeCollateral tests w/ type(uint256).max

* Resolve most of fraxlend adaptors stateless fuzzing

* Add test showing sFRAX integration is supported using existing CellarAdaptor (#151)

* Fix/macro audit 12 (#152)

* Fix M1

* Fix L2

* Fix L1

* Fix M2

---------

Co-authored-by: 0xEinCodes <[email protected]>
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.

2 participants