Render a fee-split table. Each row is one slice of the fee -- the caller provides labels, basis points, and (optionally) the Wei amount that slice will receive at the current trade size.
Web3.Ui.FeeBreakdown.view
{ totalBps = 150
, symbol = "PLS"
, decimals = 18
, gross = Just tradeGrossWei
, slices =
[ { label = "Creator", bps = 50, recipient = Just creatorAddr }
, { label = "Protocol", bps = 10, recipient = Nothing }
, { label = "Platform", bps = 20, recipient = Nothing }
, { label = "Token pool", bps = 70, recipient = Nothing }
]
}Style classes: web3-feebreakdown, web3-feebreakdown__row, web3-feebreakdown__label,
web3-feebreakdown__bps, web3-feebreakdown__amount, web3-feebreakdown__total.
One row of the fee table.
Render the breakdown table.