Skip to content

Commit 5252157

Browse files
Merge pull request #3669 from VenusProtocol/feat/copy-addresses-and-contract-links
feat: add copy addresses and contract links to market page
2 parents bb5df59 + 0c8359c commit 5252157

File tree

243 files changed

+4856
-801
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

243 files changed

+4856
-801
lines changed

.changeset/spotty-glasses-shop.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@venusprotocol/evm": minor
3+
---
4+
5+
add copy addresses and contract links to market page

apps/evm/src/__mocks__/models/tokens.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
import { NATIVE_TOKEN_ADDRESS } from 'constants/address';
2-
import bnbLogo from 'libs/tokens/img/bnb.svg';
3-
import busdLogo from 'libs/tokens/img/busd.svg';
4-
import ethLogo from 'libs/tokens/img/eth.svg';
5-
import lisUsdLogo from 'libs/tokens/img/lisUSD.png';
6-
import lunaLogo from 'libs/tokens/img/luna.svg';
7-
import usdcLogo from 'libs/tokens/img/usdc.svg';
8-
import usdtLogo from 'libs/tokens/img/usdt.svg';
9-
import ustLogo from 'libs/tokens/img/ust.svg';
10-
import vaiLogo from 'libs/tokens/img/vai.svg';
11-
import vrtLogo from 'libs/tokens/img/vrt.svg';
12-
import wbnbLogo from 'libs/tokens/img/wbnb.svg';
13-
import wethLogo from 'libs/tokens/img/weth.svg';
14-
import xvsLogo from 'libs/tokens/img/xvs.svg';
2+
import bnbLogo from 'libs/tokens/img/underlyingTokens/bnb.svg';
3+
import busdLogo from 'libs/tokens/img/underlyingTokens/busd.svg';
4+
import ethLogo from 'libs/tokens/img/underlyingTokens/eth.svg';
5+
import lisUsdLogo from 'libs/tokens/img/underlyingTokens/lisUSD.png';
6+
import lunaLogo from 'libs/tokens/img/underlyingTokens/luna.svg';
7+
import usdcLogo from 'libs/tokens/img/underlyingTokens/usdc.svg';
8+
import usdtLogo from 'libs/tokens/img/underlyingTokens/usdt.svg';
9+
import ustLogo from 'libs/tokens/img/underlyingTokens/ust.svg';
10+
import vaiLogo from 'libs/tokens/img/underlyingTokens/vai.svg';
11+
import vrtLogo from 'libs/tokens/img/underlyingTokens/vrt.svg';
12+
import wbnbLogo from 'libs/tokens/img/underlyingTokens/wbnb.svg';
13+
import wethLogo from 'libs/tokens/img/underlyingTokens/weth.svg';
14+
import xvsLogo from 'libs/tokens/img/underlyingTokens/xvs.svg';
1515
import type { Token } from 'types';
1616

