Skip to content

Conversation

@jrhea
Copy link
Contributor

@jrhea jrhea commented Feb 15, 2023

A one-off test that ensures that addLiquidity will fail if called with a zero amount.

@coveralls
Copy link
Collaborator

Pull Request Test Coverage Report for Build 4189191908

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.4%) to 25.311%

Totals Coverage Status
Change from base Build 4188869658: 0.4%
Covered Lines: 122
Relevant Lines: 482

💛 - Coveralls

@jrhea jrhea changed the title addLiquidityTests test_open_long_zero_amount() Feb 16, 2023
@jrhea jrhea marked this pull request as ready for review February 16, 2023 00:30
Copy link
Contributor

@jalextowle jalextowle left a comment

Choose a reason for hiding this comment

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

If we're going to change the style of the test names, can we do it universally? Doesn't need to be in this PR btw.

@jalextowle jalextowle changed the title test_open_long_zero_amount() Test the zero amount case for addLiquidity Feb 16, 2023
@jrhea jrhea merged commit 06f5bc2 into main Feb 16, 2023
@jrhea jrhea deleted the addLiquidityTests branch February 16, 2023 02:49
jalextowle added a commit that referenced this pull request Mar 7, 2024
…ath` (#822)

* Use safe functions more consistently in `calculateNetCurveTradeSafe`

* Fail if `calculateSharesOutGivenBondsInDownSafe` underflows

* Fixed the rust tests

* Improved the system's liveness when the present value can't be computed

* Improved the liveness properties of `removeLiquidity`

* Ignore `calculateLPSharePrice` failures in `removeLiquidity`

* Ensure that the ending indexes are valid in `HyperdriveFactory` getters

* Used unchecked arithmetic in several places

* Made the `LPMath` safer and used unchecked arithmetic

* Use unchecked arithmetic in the rest of the contracts

* Consolidated the derivative functions in the `LPMath` library

* Addressed review feedback from @jrhea

* Simplified the main loop of `calculateDistributeExcessIdle`
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