Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
π [Frontend] Swap UI improvements π (#580)
* Improve loaders * Throw if transaction rejected * Show swap details in the confirmation screen, show failed popup if transaction rejected, ui improvements * Add slippage panel, improve swap UI, add assets * Add core functionality to handle min_receiving_amount * Fix swap test * Disallow negative slippage * Disable swaps if input or output is more than pool balances * Add backend changes * Fix clp and clp service * Split failed/rejected states & dialogs, handle min swap amount in UI, refactoring * Fix test * Add todo * Add TODO * Add TODO * Fix broken tests Co-authored-by: 59023g <m.edward.pierce@gmail.com> Co-authored-by: Rudi Yardley <contact@rudiyardley.com>
- Loading branch information
1 parent
5abb741
commit 146b572
Showing
25 changed files
with
425 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<template> | ||
<div class="tickwrap"> | ||
<svg xmlns="http://www.w3.org/2000/svg" width="66" height="66" viewBox="0 0 66 66"> | ||
<g id="Gruppe_1920" data-name="Gruppe 1920" transform="translate(-925 -447)"> | ||
<g id="Gruppe_1669" data-name="Gruppe 1669" transform="translate(-2.206 -21.301)"> | ||
<g id="Gruppe_1445" data-name="Gruppe 1445" transform="translate(948.206 489.301)"> | ||
<line id="Linie_13" data-name="Linie 13" x2="24.494" y2="24.494" fill="none" stroke="#b51a1a" stroke-linecap="round" stroke-width="2"/> | ||
<line id="Linie_14" data-name="Linie 14" x2="24.494" y2="24.494" transform="translate(24.494) rotate(90)" fill="none" stroke="#b51a1a" stroke-linecap="round" stroke-width="2"/> | ||
</g> | ||
</g> | ||
<g id="Ellipse_48" data-name="Ellipse 48" transform="translate(925 447)" fill="none" stroke="#b51a1a" stroke-width="2"> | ||
<circle cx="33" cy="33" r="33" stroke="none"/> | ||
<circle cx="33" cy="33" r="32" fill="none"/> | ||
</g> | ||
</g> | ||
</svg> | ||
</div> | ||
</template> | ||
<style scoped> | ||
.tickwrap { | ||
display: block; | ||
width: 66px; | ||
height: 66px; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
146b572
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.
Deploy preview for ui ready!
β Preview
https://ui-9qldr2rty.vercel.app
https://develop.sifchain.vercel.app
Built with commit 146b572.
This pull request is being automatically deployed with vercel-action