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

Feat/earn landing #2557

Open
wants to merge 89 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
3f37031
feat: earning landing page
viet-nv Nov 5, 2024
ef1830b
feat: integrate api for zap earn landing
viet-nv Nov 7, 2024
5a58dd2
implement pool explorer
tienkane Nov 13, 2024
94f668e
integrate liquidity widget
tienkane Nov 13, 2024
19db809
pull zap landing page branch
tienkane Nov 13, 2024
0054a9e
add no data notify
tienkane Nov 13, 2024
3fb29d8
add missing 'chainId' from interfae
tienkane Nov 14, 2024
d5b9bcc
fake a pool to open liquidity widget
tienkane Nov 14, 2024
5eea48c
add navigate to earn landing page & open liquidity widget
tienkane Nov 14, 2024
86b8f82
add feature favorite
tienkane Nov 14, 2024
f1aeb15
Merge branch 'main' of github.com:KyberNetwork/kyberswap-interface in…
tienkane Nov 14, 2024
ad3bb37
integrate new zap in widget ui
tienkane Nov 14, 2024
0d32d3e
add wallet connect & change network callback
tienkane Nov 18, 2024
e3a8d78
add loading for favorite to prevent multi click
tienkane Nov 18, 2024
b56d900
add interval re-fetch for pool data
tienkane Nov 18, 2024
ee87d56
fix widget over height issue
tienkane Nov 18, 2024
9c9cc43
add pagination for pool data with tag
tienkane Nov 18, 2024
f3a4384
fix height issue
tienkane Nov 19, 2024
b7ae38e
add dynamic data
tienkane Nov 19, 2024
e011278
fix img radius
tienkane Nov 19, 2024
5dc130e
fix ui
tienkane Nov 19, 2024
9abf520
add notify if dex is not suportted on chain
tienkane Nov 20, 2024
4d0ac61
add copy pool address to pool explorer mobile
tienkane Nov 20, 2024
4cb0f0a
fix zap widget mobile full width
tienkane Nov 20, 2024
fab7266
remove change network callback
tienkane Nov 21, 2024
1f96fee
fix default chain filter in pool explorer
tienkane Nov 21, 2024
aa0e695
fix click action for card on landing page
tienkane Nov 21, 2024
cfcd520
turn pool address copied to lower case
tienkane Nov 21, 2024
69e4fd6
fix earn tab on header and limit the displayed pools in landing page
tienkane Nov 22, 2024
2ae590a
fix text color for error button
tienkane Nov 22, 2024
abab980
fix pool address displayed color
tienkane Nov 22, 2024
f0c717d
update env endpoint and liquidity widget version with Tailwind
tienkane Nov 25, 2024
b6e6bb7
update liquidity widget code from main
tienkane Nov 25, 2024
6207589
update wrong network message from liquidity widget
tienkane Nov 25, 2024
7003068
update zap-earn endpoint from liquidity widget
tienkane Nov 25, 2024
85d04fd
format displayed price
tienkane Nov 25, 2024
8b61061
show only chain that have pool data
tienkane Nov 26, 2024
026a093
make dropdown content highlight by increasing brightness & re-format …
tienkane Nov 26, 2024
3310c01
fix dropdown width
tienkane Nov 26, 2024
f90f24b
add tooltip for filter tab & add disclaimer
tienkane Nov 26, 2024
3993706
fix bug change network but protocol still keep
tienkane Nov 26, 2024
59f3733
fix wrong network message
tienkane Nov 26, 2024
f5b212a
add loading to landing page
tienkane Nov 26, 2024
02743f2
Merge branch 'main' of github.com:KyberNetwork/kyberswap-interface in…
tienkane Nov 26, 2024
343012a
add token pair to list all tokens if don't have
tienkane Nov 27, 2024
7c6504a
fix issue q from url query string disappear on reload
tienkane Nov 27, 2024
a42b422
integrate protocols sushiswapv3 & thrusterv3, fix issue widget doesn'…
tienkane Nov 27, 2024
7eee2ea
add delay for toggle favorite
tienkane Nov 28, 2024
cf4584c
Merge branch 'main' of github.com:KyberNetwork/kyberswap-interface in…
tienkane Nov 29, 2024
c8d515c
reset search after change filter
tienkane Nov 29, 2024
6c2c9d0
reset search after change filter
tienkane Nov 29, 2024
cdb9378
fix dropdown ui
tienkane Nov 29, 2024
b9131d1
add zap migration widget
tienkane Dec 3, 2024
eb0dc7a
Merge branch 'main' of github.com:KyberNetwork/kyberswap-interface in…
tienkane Dec 3, 2024
09af36b
update yarn.lock
tienkane Dec 3, 2024
7b223bd
fix migration widget ui
tienkane Dec 3, 2024
edebf8a
my liquidity page
tienkane Dec 5, 2024
723196f
switch to pre-release endpoint
tienkane Dec 5, 2024
2e1ee69
re-format data after switch to Krystal data
tienkane Dec 6, 2024
372a0dd
responsive earn landing page
tienkane Dec 6, 2024
64e8dd4
Merge branch 'main' of github.com:KyberNetwork/kyberswap-interface in…
tienkane Dec 9, 2024
597e0f1
fix endpoint of liquidity widget to pre release
tienkane Dec 9, 2024
b0b88a3
fix bug sorting in pool explorer page does not work
tienkane Dec 9, 2024
30b157b
fix bugs
tienkane Dec 9, 2024
5a9042b
integrate API for my positions page
tienkane Dec 10, 2024
54866e0
add tooltip for position screen and empty data UI
tienkane Dec 10, 2024
f1229cb
add tooltip for position screen and empty data UI
tienkane Dec 10, 2024
4b51e1f
add logic only remove search when change tag
tienkane Dec 10, 2024
8f44a10
fix loading for positions page
tienkane Dec 10, 2024
2b33940
fix tooltip for desktop only
tienkane Dec 10, 2024
8a7f263
fix description
tienkane Dec 10, 2024
1e8fd7b
fix bug can not open zap widget for pancake protocol
tienkane Dec 10, 2024
ed7d019
Update pool timeline and change Kyberswap to KyberSwap
tienkane Dec 11, 2024
f7b4c1d
update zap widget
tienkane Dec 11, 2024
91776a1
update user position button
tienkane Dec 11, 2024
318d5b4
fix bug sort pool when filtered by tag
tienkane Dec 11, 2024
42d1620
update description for transaction time limit in setting
tienkane Dec 11, 2024
69c92d7
fix font family for zap widget
tienkane Dec 11, 2024
bc10023
fix font family for zap widget
tienkane Dec 11, 2024
3b0b530
add some sort logic
tienkane Dec 11, 2024
eab9b95
reset sort if pool filter by tag
tienkane Dec 11, 2024
5a6b845
remove sort for pool with tags filter
tienkane Dec 11, 2024
7cfb140
filter earn by 2 chains ETH and Base, 3 dexes Uniswap Pancakeswap and…
tienkane Dec 12, 2024
706e69a
fix default chain logic
tienkane Dec 12, 2024
481455e
add default sort when select all pools
tienkane Dec 12, 2024
ce2250d
add action open increase zap widget for user position screen
tienkane Dec 12, 2024
b0c5077
add position detail screen
tienkane Dec 13, 2024
51c6f1b
improve code struture position detail
tienkane Dec 13, 2024
06e7685
remove arb from list supported chain
tienkane Dec 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ VITE_CAMPAIGN_URL=https://kyberswap-arbitrum-stip.kyberengineering.io/api
VITE_REFERRAL_URL=https://referral.kyberswap.com/api

