Hedging divergence losses automated strategy that provides liquidity in the Uni V3 ETH-USDC pool and hedges it with LP for the oSQTH-ETH pool.
.
├── contracts/ # contracts
|──────── core/ # the main contratcs
|──────── interfaces/ # project interfaces
|──────── libraries/ # external libraries
|──────── IWETH.sol # contract for hardhat testing
|──────── v3Helper.sol # uniswap emulator for hardhat testing
├── test/ # test cases
├── .env.example
├── .gitattributes
├── .gitignore
├── .npmignore
├── README.md # current file
├── hardhat.config.js
├── hardhat.helpers.js
├── package.json
├── package-lock.json
├── .prettierignore
├── .prettierrc
├── .solhint.json
├── .solhintignore
├── .eslintignore
├── .eslintrc.js
-
Installed NodeJS (tested with NodeJS v16+)
-
Installed node modules:
npm i
-
Configure
hardhat.config.jsif needed. -
Add your to the .env file. Use .env.example as reference.
If you'd like to run tests on the local environment, you might want to run the following command:
npm test
If you'd like to run pre production tests run the following command:
npm run test-prod
Hardhat framework is used for testing.
NOTE: if you want to use a different network, configure hardhat.config.js.