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
Copy file name to clipboardExpand all lines: bin/onlyswaps-solver/README.md
+36Lines changed: 36 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,3 +49,39 @@ It is also possible to configure the solver with an external omnievent endpoint
49
49
[omnievent]
50
50
endpoint = "https://omnievent:3284"
51
51
```
52
+
53
+
## Initial setup
54
+
The current version of the solver relies on [Uniswap's permit2 contract](https://docs.uniswap.org/contracts/permit2/overview) for EIP-712 (i.e., gasless) token approvals for any ERC20 tokens.
55
+
This requires a one-time setup which consists of giving an unlimited token approval to the permit2 contract for each configured tokens.
56
+
Given that the contracts have been audited (see [here](https://github.com/Uniswap/permit2/tree/main/audits)), and have undergone public scrutiny for several years, the risk of an unlimited approval to permit2 is very low.
57
+
58
+
The initial setup can be done with the following command:
0 commit comments