VITE_TOKEN_API_URL=https://pre-token-api.kyberengineering.io/api
VITE_ZAP_EARN_URL=https://pre-zap-earn-service.kyberengineering.io/api
1 change: 1 addition & 0 deletions .env.dev
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ VITE_CAMPAIGN_URL=https://kyberswap-arbitrum-stip.kyberengineering.io/api
VITE_REFERRAL_URL=https://referral.kyberswap.com/api

VITE_TOKEN_API_URL=https://pre-token-api.kyberengineering.io/api
VITE_ZAP_EARN_URL=https://pre-zap-earn-service.kyberengineering.io/api
1 change: 1 addition & 0 deletions .env.production
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ VITE_CAMPAIGN_URL=https://kyberswap-arbitrum-stip.kyberengineering.io/api
VITE_REFERRAL_URL=https://referral.kyberswap.com/api

VITE_TOKEN_API_URL=https://token-api.kyberengineering.io/api
VITE_ZAP_EARN_URL=https://pre-zap-earn-service.kyberengineering.io/api
1 change: 1 addition & 0 deletions .env.stg
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ VITE_CAMPAIGN_URL=https://kyberswap-arbitrum-stip.kyberengineering.io/api
VITE_REFERRAL_URL=https://referral.kyberswap.com/api

VITE_TOKEN_API_URL=https://pre-token-api.kyberengineering.io/api
VITE_ZAP_EARN_URL=https://pre-zap-earn-service.kyberengineering.io/api
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"@kyberswap/ks-sdk-classic": "^1.0.3",
"@kyberswap/ks-sdk-core": "1.1.6",
"@kyberswap/ks-sdk-elastic": "^1.1.2",
"kyberswap-liquidity-widgets": "^1.1.46",
"@kyberswap/oauth2": "1.0.2",
"@lingui/macro": "^4.6.0",
"@lingui/react": "^4.6.0",
Expand Down
Binary file added src/assets/images/earn-bg.png
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/cursor.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/svg/fire.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/assets/svg/help-circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/assets/svg/ic_left_arrow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions src/assets/svg/ic_pool_high_apr.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/assets/svg/ic_pool_highlighted.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions src/assets/svg/ic_pool_low_volatility.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/assets/svg/ic_pool_solid_earning.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/assets/svg/ic_user_earn_position.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/assets/svg/liquidity-pools.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/assets/svg/liquidity-positions.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: 11 additions & 0 deletions src/assets/svg/low-volatility.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions src/assets/svg/play-icon.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/solid-earning.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading