-
Notifications
You must be signed in to change notification settings - Fork 70
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
Add Uniswap pool fee as functions arg #400
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
#369) * fix tick test issues, update slot0 tick, and add in uniswap SqrtPriceMathPartial calcs * function names fixed * fix lib linking + tests
* calc amount to mint * fix * fix * fix * fix * refactor
cccda53
to
a6c73c4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm generally, but think we should add in logic to replace the diamond storage for wPowerPerpPool and have it be a param, like the pool fee for at least non vault based actions (batchMintLp, rebalanceWithoutVault, etc). That way someone can use the ControllerHelper to LP in non 0.3% pools. Seems pretty straightforward and makes the ControllerHelper fully agnostic to pools (LPing and trading). Note that (if easier) it doesn't need to support arbitrary pools for vault based actions (flashloan mint and LP for example) as they will fail as Controller will not accept them as collateral.
Add Uniswap pool fee as functions arg
Description
This will allow choosing different uniswap pool from fe/user.
Fixes #294
Type of change
How Has This Been Tested
Please describe how to test to verify the changes. Provide instructions so we can reproduce.
Checklist