Skip to main content

Fee Formulas

Reiy collects fees on each settled intent, split between the solver and the protocol. Fees are charged in the settled buy token and deducted from the gross payout. All rates below are percentages of the relevant base; the contract evaluates them in integer token units (rounding down).

Vocabulary

TermMeaning
GrossThe buy-token payout before any fees.
NetWhat the user receives after fees: gross − total fee.
SurplusThe payout above the user’s protected minimum.
Volume feeA percentage of the gross payout. Applied first.
Surplus feeA percentage of the surplus, capped by a percentage of gross.
Solver fee shareThe percentage of the total fee paid to the solver; the rest goes to the protocol fee vault.

Fee computation

Fees are computed per intent, in order:

1. Volume fee

volume fee=gross×volume fee rate\begin{aligned} \text{volume fee} = \text{gross} \times \text{volume fee rate} \end{aligned} The rate comes from the pair’s fee tier (see below). Settlement is rejected if gross − volume fee falls below the protected minimum.

2. Surplus fee

surplus=(grossvolume fee)protected minsurplus fee=min(surplus×10%,    gross×0.1%)\begin{aligned} \text{surplus} &= (\text{gross} - \text{volume fee}) - \text{protected min} \\ \text{surplus fee} &= \min\big(\text{surplus} \times 10\%,\;\; \text{gross} \times 0.1\%\big) \end{aligned} The surplus fee is the smaller of 10% of surplus or 0.1% of gross (the cap).

3. Total fee cap

total fee=min(volume fee+surplus fee,    gross×0.15%)\begin{aligned} \text{total fee} = \min\big(\text{volume fee} + \text{surplus fee},\;\; \text{gross} \times 0.15\%\big) \end{aligned}

4. Net payout

net=grosstotal fee\begin{aligned} \text{net} = \text{gross} - \text{total fee} \end{aligned}

5. Solver split

solver fee=total fee×35%protocol fee=total feesolver fee\begin{aligned} \text{solver fee} &= \text{total fee} \times 35\% \\ \text{protocol fee} &= \text{total fee} - \text{solver fee} \end{aligned} The solver fee is paid out immediately. The protocol fee goes to the per-token FeeVault.

Default fee parameters

ParameterDefaultMaximum
Standard volume fee0.0075%1%
Correlated volume fee0.001%1%
Surplus fee10% of surplus100%
Surplus fee cap0.1% of gross2%
Max total fee0.15% of gross2%
Solver fee share35% of total fee100%

Fee tiers

Each pair is assigned one of four tiers:
TierVolume feeDescription
Standard0.0075%Default for most pairs.
Correlated0.001%Stablecoin / correlated assets.
CustomconfigurablePer-pair override.
Disabled0%No volume fee.

Scoring and Ranking

How solutions are validated and ranked.

Fees

User-facing fee overview.
Last modified on June 23, 2026