delvtech / hyperdrive

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

Improves code coverage on a few tests #960

Closed jalextowle closed 4 months ago

jalextowle commented 4 months ago

Description

Increases code coverage on the contracts/src/external/Hyperdrive.sol and contracts/src/factory/HyperdriveFactory.sol.

github-actions[bot] commented 4 months ago

Hyperdrive Gas Benchmark

Benchmark suite Current: 4adac79c5199dfa7c47b6f6d1e33c98e12084ae4 Previous: ae1cd7e983c2d647a78808c99696b9d6e124e1ba Deviation Status
addLiquidity: min 33893 gas 33783 gas 0.3256% 🚨
addLiquidity: avg 144923 gas 143896 gas 0.7137% 🚨
addLiquidity: max 428295 gas 428169 gas 0.0294% 🚨
checkpoint: min 40220 gas 40242 gas -0.0547% ✅
checkpoint: avg 103953 gas 104067 gas -0.1095% ✅
checkpoint: max 212154 gas 212176 gas -0.0104% ✅
closeLong: min 31517 gas 31495 gas 0.0699% 🚨
closeLong: avg 138050 gas 138101 gas -0.0369% ✅
closeLong: max 2640435 gas 2640413 gas 0.0008% 🚨
closeShort: min 31394 gas 31416 gas -0.0700% ✅
closeShort: avg 132886 gas 132891 gas -0.0038% ✅
closeShort: max 227565 gas 227587 gas -0.0097% ✅
initialize: min 31305 gas 31327 gas -0.0702% ✅
initialize: avg 253635 gas 253661 gas -0.0102% ✅
initialize: max 322760 gas 322672 gas 0.0273% 🚨
openLong: min 33437 gas 33547 gas -0.3279% ✅
openLong: avg 167347 gas 167586 gas -0.1426% ✅
openLong: max 253162 gas 253272 gas -0.0434% ✅
openShort: min 33959 gas 33937 gas 0.0648% 🚨
openShort: avg 170388 gas 170070 gas 0.1870% 🚨
openShort: max 385650 gas 385628 gas 0.0057% 🚨
redeemWithdrawalShares: min 31227 gas 31227 gas 0% 🟰
redeemWithdrawalShares: avg 61983 gas 62089 gas -0.1707% ✅
redeemWithdrawalShares: max 167572 gas 167572 gas 0% 🟰
removeLiquidity: min 31191 gas 31169 gas 0.0706% 🚨
removeLiquidity: avg 222820 gas 223217 gas -0.1779% ✅
removeLiquidity: max 398887 gas 398865 gas 0.0055% 🚨

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