-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: insufficient liquidity checks (#190)
* Revert "Add Insufficient Liquidity warning when tokenIn total cannot be gathered" This reverts commit 3dd5f92. * Add extra insufficientLiquidityOut check: - calculateOut may have an amountOut cap of maxOut * Show general insufficient liquidity warning on swap: - occurs when there are no ticks on the requested pair * Abstract out SwapError type
- Loading branch information
Showing
3 changed files
with
30 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters