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
Using $a_0 = 1$ and $a_1 = u$ is enough. So the attacker only needs $u+1$ assets to perform a successful attack.
75
75
76
-
It is easy to generalize the above results to scenarios where the attacker is going after a smaller fraction of the user’s deposit. In order to target $\fracun$, the user needs to suffer rounding of a similar fraction, which means the user must receive at most $n$ shares. This results in:
76
+
It is easy to generalize the above results to scenarios where the attacker is going after a smaller fraction of the user’s deposit. In order to target $\frac{u}{n}$, the user needs to suffer rounding of a similar fraction, which means the user must receive at most $n$ shares. This results in:
In this scenario, the attack is $n$ times less powerful (in how much it is stealing) and costs $n$ times less to execute. In both cases, the amount of funds the attacker needs to commit is equivalent to its potential earnings.
@@ -97,40 +97,40 @@ Following the previous math definitions, we have:
97
97
* $a_1$ the attacker donation
98
98
* $u$ the user deposit
99
99
100
-
||
100
+
|| Assets | Shares | Rate |
101
101
| --- | --- | --- | --- |
102
-
|Assets|Shares|Rate|initial|
103
-
|$1$ | $10^\delta$ | $10^\delta$ | after attacker’s deposit |
One important thing to note is that the attacker only owns a fraction $\fraca_01 + a_0$ of the shares, so when doing the donation, he will only be able to recover that fraction $\fraca_1 \times a_01 + a_0$ of the donation. The remaining $\fraca_11+a_0$ are captured by the vault.
106
+
One important thing to note is that the attacker only owns a fraction $\frac{a_0}{1+a_0}$ of the shares, so when doing the donation, he will only be able to recover that fraction $\frac{a_1 \timesa_0}{1+a_0}$ of the donation. The remaining $\frac{a_1}{1+a_0}$ are captured by the vault.
107
107
108
108
```math
109
-
\mathitloss = \fraca_11+a_0
109
+
\mathit{loss} = \frac{a_1}{1+a_0}
110
110
```
111
111
112
112
When the user deposits $u$, he receives
113
113
114
114
```math
115
-
10^\delta \times u \times \frac1+a_01+a_0+a_1
115
+
10^\delta \times u \times \frac{1+a_0}{1+a_0+a_1}
116
116
```
117
117
118
118
For the attacker to dilute that deposit to 0 shares, causing the user to lose all its deposit, it must ensure that
119
119
120
120
```math
121
-
10^\delta \times u \times \frac1+a_01+a_0+a_1 < 1
121
+
10^\delta \times u \times \frac{1+a_0}{1+a_0+a_1} < 1
122
122
```
123
123
124
124
```math
125
-
\iff 10^\delta \times u < \frac1+a_0+a_11+a_0
125
+
\iff 10^\delta \times u < \frac{1+a_0+a_1}{1+a_0}
126
126
```
127
127
128
128
```math
129
-
\iff 10^\delta \times u < 1 + \fraca_11+a_0
129
+
\iff 10^\delta \times u < 1 + \frac{a_1}{1+a_0}
130
130
```
131
131
132
132
```math
133
-
\iff 10^\delta \times u \le \mathitloss
133
+
\iff 10^\delta \times u \le \mathit{loss}
134
134
```
135
135
136
136
* If the offset is 0, the attacker loss is at least equal to the user’s deposit.
This means a deposit of $u$ will give $\fracu \times a_0a_0 + a_1$ shares.
66
+
This means a deposit of $u$ will give $\frac{u \timesa_0}{a_0+a_1}$ shares.
67
67
68
68
For the attacker to dilute that deposit to 0 shares, causing the user to lose all its deposit, it must ensure that
69
69
@@ -73,7 +73,7 @@ For the attacker to dilute that deposit to 0 shares, causing the user to lose al
73
73
74
74
Using $a_0 = 1$ and $a_1 = u$ is enough. So the attacker only needs $u+1$ assets to perform a successful attack.
75
75
76
-
It is easy to generalize the above results to scenarios where the attacker is going after a smaller fraction of the user’s deposit. In order to target $\fracun$, the user needs to suffer rounding of a similar fraction, which means the user must receive at most $n$ shares. This results in:
76
+
It is easy to generalize the above results to scenarios where the attacker is going after a smaller fraction of the user’s deposit. In order to target $\frac{u}{n}$, the user needs to suffer rounding of a similar fraction, which means the user must receive at most $n$ shares. This results in:
One important thing to note is that the attacker only owns a fraction $\fraca_01 + a_0$ of the shares, so when doing the donation, he will only be able to recover that fraction $\fraca_1 \times a_01 + a_0$ of the donation. The remaining $\fraca_11+a_0$ are captured by the vault.
106
+
One important thing to note is that the attacker only owns a fraction $\frac{a_0}{1+a_0}$ of the shares, so when doing the donation, he will only be able to recover that fraction $\frac{a_1 \timesa_0}{1+a_0}$ of the donation. The remaining $\frac{a_1}{1+a_0}$ are captured by the vault.
0 commit comments