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

fix: determine desired amounts before LPing #384

Merged
merged 6 commits into from
Apr 27, 2022

Conversation

haythemsellami
Copy link
Member

@haythemsellami haythemsellami commented Apr 26, 2022

fix: determine desired amounts before LPing

Description

  • Determine amount to desired to mint before LPing
  • Refactor MintIntoVault to DepositIntoVault

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Document update

How Has This Been Tested

Please describe how to test to verify the changes. Provide instructions so we can reproduce.

Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • Added video recordings if it is a UI change

@vercel
Copy link

vercel bot commented Apr 26, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
continuouscall ✅ Ready (Inspect) Visit Preview Apr 26, 2022 at 3:12PM (UTC)

@haythemsellami haythemsellami changed the title [WIP] fix: determine desired amounts before LPing fix: determine desired amounts before LPing Apr 26, 2022
@haythemsellami haythemsellami merged commit 19763e6 into fix/excess-amounts Apr 27, 2022
@haythemsellami haythemsellami deleted the fix/other-excess-cases branch April 27, 2022 07:37
haythemsellami pushed a commit that referenced this pull request Apr 28, 2022
* calc amount to mint

* fix

* fix

* fix

* fix

* refactor
haythemsellami pushed a commit that referenced this pull request Apr 29, 2022
* organize wrap/unwrapping ETH

* refactor

* refactooor

* refactor

* refactor

* calc exact amount to LP

* Fix: (WIPish) Improvements/fixes to "fix excess amounts when LPing" PR (#369)

* fix tick test issues, update slot0 tick, and add in uniswap SqrtPriceMathPartial calcs

* function names fixed

* fix lib linking + tests

* clean

* fix: determine desired amounts before LPing (#384)

* calc amount to mint

* fix

* fix

* fix

* fix

* refactor

* clean

* Fix: redeposit NFT into vault when increasing liquidity (#386)

* fix: redeposit NFT into vault when increasing liquidity

* approve all NFTs

* lint

* remove checkExcess

* fix #401

* improve #401 fix

* clean

Co-authored-by: Andrew <[email protected]>
haythemsellami pushed a commit that referenced this pull request Apr 29, 2022
* calc amount to mint

* fix

* fix

* fix

* fix

* refactor
haythemsellami pushed a commit that referenced this pull request Apr 29, 2022
* calc amount to mint

* fix

* fix

* fix

* fix

* refactor
haythemsellami pushed a commit that referenced this pull request May 4, 2022
* organize wrap/unwrapping ETH

* refactor

* refactooor

* refactor

* refactor

* calc exact amount to LP

* Fix: (WIPish) Improvements/fixes to "fix excess amounts when LPing" PR (#369)

* fix tick test issues, update slot0 tick, and add in uniswap SqrtPriceMathPartial calcs

* function names fixed

* fix lib linking + tests

* fix: determine desired amounts before LPing (#384)

* calc amount to mint

* fix

* fix

* fix

* fix

* refactor

* add poolFee as functions arg

* fix tests

* fix compiling

* clean

* change compared value

* update circleci

* change compared value

* chang ewPowerPool to be dynamic

* set pool address as arg

* update tests

Co-authored-by: Andrew <[email protected]>
haythemsellami pushed a commit that referenced this pull request May 5, 2022
* organize wrap/unwrapping ETH

* refactor

* refactooor

* refactor

* refactor

* calc exact amount to LP

* Fix: (WIPish) Improvements/fixes to "fix excess amounts when LPing" PR (#369)

* fix tick test issues, update slot0 tick, and add in uniswap SqrtPriceMathPartial calcs

* function names fixed

* fix lib linking + tests

* fix: determine desired amounts before LPing (#384)

* calc amount to mint

* fix

* fix

* fix

* fix

* refactor

* fix #401

* clean

* add burnExactRemoved

* lint

* fix compiling

* lint

* fix

* fix

* add burnExactRemoved for rebalance vault

* withdraw

* lint

Co-authored-by: Andrew <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant