Skip to content

Infrastructure improvements for the trading competition#523

Merged
jalextowle merged 12 commits intomainfrom
jalextowle/competition/flexible-configuration
Jul 24, 2023
Merged

Infrastructure improvements for the trading competition#523
jalextowle merged 12 commits intomainfrom
jalextowle/competition/flexible-configuration

Conversation

@jalextowle
Copy link
Copy Markdown
Contributor

One of the requirements for the trading competition is a Hyperdrive instance that is configured with 1 week terms. We've wanted to utilize Hyperdrive factories and real instance implementations in our devnet for some time, so it made sense to make this change as part of the effort for the competition. Along with sprucing up the migration scripts, I also removed the MockHyperdriveTestnet contract in favor of a MockERC4626 vault that will accrue interest in the exact same way as MockHyperdriveTestnet.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jul 22, 2023

Hyperdrive Gas Benchmark

Benchmark suite Current: 4d15b73 Previous: 71c6688 Deviation Status
addLiquidity: min 785 gas 785 gas 0% 🟰
addLiquidity: avg 43549 gas 43693 gas -0.3296%
addLiquidity: max 80573 gas 80573 gas 0% 🟰
checkpoint: min 514 gas 514 gas 0% 🟰
checkpoint: avg 22776 gas 22776 gas 0% 🟰
checkpoint: max 32767 gas 32767 gas 0% 🟰
closeLong: min 852 gas 852 gas 0% 🟰
closeLong: avg 45406 gas 45415 gas -0.0198%
closeLong: max 77501 gas 77501 gas 0% 🟰
closeShort: min 809 gas 809 gas 0% 🟰
closeShort: avg 40845 gas 40681 gas 0.4031% 🚨
closeShort: max 86896 gas 86800 gas 0.1106% 🚨
initialize: min 714 gas 714 gas 0% 🟰
initialize: avg 159368 gas 159368 gas 0% 🟰
initialize: max 233486 gas 233486 gas 0% 🟰
openLong: min 740 gas 740 gas 0% 🟰
openLong: avg 112515 gas 112890 gas -0.3322%
openLong: max 179472 gas 179472 gas 0% 🟰
openShort: min 782 gas 782 gas 0% 🟰
openShort: avg 151254 gas 150822 gas 0.2864% 🚨
openShort: max 218899 gas 218899 gas 0% 🟰
removeLiquidity: min 762 gas 762 gas 0% 🟰
removeLiquidity: avg 57537 gas 57231 gas 0.5347% 🚨
removeLiquidity: max 118973 gas 118973 gas 0% 🟰

This comment was automatically generated by workflow using github-action-benchmark.

@coveralls
Copy link
Copy Markdown
Collaborator

coveralls commented Jul 22, 2023

Coverage Status

coverage: 98.243%. remained the same when pulling 4d15b73 on jalextowle/competition/flexible-configuration into 71c6688 on main.

@jalextowle jalextowle force-pushed the jalextowle/competition/flexible-configuration branch from f2287c0 to fb89b02 Compare July 22, 2023 04:57
@ControlCplusControlV
Copy link
Copy Markdown
Contributor

Seems like we have a lot of CI failures, do you know what we need for fixes?

Comment thread script/DevnetMigration.s.sol Outdated
Comment thread script/DevnetMigration.s.sol
Comment thread script/DevnetMigration.s.sol
Comment thread script/DevnetSmokeTest.s.sol Outdated
Comment thread script/DevnetSmokeTest.s.sol
Copy link
Copy Markdown
Contributor

@ControlCplusControlV ControlCplusControlV left a comment

Choose a reason for hiding this comment

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

:shipit:

@jalextowle jalextowle merged commit a3116be into main Jul 24, 2023
@jalextowle jalextowle deleted the jalextowle/competition/flexible-configuration branch July 24, 2023 19:46
gtowle03 pushed a commit that referenced this pull request Jul 24, 2023
* Cleaned up `MockHyperdriveScript`

* Added a mock ERC4626 contract and a new migration script

* Improved the scripts

* Removed `MockHyperdriveTestnet` in favor of `ERC4626Hyperdrive

* Build a docker image for testing

* More polishing and deleting

* More polishing

* Reverted change in `.github/workflows/docker.yml`

* Added an error decoder helper

* Improved the smoke test

* Addressed review feedback from @ControlCplusControlV and @ryangoree

* Added the forwarder factory to the devnet migration
gtowle03 added a commit that referenced this pull request Jul 24, 2023
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