Skip to main content
Contains methods for computing the result of a swap within a single tick price range, i.e., a single tick.

Functions

computeSwapStep

Computes the result of swapping some amount in, or amount out, given the parameters of the swap The fee, plus the amount in, will never exceed the amount remaining if the swap’s amountSpecified is positive

Parameters:

Return Values: