Path
Last updated
Last updated
Returns true iff the path contains two or more pools
Parameters:
path
bytes
The encoded swap path
Return Values:
bool
if path contains two or more pools, otherwise false
Decodes the first pool in path
Parameters:
path
bytes
The bytes encoded swap path
tokenA
address
The first token of the given pool
tokenB
address
The second token of the given pool
fee
uint24
The fee level of the pool
Gets the segment corresponding to the first pool in the path
path
bytes
The bytes encoded swap path
bytes
segment containing all data necessary to target the first pool in the path
Skips a token + fee element from the buffer and returns the remainder
path
bytes
The swap path
bytes
remaining token + fee elements in the path
Return Values:
Parameters:
Return Values:
Parameters:
Return Values: