A token balance in the Funding account is not part of a native asset’s backing, so depositing or withdrawing it is never charged.
Minimum share and rebalancing anchor
A representation’s minimum share comes from its min weight (minWeight, a per-(asset, chain) parameter) and the asset’s buffer multiple (bufferMultiple):
threshold is the balance at which the representation holds exactly its share. A representation with no min weight, or an asset with no buffer multiple, has no minimum share and is never charged.
When an approved outflow would leave a representation below its share, the protocol fixes a rebalancing anchor: the balance the representation is to be brought back to. The rebalancing anchor is set at the lower of the balance before the outflow and the threshold. While a rebalancing anchor is open it can only be lowered, to the current threshold. It closes once the representation’s balance, net of every approved outflow, is back at or above it.
The deficit is how far the balance is below the rebalancing anchor. With no rebalancing anchor there is no deficit.
Fees and rewards
- Both are amounts of the native asset, at a fixed 1/40 per token of deficit. They are not converted at the representation’s rate.
- Fees round up and rewards round down.
haircutis the reward haircut, the part of each reward the protocol keeps. It is set by governance, globally or per asset.- Fees are collected into the rebalancing fee account and rewards are paid from it. A reward is capped at that account’s balance. Excess borrow interest and funding go to the separately configured interest fee account.
Worked example
Two representations, A and B, each with a 40% minimum share. A holds 1,800 and B holds 2,400.Application and timing
- Settlements. The fee is reserved when the settlement is approved, held beside the amount leaving. The signed amount is the principal alone.
max_feein the request bounds the fee; a settlement whose fee would exceed it is refused before anything is locked. At execution the fee is priced again on the balances at that time and collected, capped at what was reserved, and the rest is returned. An incoming leg’s reward does not offset the outgoing leg’s fee for themax_feebound. - Transfers out to a token. The fee is deducted from the amount transferred.
- Transfers into a trading account. The reward is credited to the trading account with the transfer.
- An outflow that would open a deficit is refused when no rebalancing fee account is set, since nothing could fund the reward.