intrepidshape/elm-web3-ui/2.0.0

NOTE: the latest version is 4.0.0

Web3.Ui.HoldClock

Visual countdown of a graduated-fee tier. Common pattern: an early-exit fee that decays linearly from a base rate to a floor over N days. Shows current fee % and a progress ring/line until the floor is reached.

Web3.Ui.HoldClock.view
    { holdSeconds = nowSec - weightedBuyTime
    , decayDays = 40
    , baseFeeBps = 500   -- 5%
    , minFeeBps  = 100   -- 1%
    }

Style classes: web3-holdclock, web3-holdclock__current, web3-holdclock__bar, web3-holdclock__fill, web3-holdclock__remaining.

view : Config -> Html msg

Render the hold-clock widget.

type alias Config =
{ holdSeconds : Int
, decayDays : Int
, baseFeeBps : Int
, minFeeBps : Int
}