Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uniswap V3 Integration (WIP) #6

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open

Uniswap V3 Integration (WIP) #6

wants to merge 16 commits into from

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.

None yet

2 participants