https://github.com/ocdbytes/impermanentloss-uniswapv3
Here we were given a task to exit a liquidity pool when impermanent loss is (>50%) by deploying a smart contract which will trigger the exitLiquidity function which we made and will transfer our funds back into the wallet.
https://github.com/ocdbytes/impermanentloss-uniswapv3
blockchain bot javascript solidity uniswap-v3
Last synced: 4 months ago
JSON representation
Here we were given a task to exit a liquidity pool when impermanent loss is (>50%) by deploying a smart contract which will trigger the exitLiquidity function which we made and will transfer our funds back into the wallet.
- Host: GitHub
- URL: https://github.com/ocdbytes/impermanentloss-uniswapv3
- Owner: ocdbytes
- License: mit
- Created: 2022-11-26T11:31:49.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-09T15:34:26.000Z (about 3 years ago)
- Last Synced: 2024-04-14T10:46:08.271Z (almost 2 years ago)
- Topics: blockchain, bot, javascript, solidity, uniswap-v3
- Language: JavaScript
- Homepage:
- Size: 987 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ImpermanentLoss-UniswapV3-Bot 🤖
Here we were given a task to exit a liquidity pool when impermanent loss is (>50%) by deploying a smart contract which will trigger the exitLiquidity function which we made and will transfer our funds back into the wallet.
(Original task given at : /ProblemStatement.md)
**Tech Used :**
- Javascript
- Ether.js
- Solidity
- Hardhat
- UniswapV3 subgraph
**To Deploy the contract :**
```
cd SmartContract
npm i
npx hardhat run scripts/deploy.js
```
**To run the application :**
```
We need to first edit the config file with all the params :
cd config
nano config.js
Install all the packages
cd ..
yarn add
node index.js
```
**Contract is getting compiled and deployed without any errors**

**What is impermanent loss ?**