delvtech / hyperdrive

An automated market maker for fixed and variable yield with on-demand terms.
Apache License 2.0
25 stars 3 forks source link

Fixed the `MockERC4626` vault #1016

Closed jalextowle closed 2 months ago

jalextowle commented 2 months ago

Description

This PR makes the maxMintAmount mutable and adds an unrestricted flow for minting. This will fix the problems that we've seen on testnet with the sDAI vault.

Review Checklists

Please check each item before approving the pull request. While going through the checklist, it is recommended to leave comments on items that are referenced in the checklist to make sure that they are reviewed. If there are multiple reviewers, copy the checklists into sections titled ## [Reviewer Name]. If the PR doesn't touch Solidity and/or Rust, the corresponding checklist can be removed.

[[Reviewer Name]]

coveralls commented 2 months ago

Pull Request Test Coverage Report for Build 8944755568

Details


Totals Coverage Status
Change from base Build 8933353219: 0.0%
Covered Lines: 1833
Relevant Lines: 1966

šŸ’› - Coveralls
github-actions[bot] commented 2 months ago

Hyperdrive Gas Benchmark

Benchmark suite Current: 8545bb75382a731aa463549fc99f61e9124c184f Previous: fee327731672c92ce71cc350a996016a30c5a617 Deviation Status
addLiquidity: min 33827 gas 33827 gas 0% šŸŸ°
addLiquidity: avg 155879 gas 156220 gas -0.2183% āœ…
addLiquidity: max 428439 gas 428439 gas 0% šŸŸ°
checkpoint: min 40270 gas 40270 gas 0% šŸŸ°
checkpoint: avg 142302 gas 142275 gas 0.0190% šŸšØ
checkpoint: max 253402 gas 253402 gas 0% šŸŸ°
closeLong: min 31361 gas 31361 gas 0% šŸŸ°
closeLong: avg 135168 gas 135375 gas -0.1529% āœ…
closeLong: max 2625774 gas 2625774 gas 0% šŸŸ°
closeShort: min 31349 gas 31349 gas 0% šŸŸ°
closeShort: avg 131549 gas 131559 gas -0.0076% āœ…
closeShort: max 262932 gas 401793 gas -34.5603% āœ…
initialize: min 31371 gas 31371 gas 0% šŸŸ°
initialize: avg 330371 gas 330281 gas 0.0272% šŸšØ
initialize: max 396281 gas 396281 gas 0% šŸŸ°
openLong: min 33370 gas 33370 gas 0% šŸŸ°
openLong: avg 173306 gas 173566 gas -0.1498% āœ…
openLong: max 306679 gas 306679 gas 0% šŸŸ°
openShort: min 33936 gas 33936 gas 0% šŸŸ°
openShort: avg 168018 gas 167896 gas 0.0727% šŸšØ
openShort: max 415379 gas 414945 gas 0.1046% šŸšØ
redeemWithdrawalShares: min 31251 gas 31251 gas 0% šŸŸ°
redeemWithdrawalShares: avg 74660 gas 74650 gas 0.0134% šŸšØ
redeemWithdrawalShares: max 209762 gas 209762 gas 0% šŸŸ°
removeLiquidity: min 31301 gas 31301 gas 0% šŸŸ°
removeLiquidity: avg 208895 gas 208656 gas 0.1145% šŸšØ
removeLiquidity: max 403397 gas 403574 gas -0.0439% āœ…

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