btcli --limit calculator
--limit (a.k.a. --tolerance) is not a price — it is the fraction the
resulting pool rate is allowed to fall below spot. This works out the smallest value
that lets your unstake fill, from live pool state.
Queried straight from your browser. Nothing is sent anywhere else, and no key ever touches this page.
–
| Block | – |
| Pool reserves | – |
| Spot rate | – |
| Proceeds for this sale | – |
| Average fill rate | – |
| Rate after the sale | – |
| Price impact | – |
| Swap fee (to block author) | – |
| Sellable at the padded limit | – |
--limit is a fraction in [0,1] (btcli default 0.005, i.e. 0.5%), and it is read
only in --safe mode. btcli turns it into the extrinsic argument as
limit_price = spot × (1 − limit) in rao and calls remove_stake_limit.
The chain compares that price against the pool rate after your swap, so the tolerance has to
cover the whole price impact of your own sale — not the gap to your average fill. For an equal-weight
pool holding A alpha, selling Δα moves the rate to 1/(1+Δα/A)² of spot, so the minimum is
1 − 1/(1 + Δα/A)². Figures above come from the runtime's own
sim_swap_alpha_for_tao, not from that approximation.
Spot moves between quoting and inclusion, which is what the safety pad is for. Without
--partial a tx that breaches the limit fails outright; with it, it fills as far as the limit
allows and stops. Re-run this right before you sign.