Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add short::open tests #970

Merged
merged 3 commits into from
Apr 24, 2024
Merged

Add short::open tests #970

merged 3 commits into from
Apr 24, 2024

Conversation

dpaiton
Copy link
Member

@dpaiton dpaiton commented Apr 16, 2024

Resolved Issues

partially addresses #937

Description

This PR

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]]

Rust

  • Testing
    • Are there new or updated unit or integration tests?
    • Do the tests cover the happy paths?
    • Do the tests cover the unhappy paths?
    • Are there an adequate number of fuzz tests to ensure that we are
      covering the full input space?
    • If matching Solidity behavior, are there differential fuzz tests that
      ensure that Rust matches Solidity?

Copy link

github-actions bot commented Apr 16, 2024

Hyperdrive Gas Benchmark

Benchmark suite Current: 612ce70 Previous: dada2f9 Deviation Status
addLiquidity: min 33893 gas 33893 gas 0% 🟰
addLiquidity: avg 144147 gas 144301 gas -0.1067%
addLiquidity: max 428319 gas 428319 gas 0% 🟰
checkpoint: min 40220 gas 40220 gas 0% 🟰
checkpoint: avg 103888 gas 104067 gas -0.1720%
checkpoint: max 212154 gas 212154 gas 0% 🟰
closeLong: min 31517 gas 31517 gas 0% 🟰
closeLong: avg 138059 gas 137774 gas 0.2069% 🚨
closeLong: max 2640435 gas 2640435 gas 0% 🟰
closeShort: min 31394 gas 31394 gas 0% 🟰
closeShort: avg 132808 gas 132727 gas 0.0610% 🚨
closeShort: max 227565 gas 227565 gas 0% 🟰
initialize: min 31305 gas 31305 gas 0% 🟰
initialize: avg 253636 gas 253638 gas -0.0008%
initialize: max 322760 gas 322760 gas 0% 🟰
openLong: min 33437 gas 33437 gas 0% 🟰
openLong: avg 167438 gas 167331 gas 0.0639% 🚨
openLong: max 253162 gas 253162 gas 0% 🟰
openShort: min 33959 gas 33959 gas 0% 🟰
openShort: avg 170385 gas 170153 gas 0.1363% 🚨
openShort: max 385650 gas 385650 gas 0% 🟰
redeemWithdrawalShares: min 31227 gas 31227 gas 0% 🟰
redeemWithdrawalShares: avg 61837 gas 61916 gas -0.1276%
redeemWithdrawalShares: max 167572 gas 167572 gas 0% 🟰
removeLiquidity: min 31191 gas 31191 gas 0% 🟰
removeLiquidity: avg 223425 gas 223242 gas 0.0820% 🚨
removeLiquidity: max 398887 gas 398887 gas 0% 🟰

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

@dpaiton dpaiton changed the title Dpaiton/spot price after short fix spot price after short Apr 17, 2024
@dpaiton dpaiton force-pushed the dpaiton/spot-price-after-short branch from 612ce70 to 5b6a080 Compare April 22, 2024 23:10
@dpaiton dpaiton force-pushed the dpaiton/spot-price-after-short branch from 5b6a080 to 70ae90c Compare April 22, 2024 23:15
@dpaiton dpaiton changed the title fix spot price after short Add short::open tests Apr 22, 2024
@dpaiton dpaiton marked this pull request as ready for review April 23, 2024 17:27
@dpaiton dpaiton added this pull request to the merge queue Apr 24, 2024
Merged via the queue into main with commit 1576e4c Apr 24, 2024
36 checks passed
@dpaiton dpaiton deleted the dpaiton/spot-price-after-short branch April 24, 2024 16:58
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.

2 participants