go-defi
go-defi copied to clipboard
Uniswap V3 Integration (WIP)
Changes
- Breakup uniswap functionality into two packages a
uniswap/v2
andunivswap/v3
package. - Enable deploying complete uniswap v3 to simulated backend for testing
TODO
More robust copying of uniswap core abis and bins
Right now to get it done quickly im copying the bytecode manually but it would be better to do it more automatically
https://github.com/wighawag/hardhat-deploy#access-to-artifacts-non-deployed-contract-code-and-abi
Delete uniswap v3 submodules
Remove uniswap v3 submodules
Uniswap Price Calculation
- Take value of
sqrtPrice
in slot0 then divide by2**96
then square it - onchain square then divide by
(2**96)**2
@bonedaddy could you please tell me how did you generate gobindings? especially bin contract files. hardhat does not generate them.