You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(docs): replace gas fee refund formulas with LaTeX (#564)
Replace image-based formulas for the Flat Tax Rule and Identity Constraint
with LaTeX equations in the gas fee refunds documentation. This change
improves accessibility and allows for easier maintenance of the mathematical
content.
- Remove image placeholders for formulas
- Add LaTeX equations for the Flat Tax Rule
- Add LaTeX equations and explanation for the Identity Constraint
Copy file name to clipboardExpand all lines: docs/flashbots-auction/advanced/gas-fee-refunds.md
+29-11Lines changed: 29 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -73,27 +73,45 @@ Bundles sent by the same signer will be treated as non-competitive.
73
73
74
74
### The Flat Tax Rule
75
75
76
-
<divclassName="med caption-img">
77
-
78
-

79
-
80
-
Definition of the flat tax rule
81
-
82
-
</div>
76
+
-**$B(T)$** is the most profitable block produced from bundles in $T$.
77
+
-**$v(T)$** is the value of $B(T)$.
78
+
-**$b_i(T)$** is the payment of all bundles sent by identity $i$ if block $B(T)$ is realized.
79
+
-**$\mu_i(T) = \min\{b_i(T), v(T) - v(T \setminus \{i\})\}$** is the marginal contribution of all bundles sent by identity $i$ if $B(T)$ is realized. We bound the marginal contribution so that the net payment can't be negative.
80
+
-**$c$** is the amount the builder pays to the proposer to win the block.
81
+
82
+
$$
83
+
\phi_i(T, c) = \frac{\mu_i(T)}{\sum_j \mu_j(T)} \min\{v(B(T)) - c, \sum_j \mu_j(T)\}
84
+
$$
85
+
86
+
So the net payment per identity (assuming it's included) is $p_i(T) = b_i(B(T)) - \phi_i(T, c)$.
83
87
84
88
Notice that if the block generates enough value after paying the proposer, everyone should be refunded their contribution, meaning everyone pays the minimum they need to pay to beat competition.
85
89
86
90
### Identity constraint
87
91
88
92
To avoid the rule being gamed by submitting bundles from multiple identities, we impose an additional constraint that no set of identities can receive in total more refunds than they contribute to the block.
to be the joint marginal contribution of the identities in $I$ to the block. Then we choose rebates that are minimally different from the flat-tax rule subject to the constraint that they don't rebate a set of bundles more in total than its joint marginal contribution. This means the vector of rebates $\psi(T, c)$ solves
0 commit comments