Closed CRBl69 closed 1 month ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
emojicoin-dot-fun | 🛑 Canceled (Inspect) | Oct 7, 2024 5:18am | ||
emojicoin-dot-fun-docs | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Oct 7, 2024 5:18am |
I updated it to use percentages.
Now, whenever a user chooses to use percentages, this is what it looks like:
When clicking on the percent sign, it switches to this:
Note that the newly displayed value upon mode change is calculated as prevPercentage * outputAmount
or prevMinOut / outputAmount * 100
.
Also, percentage mode is enabled by default
There is no Figma for this. Just freestyled.
Description
This PR adds an advanced mode for swaps and liquidity provisioning.
The advanced mode adds a new field titled "Minimum output amount".
The user can then set a minimum output amount.
Whenever an other input changes, the minimum output amount is automatically updated.
Testing
See vecrel.
Checklist