Skip to content

Commit

Permalink
revert l01
Browse files Browse the repository at this point in the history
  • Loading branch information
hensha256 committed Aug 15, 2024
1 parent 3609d81 commit e9958fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libraries/Pool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ library Pool {
if (params.sqrtPriceLimitX96 >= slot0Start.sqrtPriceX96()) {
PriceLimitAlreadyExceeded.selector.revertWith(slot0Start.sqrtPriceX96(), params.sqrtPriceLimitX96);
}
if (params.sqrtPriceLimitX96 < TickMath.MIN_SQRT_PRICE) {
if (params.sqrtPriceLimitX96 <= TickMath.MIN_SQRT_PRICE) {
PriceLimitOutOfBounds.selector.revertWith(params.sqrtPriceLimitX96);
}
} else {
Expand Down

1 comment on commit e9958fd

@wjmelements
Copy link
Contributor

Choose a reason for hiding this comment

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

similar to #813

Please sign in to comment.