diff --git a/docs/cow-protocol/reference/core/auctions/rewards.md b/docs/cow-protocol/reference/core/auctions/rewards.md index be84332e7..3519d73ef 100644 --- a/docs/cow-protocol/reference/core/auctions/rewards.md +++ b/docs/cow-protocol/reference/core/auctions/rewards.md @@ -107,47 +107,80 @@ $$ where the sum runs over all solvers. The core team has a mandate to adapt this metric when they see fit; every change will be announced in advance on the [CoW Protocol forum](https://forum.cow.fi). -**Current metric: bid quality and settlement success on fill-or-kill market orders.** -Since June 30, 2026, each solver's share of the consistency budget is proportional to a metric that combines the quality of the solver's bids with its settlement success rate, as announced in [this forum post](https://forum.cow.fi/t/consistency-metric-v2/3474). -It replaces an earlier metric that simply counted the executed orders a solver had bid on. -Executions of out-of-market limit orders do not earn consistency rewards, as announced in [this forum post](https://forum.cow.fi/t/consistency-metric-v2-1-in-market-orders-only/3577). -Executions of partially fillable orders do not earn consistency rewards either, as announced in [this forum post](https://forum.cow.fi/t/consistency-metric-v2-1-in-market-orders-only/3577/7). +**Current metric: local payments from the budget of each executed order.** +Since the accounting period starting on November 24, 2026, the consistency reward for bidding on an order is paid from the budget that this order itself contributed, as proposed in [this forum post](https://forum.cow.fi/t/proposal-for-consistency-rewards-v2-2/3809). +This replaces an earlier metric that gave every executed fill-or-kill market order the same weight, independent of the protocol fee the order paid. -The metric has two components: +The metric is computed in three steps. -**1. Bid quality.** A solver bids on an order if it submits a solution containing that order. For each executed fill-or-kill market order, the solvers that bid on the order in the auction in which it was executed share a total weight of one, in proportion to the surplus they proposed. The share of solver $$i$$ for order $$o$$ is +**1. Local budget per auction and solver.** +In each auction, solver $$i$$ has a local budget $$ -\textrm{orderShare}_i(o) = \frac{\textrm{surplus}_i(o)}{\sum_{j} \textrm{surplus}_j(o)}, +\textrm{localBudget}_i = \max(\beta \cdot \textrm{protocolFee}^{\textrm{in time}}_i - \max(\textrm{totalScore} - \textrm{referenceScore}_i, 0), 0), $$ -where $$\textrm{surplus}_i(o)$$ is the largest surplus that any of solver $$i$$'s solutions proposed for order $$o$$ in that auction (the difference between the proposed execution amounts and the order's limit amounts), and the sum runs over all solvers that bid on the order. If all bids on an order propose zero surplus, the share of every solver for that order is set to zero. We stress that only solutions that pass the fairness filtering are considered in the above computations. Since each executed order distributes a total weight of one, orders with few competitive bids yield a larger share for the solvers submitting them, an incentive for solvers to join such competitions with competitive bids. +where $$\textrm{protocolFee}^{\textrm{in time}}_i$$ is the protocol fee (excluding partner fees) earned from the solutions that solver $$i$$ settled onchain within the auction deadline. +The term that is subtracted is the performance reward solver $$i$$ would have received, before capping, had all of its winning solutions settled in time. -Only executions of **fill-or-kill market orders** distribute a weight. An order is a market order if its limit price is no better than the price implied by the quote that led to the creation of the order, net of all fees. This is the same classification used for [quote rewards](#price-estimation-competition-rewards-cip-88). +If all winning solutions of solver $$i$$ settle in time, the local budget is equal to solver $$i$$'s contribution to the consistency budget in that auction. +If some of them do not, the reward the solver lost and the penalty it paid are not part of the local budget. +A failed settlement therefore does not increase the budget of the solver's other orders in the same auction, on which the solver is itself a bidder. -**2. Settlement success rate.** The success rate of solver $$i$$ in an accounting period is +**2. Budget per order.** +The local budget is split among the orders that solver $$i$$ settled in time in that auction, in proportion to their protocol fees: $$ -\textrm{successRate}_i = \frac{\textrm{count}(\textrm{auction-order pairs won and settled in time by } i)}{\textrm{count}(\textrm{auction-order pairs won by } i)}. +\textrm{orderBudget}(o) = \textrm{localBudget}_i \cdot \frac{\textrm{protocolFee}(o)}{\sum_{o'} \textrm{protocolFee}(o')}, $$ -Both counts are at the level of auction-order pairs: solver $$i$$ wins an order in an auction if the order is part of one of solver $$i$$'s winning solutions in that auction. Each such pair counts once towards the denominator, and towards the numerator only if solver $$i$$ then settled the order onchain within that auction's deadline. In particular, winning the same order repeatedly without settling it lowers the success rate: a solver that wins an order in $$n$$ auctions but only settles it after the $$n$$-th win has a success rate of $$1/n$$ (all else being equal). A solver that does not win any order in the period has a success rate of zero. +where $$\textrm{protocolFee}(o)$$ is the protocol fee (excluding partner fees) earned from order $$o$$ and the sum runs over all orders settled in time by solver $$i$$ in that auction. +An order that does not pay a protocol fee has no budget. -The consistency metric of solver $$i$$ for an accounting period is the product +**3. Local payments per order.** +A solver bids on an order if it submits a solution containing that order. +The budget of an executed order is split among all solvers that bid on the order in the auction in which it was executed, including the winner, in proportion to their settlement success rate multiplied by the surplus they proposed. +The local payment to solver $$j$$ for order $$o$$ is $$ -\textrm{consistencyMetric}_i = \textrm{successRate}_i \cdot \sum_{o} \textrm{orderShare}_i(o), +\textrm{localPayment}_j(o) = \textrm{orderBudget}(o) \cdot \frac{\textrm{successRate}_j \cdot \textrm{surplus}_j(o)}{\sum_{k} \textrm{successRate}_k \cdot \textrm{surplus}_k(o)}, $$ -where the sum runs over all executions of fill-or-kill market orders in the period. The settlement success rate is computed over all orders the solver won, including out-of-market limit orders and partially fillable orders. +where $$\textrm{surplus}_j(o)$$ is the largest surplus that any of solver $$j$$'s solutions proposed for order $$o$$ in that auction (the difference between the proposed execution amounts and the order's limit amounts), and the sum runs over all solvers that bid on the order. +If the denominator is zero, no local payment is made for that order. +We stress that only solutions that pass the fairness filtering are considered in the above computations. -For example, suppose four solvers bid on a fill-or-kill market order with proposed surplus of 0.1, 0.08, 0.019, and 0.001 ETH. The total proposed surplus is 0.2 ETH, so the order shares are 0.5, 0.4, 0.095, and 0.005, respectively. If the solvers have success rates of 0.8, 0.9, 1.0, and 0.5 in the accounting period, this order contributes 0.4, 0.36, 0.095, and 0.0025, respectively, to their consistency metrics. +The success rate of solver $$j$$ in an accounting period is -:::note +$$ +\textrm{successRate}_j = \frac{\textrm{count}(\textrm{auction-order pairs won and settled in time by } j)}{\textrm{count}(\textrm{auction-order pairs won by } j)}. +$$ -The [forum post](https://forum.cow.fi/t/consistency-metric-v2/3474) defines bid quality in terms of surplus relative to the winning bid. Since the winning bid's surplus cancels out in the normalization, that definition is equivalent to the one given here. +Both counts are at the level of auction-order pairs: solver $$j$$ wins an order in an auction if the order is part of one of solver $$j$$'s winning solutions in that auction. +Each such pair counts once towards the denominator, and towards the numerator only if solver $$j$$ then settled the order onchain within that auction's deadline. +In particular, winning the same order repeatedly without settling it lowers the success rate: a solver that wins an order in $$n$$ auctions but only settles it after the $$n$$-th win has a success rate of $$1/n$$ (all else being equal). +A solver that does not win any order in the period has a success rate of zero. -::: +The consistency metric of solver $$i$$ for an accounting period is the sum of its local payments, + +$$ +\textrm{consistencyMetric}_i = \sum_{o} \textrm{localPayment}_i(o), +$$ + +where the sum runs over all executions of orders in the period. +All executed orders are in scope, including out-of-market limit orders and partially fillable orders. + +The local payments of all solvers add up to less than the consistency budget if settlements failed during the period. +The remainder comes from penalties, from performance rewards that were not paid because a solution did not settle in time, and from the upper cap of solutions settled after the deadline. +Since consistency rewards are proportional to local payments, this remainder is distributed in proportion to local payments as well. + +For example, suppose solver 1 wins an auction on Ethereum mainnet with a single order and settles it in time. +The order pays a protocol fee of 0.01 ETH, so the upper cap is 0.005 ETH. +The difference between the total score and the reference score is 0.002 ETH, which is paid as performance reward. +The local budget is the remaining 0.003 ETH, and it is the budget of that order. +Solvers 1 and 2 bid on the order with proposed surplus of 0.006 ETH and 0.004 ETH, and have success rates of 0.8 and 0.6 in the accounting period. +Their weights are 0.0048 and 0.0024, so they receive 2/3 and 1/3 of the order's budget: local payments of 0.002 ETH and 0.001 ETH, respectively. +Had the difference between the total score and the reference score been 0.005 ETH or more, the performance reward would have been at its cap and the order would have had no budget. ### Buffer accounting