Skip to content

Docs How it actually works

The closing fee ​

A flat share of a fuse's premium, taken out of what the fuse pays when it ends.

Local build, not on the testnet yet

The rule ​

fee    = min( payout , closeFee × premium )
payout = payout − fee
  • When: at an early close and at expiry alike.
  • How much: 5% of the premium.
  • Never more than the payout. A fuse that pays back less than the fee pays the whole of that and no more. A fuse that expires worthless pays nothing.
  • After everything else: the win charge and the 50× cap are applied first.
  • Fixed at open: a fuse keeps the fee it opened with (chargeOf(id).closeFeePpm).

The owner sets the rate (setCloseFeePpm), at most 10%. A fresh deployment sets 5%. An upgraded contract charges nothing until the owner sets it.

What it replaced ​

The fee takes the place of the time edge: a rule that gave a fuse about 10% less time for the same premium, so that it opened worth 95% of what was paid. Both take about 5% of the premium. They differ in when and from whom:

Time edge at openClosing fee
A fuse on openingShows about −5% at onceIs worth its whole premium
Time for the premiumAbout 10% lessAll of it
A fuse that expires worthlessHas paid the edgePays nothing
A fuse closed at onceLoses about 5%Loses 5%

On screen ​

An open fuse's value and PnL are before the fee. The fee is stated in three places: on the ticket before you open, on the Close button, and on a settled fuse in the history.