-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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: Roi crash when full range selected #6682
fix: Roi crash when full range selected #6682
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
4 Ignored Deployments
|
@memoyil is attempting to deploy a commit to the PancakeSwap Team on Vercel. A member of the Team first needs to authorize it. |
75c4cb4
to
605270d
Compare
605270d
to
bb7accf
Compare
bb7accf
to
9f57a7c
Compare
9f57a7c
to
d796fa7
Compare
d796fa7
to
cbb2be7
Compare
cbb2be7
to
1eca370
Compare
1eca370
to
49a84d8
Compare
49a84d8
to
caaa1be
Compare
caaa1be
to
4504843
Compare
4504843
to
a16170c
Compare
a16170c
to
b292ebf
Compare
b292ebf
to
ce57ced
Compare
ce57ced
to
9ea0ef7
Compare
9ea0ef7
to
11939b5
Compare
11939b5
to
cb60bdb
Compare
cb60bdb
to
05043ba
Compare
Close for now as it's stale. Feel free to reopen after updated |
🤖 Generated by Copilot at 75c4cb4
Summary
🆕🎨📈
This pull request adds a new feature to the Add Liquidity V3 form that allows the user to select the full price range for the liquidity pool and see the corresponding return on investment. It modifies the
RoiCalculator
,usePriceRange
, andButton
components, as well as theV3FormView
andAprCalculator
views.Walkthrough
fullRangeSelected
prop toAprCalculator
andRoiCalculator
components to indicate full price range selection for liquidity pool (link, link, link, link)fullRangeSelected
prop fromAprCalculator
toRoiCalculator
and fromRoiCalculator
tousePriceRange
hook (link, link, link)fullRangeSelected
prop to set initial state offullRange
variable inusePriceRange
hook and updatepriceRangeInfo
object inRoiCalculator
component (link, link)Button
components for quick and custom price range actions inV3FormView
component to improve alignment and spacing (link, link)