delvtech / hyperdrive

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

Price Discovery Fix Pt. 1 #1012

Closed jalextowle closed 5 months ago

jalextowle commented 5 months ago

Resolved Issues

Addresses a component of #1000.

Description

https://hackmd.io/yMNxotdqRKSuNrac9w8uFw?view

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.

@jrhea

@mcclurejt

@cashd

coveralls commented 5 months ago

Pull Request Test Coverage Report for Build 8927567071

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
contracts/src/deployers/HyperdriveDeployerCoordinator.sol 7 8 87.5%
contracts/src/deployers/ezeth/EzETHTarget5Deployer.sol 2 3 66.67%
<!-- Total: 38 40 95.0% -->
Files with Coverage Reduction New Missed Lines %
contracts/src/internal/HyperdriveLP.sol 1 96.83%
contracts/src/internal/HyperdriveShort.sol 1 93.81%
contracts/src/internal/HyperdriveLong.sol 2 93.81%
contracts/src/libraries/YieldSpaceMath.sol 2 91.43%
contracts/src/libraries/LPMath.sol 14 84.29%
<!-- Total: 20 -->
Totals Coverage Status
Change from base Build 8883450782: -0.6%
Covered Lines: 1820
Relevant Lines: 1957

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

Hyperdrive Gas Benchmark

Benchmark suite Current: 37c94adfb9b1154a98a6010a3d8e079ae57664b1 Previous: f76f5dacd38664cae6a2539770f30ff595d92141 Deviation Status
addLiquidity: min 33893 gas 33893 gas 0% šŸŸ°
addLiquidity: avg 147854 gas 145128 gas 1.8783% šŸšØ
addLiquidity: max 416093 gas 428319 gas -2.8544% āœ…
checkpoint: min 40220 gas 40220 gas 0% šŸŸ°
checkpoint: avg 104439 gas 104425 gas 0.0134% šŸšØ
checkpoint: max 211582 gas 212154 gas -0.2696% āœ…
closeLong: min 31517 gas 31517 gas 0% šŸŸ°
closeLong: avg 137028 gas 138726 gas -1.2240% āœ…
closeLong: max 2640435 gas 2640435 gas 0% šŸŸ°
closeShort: min 31394 gas 31394 gas 0% šŸŸ°
closeShort: avg 133517 gas 133058 gas 0.3450% šŸšØ
closeShort: max 253640 gas 227565 gas 11.4583% šŸšØ
initialize: min 31265 gas 31305 gas -0.1278% āœ…
initialize: avg 276084 gas 253643 gas 8.8475% šŸšØ
initialize: max 344216 gas 322898 gas 6.6021% šŸšØ
openLong: min 33348 gas 33437 gas -0.2662% āœ…
openLong: avg 166838 gas 167129 gas -0.1741% āœ…
openLong: max 253064 gas 253057 gas 0.0028% šŸšØ
openShort: min 33959 gas 33959 gas 0% šŸŸ°
openShort: avg 162757 gas 170383 gas -4.4758% āœ…
openShort: max 407200 gas 385545 gas 5.6167% šŸšØ
redeemWithdrawalShares: min 31251 gas 31227 gas 0.0769% šŸšØ
redeemWithdrawalShares: avg 73611 gas 62864 gas 17.0956% šŸšØ
redeemWithdrawalShares: max 204973 gas 167572 gas 22.3194% šŸšØ
removeLiquidity: min 31191 gas 31191 gas 0% šŸŸ°
removeLiquidity: avg 198467 gas 221885 gas -10.5541% āœ…
removeLiquidity: max 395673 gas 398887 gas -0.8057% āœ…

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