Path
Path is [pool_addr, tokenAIn, pool_addr, tokenAIn ...], alternating 20 bytes and then one byte for the tokenAIn bool.
State Variables
ADDR_SIZE
The length of the bytes encoded address.
BOOL_SIZE
The length of the bytes encoded bool.
NEXT_OFFSET
The offset of a single token address and pool address.
Functions
hasMultiplePools
Returns true iff the path contains two or more pools.
Parameters
Returns
decodeFirstPool
Decodes the first pool in path.
Parameters
decodeNextPoolAddress
skipToken
Skips a token + pool element from the buffer and returns the remainder.
Parameters
Returns
Last updated