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: README.md
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -8,11 +8,11 @@ This project will perform an arbitrage of LUSD/ETH pair. This will be done by 2
8
8
9
9
The project has two main components , one is the node server and another is the smart contract.
10
10
11
-
The node server is responsible to keep a track of the prices of ETH at chainlink and at uniswap. When we notice a price difference where there is a possiblity of a profit from arbitrage it will trigger the smart contract to perform the arbitrage between uniswap and liquity smart contracts.
11
+
The node server is responsible for keeping a track of the prices of ETH at chainlink and at uniswap. When we notice a price difference where there is a possiblity of a profit from arbitrage it will trigger the smart contract to perform the arbitrage between uniswap and liquity smart contracts.
12
12
13
13
### How is the amount of eth to be used for the arbitrage calculated ?
14
14
15
-
We have three restrictions in place to determine the ETH that can be used for the arbitrage.
15
+
We have three restrictions in determining the ETH that can be used for the arbitrage.
16
16
1) The ETH present in the arbitragers wallet
17
17
2) The redeemable amount at liquity
18
18
3) The uniswap reserves in the LUSD/ETH pair
@@ -23,7 +23,7 @@ min( <ETH present in Wallet> , <12.5% of the reserve pool of uniswap pair> ) //
23
23
```
24
24
Once the minimum is determined we will then check at liquity if we can redeem LUSD the amount of ETH swapped. If not , we will use the redeemableLUSD at liquity to determine the ETH used for swap.
25
25
26
-
######Note: The smaller the percent of the uniswap pool we can use the better prices we can get, I have taken 12.5% of the pool for now because the poo reserves are small.
26
+
######Note: The smaller the percent of the uniswap pool we can use the better prices we can get, I have taken 12.5% of the pool for now because the pool reserves are small.
27
27
28
28
### How will it determine if there is an arbitrage opportunity ?
29
29
@@ -54,7 +54,7 @@ yarn start
54
54
```
55
55
Once the server is started you will need to ping `localhost:3000/subscribe` to start polling for prices. Without subscribing to events , the arbitrage bot will not work.
56
56
57
-
You can unsubscribe from the ethereum events by hitting localhost:3000/unsubscribe.
57
+
You can unsubscribe from the ethereum events by hitting `localhost:3000/unsubscribe`.
0 commit comments