go-defi icon indicating copy to clipboard operation
go-defi copied to clipboard

Uniswap V3 Integration (WIP)

Open bonedaddy opened this issue 3 years ago • 2 comments

Changes

  • Breakup uniswap functionality into two packages a uniswap/v2 and univswap/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

bonedaddy avatar Mar 24 '21 06:03 bonedaddy

Uniswap Price Calculation

  • Take value of sqrtPrice in slot0 then divide by 2**96 then square it
  • onchain square then divide by (2**96)**2

bonedaddy avatar Mar 29 '21 06:03 bonedaddy

@bonedaddy could you please tell me how did you generate gobindings? especially bin contract files. hardhat does not generate them.

dserkin avatar Jul 02 '21 04:07 dserkin