docs/pricing.md

Pricing and metering

Prices

sizeper hour
xs$0.20
s$0.40
m$0.80

USDG rates are fixed at those prices (6 decimals: xs is 200000). The ETH rate is set from the chain's WETH/USDG pool, see below.

Per started hour

Hour 1 is metered by started, the moment your shell is up. Hour n is metered by meter(box) once now ≥ startedAt + (n − 1) × 3600, at most one hour per call. Stopping at minute 40 of hour 1 costs one hour.

paid      = hours × rate[pay][size]
metered   = hours started before the stop (at least 1 once started)
refund    = (hours − metered) × rate[pay][size]

Refunds

Refunds are paid by close, forceClose and kill, in the token you paid, to the wallet that owns the box. A box is refunded once; the Refunded event carries the hours and the amount.

Rates

Every hour at :00 the keeper quotes 0.01 ETH against USDG on the WETH/USDG pool and posts new ETH rates with setRates. The Meter refuses any move larger than 15% per update. Your box keeps the rate it was opened at for its whole session, extensions included.

Where the money goes

hour paid in ETHcompute treasury
hour paid in USDG100% compute treasury
hour not started100% back to the payer
reading the Meter