def recent.of

cswap-bend-cli@0.1.0.0 · pollrow.bend:34

import cswap-bend-cli@0.1.0.0/pollrow.bend as Pollrow
import Base
import cswap-bend-cli@0.1.0.0/poll.bend as Poll

34def recent.of(l: Maybe<&2, U32>, bu: Maybe<&2, U32>, is429: Bool, +now: U32) -> Bool:
35  match l:
36    case None{}:
37      False{}
38    case Some{+x}:
39      U32.is_lt(now, (recent_429.anchor(x, bu, is429) + Poll.recent_429_window() : U32))

Uses (7)

Used by (1)