UrbRouter
Structs
SwapParams
Parameter
Description
deployer
deployer of protocol adaptors, used for efficient address lookup
parts
list of ints with various flags and pointers (e.g.: isInput, tokenInId, ...)
data
tightly encoded data, contains: amounts, tokens adaptor specific pointers and flags, addresses, ...
Functions
swap
Performs a swap on route. Initially calls quote to get skipMask.
Return
Description
amounts
list of amounts corresponding to each part of a route
skipMask
bit mask of skipped route parts
gasUsed
gas used during a swap
quote
Expects same params and returns same values, except it only dry-runs a route.
Last updated