1717
export const xvs: Token = {

apps/evm/src/clients/api/queries/getPendingRewards/__tests__/__snapshots__/index.spec.ts.snap

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ exports[`getPendingRewards > returns pool rewards of the user in the correct for
99
"rewardAmountMantissa": "1.9534041188941933361355e+22",
1010
"rewardToken": {
1111
"address": "0xB9e0E753630434d7863528cc73CB7AC638a7c8ff",
12-
"asset": "/src/libs/tokens/img/xvs.svg",
12+
"asset": "/src/libs/tokens/img/underlyingTokens/xvs.svg",
1313
"decimals": 18,
1414
"symbol": "XVS",
1515
},
@@ -27,7 +27,7 @@ exports[`getPendingRewards > returns pool rewards of the user in the correct for
2727
"rewardAmountMantissa": "110000",
2828
"rewardToken": {
2929
"address": "0xe73774DfCD551BF75650772dC2cC56a2B6323453",
30-
"asset": "/src/libs/tokens/img/lisUSD.png",
30+
"asset": "/src/libs/tokens/img/underlyingTokens/lisUSD.png",
3131
"decimals": 18,
3232
"symbol": "lisUSD",
3333
},
@@ -46,13 +46,13 @@ exports[`getPendingRewards > returns pool rewards of the user in the correct for
4646
"rewardAmountMantissa": "1000000000000000000",
4747
"rewardToken": {
4848
"address": "0xB9e0E753630434d7863528cc73CB7AC638a7c8ff",
49-
"asset": "/src/libs/tokens/img/xvs.svg",
49+
"asset": "/src/libs/tokens/img/underlyingTokens/xvs.svg",
5050
"decimals": 18,
5151
"symbol": "XVS",
5252
},
5353
"stakedToken": {
5454
"address": "0x5fFbE5302BadED40941A403228E6AD03f93752d9",
55-
"asset": "/src/libs/tokens/img/vai.svg",
55+
"asset": "/src/libs/tokens/img/underlyingTokens/vai.svg",
5656
"decimals": 18,
5757
"symbol": "VAI",
5858
},
@@ -65,13 +65,13 @@ exports[`getPendingRewards > returns pool rewards of the user in the correct for
6565
"rewardAmountMantissa": "645201192825000000",
6666
"rewardToken": {
6767
"address": "0xB9e0E753630434d7863528cc73CB7AC638a7c8ff",
68-
"asset": "/src/libs/tokens/img/xvs.svg",
68+
"asset": "/src/libs/tokens/img/underlyingTokens/xvs.svg",
6969
"decimals": 18,
7070
"symbol": "XVS",
7171
},
7272
"stakedToken": {
7373
"address": "0x5fFbE5302BadED40941A403228E6AD03f93752d9",
74-
"asset": "/src/libs/tokens/img/vai.svg",
74+
"asset": "/src/libs/tokens/img/underlyingTokens/vai.svg",
7575
"decimals": 18,
7676
"symbol": "VAI",
7777
},
@@ -90,7 +90,7 @@ exports[`getPendingRewards > returns pool rewards of the user, including Prime r
9090
"rewardAmountMantissa": "1.9534041188941933361355e+22",
9191
"rewardToken": {
9292
"address": "0xB9e0E753630434d7863528cc73CB7AC638a7c8ff",
93-
"asset": "/src/libs/tokens/img/xvs.svg",
93+
"asset": "/src/libs/tokens/img/underlyingTokens/xvs.svg",
9494
"decimals": 18,
9595
"symbol": "XVS",
9696
},
@@ -108,7 +108,7 @@ exports[`getPendingRewards > returns pool rewards of the user, including Prime r
108108
"rewardAmountMantissa": "110000",
109109
"rewardToken": {
110110
"address": "0xe73774DfCD551BF75650772dC2cC56a2B6323453",
111-
"asset": "/src/libs/tokens/img/lisUSD.png",
111+
"asset": "/src/libs/tokens/img/underlyingTokens/lisUSD.png",
112112
"decimals": 18,
113113
"symbol": "lisUSD",
114114
},
@@ -127,13 +127,13 @@ exports[`getPendingRewards > returns pool rewards of the user, including Prime r
127127
"rewardAmountMantissa": "1000000000000000000",
128128
"rewardToken": {
129129
"address": "0xB9e0E753630434d7863528cc73CB7AC638a7c8ff",
130-
"asset": "/src/libs/tokens/img/xvs.svg",
130+
"asset": "/src/libs/tokens/img/underlyingTokens/xvs.svg",
131131
"decimals": 18,
132132
"symbol": "XVS",
133133
},
134134
"stakedToken": {
135135
"address": "0x5fFbE5302BadED40941A403228E6AD03f93752d9",
136-
"asset": "/src/libs/tokens/img/vai.svg",
136+
"asset": "/src/libs/tokens/img/underlyingTokens/vai.svg",
137137
"decimals": 18,
138138
"symbol": "VAI",
139139
},
@@ -146,13 +146,13 @@ exports[`getPendingRewards > returns pool rewards of the user, including Prime r
146146
"rewardAmountMantissa": "645201192825000000",
147147
"rewardToken": {
148148
"address": "0xB9e0E753630434d7863528cc73CB7AC638a7c8ff",
149-
"asset": "/src/libs/tokens/img/xvs.svg",
149+
"asset": "/src/libs/tokens/img/underlyingTokens/xvs.svg",
150150
"decimals": 18,
151151
"symbol": "XVS",
152152
},
153153
"stakedToken": {
154154
"address": "0x5fFbE5302BadED40941A403228E6AD03f93752d9",
155-
"asset": "/src/libs/tokens/img/vai.svg",
155+
"asset": "/src/libs/tokens/img/underlyingTokens/vai.svg",
156156
"decimals": 18,
157157
"symbol": "VAI",
158158
},
@@ -166,7 +166,7 @@ exports[`getPendingRewards > returns pool rewards of the user, including Prime r
166166
"rewardAmountMantissa": "13463630382",
167167
"rewardToken": {
168168
"address": "0xe73774DfCD551BF75650772dC2cC56a2B6323453",
169-
"asset": "/src/libs/tokens/img/lisUSD.png",
169+
"asset": "/src/libs/tokens/img/underlyingTokens/lisUSD.png",
170170
"decimals": 18,
171171
"symbol": "lisUSD",
172172
},
@@ -176,7 +176,7 @@ exports[`getPendingRewards > returns pool rewards of the user, including Prime r
176176
"rewardAmountMantissa": "1.7258246849676377299738e+22",
177177
"rewardToken": {
178178
"address": "0xB9e0E753630434d7863528cc73CB7AC638a7c8ff",
179-
"asset": "/src/libs/tokens/img/xvs.svg",
179+
"asset": "/src/libs/tokens/img/underlyingTokens/xvs.svg",
180180
"decimals": 18,
181181
"symbol": "XVS",
182182
},

apps/evm/src/clients/api/queries/getTokenBalances/__snapshots__/index.spec.ts.snap

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ exports[`api/queries/getTokenBalances > returns token balances in the right form
77
"balanceMantissa": "10000",
88
"token": {
99
"address": "0x8301F2213c0eeD49a7E28Ae4c3e91722919B8B47",
10-
"asset": "/src/libs/tokens/img/busd.svg",
10+
"asset": "/src/libs/tokens/img/underlyingTokens/busd.svg",
1111
"decimals": 18,
1212
"symbol": "BUSD",
1313
},
@@ -16,7 +16,7 @@ exports[`api/queries/getTokenBalances > returns token balances in the right form
1616
"balanceMantissa": "10000",
1717
"token": {
1818
"address": "0xe73774DfCD551BF75650772dC2cC56a2B6323453",
19-
"asset": "/src/libs/tokens/img/lisUSD.png",
19+
"asset": "/src/libs/tokens/img/underlyingTokens/lisUSD.png",
2020
"decimals": 18,
2121
"symbol": "lisUSD",
2222
},
@@ -32,7 +32,7 @@ exports[`api/queries/getTokenBalances > returns token balances, including BNB, i
3232
"balanceMantissa": "10000",
3333
"token": {
3434
"address": "0x8301F2213c0eeD49a7E28Ae4c3e91722919B8B47",
35-
"asset": "/src/libs/tokens/img/busd.svg",
35+
"asset": "/src/libs/tokens/img/underlyingTokens/busd.svg",
3636
"decimals": 18,
3737
"symbol": "BUSD",
3838
},
@@ -41,7 +41,7 @@ exports[`api/queries/getTokenBalances > returns token balances, including BNB, i
4141
"balanceMantissa": "10000",
4242
"token": {
4343
"address": "0xe73774DfCD551BF75650772dC2cC56a2B6323453",
44-
"asset": "/src/libs/tokens/img/lisUSD.png",
44+
"asset": "/src/libs/tokens/img/underlyingTokens/lisUSD.png",
4545
"decimals": 18,
4646
"symbol": "lisUSD",
4747
},
@@ -50,7 +50,7 @@ exports[`api/queries/getTokenBalances > returns token balances, including BNB, i
5050
"balanceMantissa": "1000000000000000000",
5151
"token": {
5252
"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
53-
"asset": "/src/libs/tokens/img/bnb.svg",
53+
"asset": "/src/libs/tokens/img/underlyingTokens/bnb.svg",
5454
"decimals": 18,
5555
"isNative": true,
5656
"symbol": "BNB",

0 commit comments

Comments
 (0)