def recent_429.anchor
import cswap-bend-cli@0.1.0.0/pollrow.bend as Pollrowimport Base
import cswap-bend-cli@0.1.0.0/poll.bend as Poll
25# A 429 on this token is recent enough to keep the post-429 cadence: measured
26# from when the honoured backoff lifts, for one hour.
27def recent_429.anchor(+l: U32, bu: Maybe<&2, U32>, is429: Bool) -> U32:
28 match bu is429:
29 case Some{b} True{}:
30 Poll.max_u(l, b)
31 case _ _:
32 l