Skip to content

ladderJobExpect

ladderJobExpect(ladders, pair, offer, fees, o): JobExpect

The bound for a ladder fill job (ladders carry no per-request quote): the user's offer gives pair.give (fees in that token come off it first, at most maxFeeBps of it) and may take at most what our own recent ladders pay for the net input, and nothing else (review A2). Throws a SolverError when the job is outside our ladders.

Parameter Type
ladders LadderPublisher
pair TokenPair
offer string
fees SwapFeeOutput[]
o { windowMs: number; maxFeeBps?: number; }
o.windowMs number
o.maxFeeBps? number

JobExpect