Skip to content

Conversation

@bonedaddy
Copy link
Owner

@bonedaddy bonedaddy commented Mar 24, 2021

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
Copy link
Owner Author

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

@dserkin
Copy link

dserkin commented Jul 2, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants