Skip to content

Commit

Permalink
feat: gas refund (#1916)
Browse files Browse the repository at this point in the history
* feat: KNC Utility static page

* [KGP-1151] Fix reset output when clear typed input (#1917)

* refactor: improve tooltips (#1919)

* simple fix for tooltip

* chore: add a test page for tooltip

* Revert "chore: add a test page for tooltip"

This reverts commit cfda606.

* refactor: prevent users from dismissing token warning modal without confirming (#1920)

* refactor: not allow users to dismiss token warning modal

* fix cannot import 2nd token after confirming the 1st one

* Use price service data to calculate user's liquidity balance in pools page (#1858)

* feat: support swap fee (#1896)

* add busd to stable tokens in Velas

* wip: implement swap fee

* check fee config local

* use correct links in tooltip

* get token score

* use BFF API for swap fee

* timeout to get token score

* show fee amount in case fee usd is not available

* use feeAmountUsd from routeSummary

* remove todo

* remove unused codes

* MixPanel events

* update fee bips

* stop get token score of native tokens

* hide swap fee labels in chains not taking fee

* conditional tooltip content

* use feeUsd from response

* add TOKEN_SCORE_TTL and move timeoutReject to utils

* handle feeUsd = '0'

* fix format of swap fee

* update tooltip of swap fee

* use staging config

* create a common function for feeInfo

* set bff api for production

* use production config

* update UI

* new layout

* revert

* api integrate

* fix build

* duplicate knc utility item

* zero tx

* space

* update text

* update minors

* hide on other chains

* re-order

* amount

* hide ended tag

* hide claim button on pending & claimed tab

* fix crash

* enable gorli

* disable button color

* enable gorli

* update logo

* update requirement changes

* refactor: move colors func

* fix build

* add timer pending tab

* trigger build

* fix logo color + font size

* update link

* case not connected

* not connected case

* rm todo

* fix review

* trans

* disable claiming

* make modal state local

* fix build

* fix design

* prevent select

* table color

* update new layout

* update tooltip

* fix build

* add gas refund

* eth only

* remove link

* swap threshold

* build

* fix color

* fix crash + open modal state

* prod env

* mobile tx modal

* disable pointer swap detail

* add X button

* fix build

* revert .env.adpr

---------

Co-authored-by: nhd98z <[email protected]>
Co-authored-by: Hung Doan <[email protected]>
Co-authored-by: Nguyen Van Viet <[email protected]>
  • Loading branch information
4 people authored Jul 18, 2023
1 parent b04263d commit 7090e4f
Show file tree
Hide file tree
Showing 36 changed files with 1,720 additions and 313 deletions.
Binary file added src/assets/images/gas-refund/knc-dropping.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/gas-refund/kncs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/gas-refund/ringwave.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/gas-refund/ringwave.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/assets/svg/crystals.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/assets/svg/knc_black.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/assets/svg/refund1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/assets/svg/refund2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/assets/svg/refund3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 7 additions & 4 deletions src/assets/wallets/browser-wallet-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 7 additions & 5 deletions src/assets/wallets/browser-wallet-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 7090e4f

Please sign in to comment.