Skip to content

Conversation

@sentilesdal
Copy link
Contributor

@sentilesdal sentilesdal commented Mar 13, 2024

Adds Renzo's ezETH as an integration. Because their pool was launched Dec 15, 2023, there wasn't a large window for testing on a mainnet fork. The have a series of operator delegators that use a series of oracles for the token TVLs which limits testing capability without heavy mocking of the whole protocol. Instead, I used a 15 position duration to test with the actual deployed renzo code.

Notes:

  • Error bars had to be increased because of compounding rounding errors with Renzo's calculateTVLs(). I noted where this happened with TODOs
  • We can pass a uin256 refererId to restakingManager.depositETH(). I left it blank for now but happy to add.
  • commented out tests that don't apply, I'll remove them after review makes sure they're not needed.

@sentilesdal sentilesdal force-pushed the matt-renzo-integration branch from 013acff to bbc8557 Compare March 14, 2024 19:46
@sentilesdal sentilesdal changed the title DRAFT - Renzo Integration Renzo Integration Mar 15, 2024
@sentilesdal sentilesdal force-pushed the matt-renzo-integration branch 2 times, most recently from 44d7c1b to 2250f2c Compare March 15, 2024 19:50
@sentilesdal sentilesdal force-pushed the matt-renzo-integration branch from 0f480be to 4f23503 Compare March 18, 2024 02:29
@sentilesdal sentilesdal enabled auto-merge (squash) March 18, 2024 02:46
@sentilesdal sentilesdal merged commit 3cdf469 into main Mar 18, 2024
@sentilesdal sentilesdal deleted the matt-renzo-integration branch March 18, 2024 03:05
dpaiton pushed a commit that referenced this pull request Mar 28, 2024
* Updated `HyperdriveFactory` so that it can support initialization with shares

* Add initialize tests for the deployer coordinator

* copy steth integration

* rename files

* stEth -> ezEth

* add interfaces

* add IRestakeManager interface

* lido -> restakeManager

* remove lido, update deposit method

* copy steth test file

* capitalize name

* update deposit/withdraw functions

* add deployers

* fixup deployers

* add ezETH to deployers

* add ezETH to instances

* add calculateTVLs to interface

* add and cleanup tests

* remove ezETH from constructors

* update tests

* fix remaining tests

* small cleanups

* wrap comment

* address nit fixes

* remove IEzETHHyperdriveCore.sol

* remove unused import

* add IRenzoOracle, combine interface files

* update imports

* final nits addressed

* fix capitalization

* capitalization

* asdf.sol

* rename

* don't allow ETH txns

* disable ETH for deployAndInitialize

* update tests

* remove consoles

* small nits

* fix revert tests

* all tess passing

* remove unused code

* cleanup

* last fixups

---------

Co-authored-by: Alex Towle <jalextowle@gmail.com>
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.

5 participants