Token Dai Stablecoin on xDai

Overview ERC20

Price
$1.00 @ 1.001447 xDAI (+0.02%)
Fully Diluted Market Cap
Total Supply:
67,828.820016 DAI

Holders:
2,275 addresses

Transfers:
-

Loading
[ Download CSV Export  ] 
Loading
[ Download CSV Export  ] 
Loading

OVERVIEW

Dai is a stable, decentralized currency that does not discriminate. Any individual or business can realize the advantages of digital money.


Update? Click here to update the token ICO / general information
# Exchange Pair Price  24H Volume % Volume
1
BitMart
BTC-DAI$0.9998
0.0000420 Btc
$13,838,448.00
581.215 BTC
0.0007%
2
BitMart
ETH-DAI$0.9998
0.0000420 Btc
$8,618,394.00
5,242.329 ETH
0.0065%
3
Uniswap (v3)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2$0.9988
0.0000419 Btc
$8,169,715.00
7,976,089.782 0X6B175474E89094C44DA98B954EEDEAC495271D0F
9.9169%
4
Balancer (v2)
0XAE37D54AE477268B9997D4161B96B8200755935C-0X6B175474E89094C44DA98B954EEDEAC495271D0F$1.001
0.0000421 Btc
$6,919,448.00
6,897,622.506 0XAE37D54AE477268B9997D4161B96B8200755935C
8.5761%
5
Balancer (v2)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-USDC$1.001
0.0000420 Btc
$6,446,450.00
6,441,684.558 0X6B175474E89094C44DA98B954EEDEAC495271D0F
8.0092%
6
Balancer (v2)
0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48-DAI$1.001
0.0000420 Btc
$6,430,093.00
6,425,779.333 0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48
7.9894%
7
XT.COM
BTC-DAI$0.9997
0.0000420 Btc
$5,454,256.00
233.078 BTC
0.0003%
8
Uniswap (v3)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48$1.00
0.0000420 Btc
$4,067,286.00
4,066,694.837 0X6B175474E89094C44DA98B954EEDEAC495271D0F
5.0563%
9
OKX
BTC-DAI$0.9997
0.0000420 Btc
$2,971,264.00
126.963 BTC
0.0002%
10
Binance
BTC-DAI$0.9998
0.0000420 Btc
$2,839,682.00
119.336 BTC
0.0001%
11
Uniswap (v3)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2$0.9988
0.0000419 Btc
$2,828,712.00
2,772,629.139 0X6B175474E89094C44DA98B954EEDEAC495271D0F
3.4473%
12
BKEX
BTC-DAI$0.9997
0.0000420 Btc
$2,608,802.00
110.933 BTC
0.0001%
13
BKEX
USDT-DAI$0.9997
0.0000420 Btc
$2,521,149.00
2,521,420.442 USDT
3.1350%
14
Kraken
DAI-EUR$0.999
0.0000420 Btc
$2,333,499.00
2,335,807.924 DAI
2.9042%
15
Binance
ETH-DAI$0.9998
0.0000420 Btc
$2,319,538.00
1,410.413 ETH
0.0018%
16
Kraken
DAI-USD$0.9998
0.0000420 Btc
$2,283,556.00
2,284,012.771 DAI
2.8398%
17
Binance
USDT-DAI$0.9998
0.0000420 Btc
$2,190,908.00
2,191,127.117 USDT
2.7243%
18
BKEX
ETH-DAI$0.9997
0.0000420 Btc
$2,186,277.00
1,352.415 ETH
0.0017%
19
Binance
BUSD-DAI$0.9998
0.0000420 Btc
$1,937,455.00
1,937,843.063 BUSD
2.4094%
20
OKX
ETH-DAI$0.9997
0.0000420 Btc
$1,843,163.00
1,144.465 ETH
0.0014%
21
Balancer (v2)
0XDAC17F958D2EE523A2206206994597C13D831EC7-DAI$0.9997
0.0000420 Btc
$1,708,910.00
1,709,202.305 0XDAC17F958D2EE523A2206206994597C13D831EC7
2.1251%
22
WhiteBIT
DAI-USDT$0.9995
0.0000420 Btc
$1,262,897.00
1,263,587.930 DAI
1.5711%
23
Hotbit
DAI-USDT$0.9969
0.0000419 Btc
$1,241,266.00
1,245,075.600 DAI
1.5480%
24
Cryptology
BTC-DAI$1.002
0.0000421 Btc
$1,175,602.00
49.295 BTC
0.0001%
25
Bitrue
DAI-USDT$1.00
0.0000420 Btc
$937,835.00
937,541.500 DAI
1.1657%
26
Uniswap (v3)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XDAC17F958D2EE523A2206206994597C13D831EC7$1.005
0.0000422 Btc
$889,977.00
885,638.420 0X6B175474E89094C44DA98B954EEDEAC495271D0F
1.1011%
27
BitMart
DAI-USDT$1.00
0.0000420 Btc
$825,446.00
825,263.500 DAI
1.0261%
28
Uniswap (Optimism)
0X4200000000000000000000000000000000000006-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$0.998
0.0000419 Btc
$817,386.00
507.900 0X4200000000000000000000000000000000000006
0.0006%
29
XT.COM
ETH-DAI$0.9997
0.0000420 Btc
$787,380.00
488.338 ETH
0.0006%
30
Uniswap (Optimism)
0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1-0X4200000000000000000000000000000000000006$1.002
0.0000421 Btc
$710,720.00
696,221.007 0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1
0.8656%
31
Kraken
DAI-USDT$1.001
0.0000420 Btc
$683,826.00
683,399.237 DAI
0.8497%
32
Sushiswap
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2$1.00
0.0000420 Btc
$647,135.00
644,963.631 0X6B175474E89094C44DA98B954EEDEAC495271D0F
0.8019%
33
Uniswap (Optimism)
0X7F5C764CBC14F9669B88837CA1490CCA17C31607-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$1.002
0.0000421 Btc
$637,181.00
635,935.899 0X7F5C764CBC14F9669B88837CA1490CCA17C31607
0.7907%
34
Binance
BNB-DAI$0.9997
0.0000420 Btc
$629,665.00
1,981.921 BNB
0.0025%
35
Equalizer
0X21BE370D5312F44CB42CE377BC9B8A0CEF1A4C83-0X8D11EC38A3EB5E956B052F67DA8BDC9BEF8ABF3E$1.001
0.0000420 Btc
$617,138.00
1,309,402.601 0X21BE370D5312F44CB42CE377BC9B8A0CEF1A4C83
1.6280%
36
Uniswap (Polygon)
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.00
0.0000420 Btc
$605,535.00
605,366.572 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.7527%
37
Kyberswap Elastic (Arbitrum)
0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1-0XFF970A61A04B1CA14834A43F5DE4533EBDDB5CC8$1.001
0.0000420 Btc
$600,683.00
600,095.318 0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1
0.7461%
38
Uniswap (Arbitrum One)
0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1-0XFF970A61A04B1CA14834A43F5DE4533EBDDB5CC8$1.001
0.0000420 Btc
$422,555.00
421,895.788 0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1
0.5246%
39
Osmosis
IBC/0CD3A0285E1341859B5E86B6AB7682F023D03E97607CCC1DC95706411D866DF7-UOSMO$0.9991
0.0000420 Btc
$405,388.00
405,744.660 IBC/0CD3A0285E1341859B5E86B6AB7682F023D03E97607CCC1DC95706411D866DF7
0.5045%
40
DigiFinex
DAI-USDT$1.001
0.0000420 Btc
$388,064.00
387,771.056 DAI
0.4821%
41
KuCoin
USDT-DAI$0.9998
0.0000420 Btc
$340,848.00
340,847.636 USDT
0.4238%
42
Bitget
DAI-USDT$1.00
0.0000420 Btc
$337,122.00
337,071.000 DAI
0.4191%
43
Coinbase Exchange
DAI-USD$0.9997
0.0000420 Btc
$321,378.00
321,474.406 DAI
0.3997%
44
Bybit
BIT-DAI$0.9998
0.0000420 Btc
$302,990.00
523,765.930 BIT
0.6512%
45
Equalizer
0X04068DA6C83AFCFA0E13BA15A6696662335D5B75-0X8D11EC38A3EB5E956B052F67DA8BDC9BEF8ABF3E$1.002
0.0000421 Btc
$268,055.00
267,562.674 0X04068DA6C83AFCFA0E13BA15A6696662335D5B75
0.3327%
46
Platypus Finance
0XD586E7F844CEA2F87F50152665BCBC2C279D8D70-0XB97EF9EF8734C71904D8002F8B6BC66DD9C48A6E$1.00
0.0000420 Btc
$249,130.00
249,013.491 0XD586E7F844CEA2F87F50152665BCBC2C279D8D70
0.3096%
47
Platypus Finance
0XB97EF9EF8734C71904D8002F8B6BC66DD9C48A6E-0XD586E7F844CEA2F87F50152665BCBC2C279D8D70$1.00
0.0000420 Btc
$249,102.00
249,008.231 0XB97EF9EF8734C71904D8002F8B6BC66DD9C48A6E
0.3096%
48
Kyberswap Elastic (Polygon)
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.001
0.0000420 Btc
$226,421.00
226,263.965 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.2813%
49
Kyberswap Elastic (Optimism)
0X7F5C764CBC14F9669B88837CA1490CCA17C31607-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$1.001
0.0000420 Btc
$207,188.00
207,093.422 0X7F5C764CBC14F9669B88837CA1490CCA17C31607
0.2575%
50
Bybit
DAI-USDT$1.00
0.0000420 Btc
$199,980.00
199,941.530 DAI
0.2486%
51
Quickswap
0XE5417AF564E4BFDA1C483642DB72007871397896-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.00
0.0000420 Btc
$191,370.00
29,077.381 0XE5417AF564E4BFDA1C483642DB72007871397896
0.0362%
52
Quickswap (v3)
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.001
0.0000420 Btc
$184,551.00
184,452.516 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.2293%
53
Velodrome Finance
0X7F5C764CBC14F9669B88837CA1490CCA17C31607-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$1.001
0.0000420 Btc
$180,174.00
180,074.887 0X7F5C764CBC14F9669B88837CA1490CCA17C31607
0.2239%
54
Huobi
DAI-USDT$0.9995
0.0000420 Btc
$170,732.00
170,865.810 DAI
0.2124%
55
Bithumb
DAI-KRW$1.016
0.0000427 Btc
$158,981.00
156,443.062 DAI
0.1945%
56
Binance US
DAI-USD$1.00
0.0000420 Btc
$155,173.00
155,172.646 DAI
0.1929%
57
Binance US
ETH-DAI$0.9997
0.0000420 Btc
$153,794.00
93.592 ETH
0.0001%
58
Cryptology
XRP-DAI$1.00
0.0000420 Btc
$150,104.00
363,141.000 XRP
0.4515%
59
ApeSwap (Polygon)
0X0D500B1D8E8EF31E21C99D1DB9A6444D3ADF1270-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.001
0.0000421 Btc
$145,244.00
124,608.834 0X0D500B1D8E8EF31E21C99D1DB9A6444D3ADF1270
0.1549%
60
Bitget
DAI-USDC$1.00
0.0000420 Btc
$139,874.00
139,847.000 DAI
0.1739%
61
Tokpie
DAI-USDC$1.00
0.0000420 Btc
$126,670.00
126,659.080 DAI
0.1575%
62
Uniswap (v2)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XB53ECF1345CABEE6EA1A65100EBB153CEBCAC40F$0.9997
0.0000420 Btc
$123,184.00
119,282.003 0X6B175474E89094C44DA98B954EEDEAC495271D0F
0.1483%
63
BitMart
DAI-USDC$1.00
0.0000420 Btc
$114,763.00
114,742.800 DAI
0.1427%
64
Camelot
0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1-0XFF970A61A04B1CA14834A43F5DE4533EBDDB5CC8$0.9988
0.0000419 Btc
$113,136.00
113,255.594 0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1
0.1408%
65
Uniswap (v3)
0X419D0D8BDD9AF5E606AE2232ED285AFF190E711B-0X6B175474E89094C44DA98B954EEDEAC495271D0F$0.9988
0.0000419 Btc
$110,660.00
15,449,684.409 0X419D0D8BDD9AF5E606AE2232ED285AFF190E711B
19.2091%
66
Uniswap (Polygon)
0XA3FA99A148FA48D14ED51D610C367C61876997F1-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.00
0.0000420 Btc
$97,609.00
98,359.651 0XA3FA99A148FA48D14ED51D610C367C61876997F1
0.1223%
67
Balancer (v2)
0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2-DAI$1.001
0.0000420 Btc
$97,087.00
59.040 0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2
0.0001%
68
Balancer (v2)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-ETH$1.001
0.0000421 Btc
$94,742.00
94,627.631 0X6B175474E89094C44DA98B954EEDEAC495271D0F
0.1177%
69
Gemini
DAI-USD$0.9984
0.0000419 Btc
$89,585.00
89,726.293 DAI
0.1116%
70
Platypus Finance
0XA7D7079B0FEAD91F3E65F86E8915CB59C1A4C664-0XD586E7F844CEA2F87F50152665BCBC2C279D8D70$1.00
0.0000420 Btc
$87,476.00
87,417.946 0XA7D7079B0FEAD91F3E65F86E8915CB59C1A4C664
0.1087%
71
Quickswap (v3)
0XA3FA99A148FA48D14ED51D610C367C61876997F1-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.001
0.0000420 Btc
$74,731.00
75,294.905 0XA3FA99A148FA48D14ED51D610C367C61876997F1
0.0936%
72
EXMO
DAI-ETH$1.012
0.0000425 Btc
$66,345.00
65,543.894 DAI
0.0815%
73
Platypus Finance
0X9702230A8EA53601F5CD2DC00FDBC13D4DF4A8C7-0XD586E7F844CEA2F87F50152665BCBC2C279D8D70$1.00
0.0000420 Btc
$49,652.00
49,617.099 0X9702230A8EA53601F5CD2DC00FDBC13D4DF4A8C7
0.0617%
74
Gate.io
DAI-USDT$0.9965
0.0000419 Btc
$46,696.00
46,770.589 DAI
0.0582%
75
Balancer (Polygon)
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-DAI$1.001
0.0000420 Btc
$39,009.00
38,981.346 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.0485%
76
Balancer (Polygon)
0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063-USDC$1.00
0.0000420 Btc
$39,008.00
38,992.330 0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063
0.0485%
77
Quickswap
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.00
0.0000420 Btc
$37,828.00
37,914.930 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.0471%
78
PancakeSwap (v2)
0X1AF3F329E8BE154074D8769D1FFA4EE058B1DBC3-BUSD$0.9948
0.0000418 Btc
$33,805.00
33,890.020 0X1AF3F329E8BE154074D8769D1FFA4EE058B1DBC3
0.0421%
79
KuCoin
ETH-DAI$0.9998
0.0000420 Btc
$33,452.00
20.410 ETH
0.0000%
80
KuCoin
BTC-DAI$0.9998
0.0000420 Btc
$29,532.00
1.239 BTC
0.0000%
81
Sushiswap (Polygon POS)
0X7CEB23FD6BC0ADD59E62AC25578270CFF1B9F619-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$0.9985
0.0000419 Btc
$27,880.00
17.365 0X7CEB23FD6BC0ADD59E62AC25578270CFF1B9F619
0.0000%
82
CoinEx
DAI-USDT$0.9974
0.0000419 Btc
$26,958.00
27,027.862 DAI
0.0336%
83
Beethoven X
0X04068DA6C83AFCFA0E13BA15A6696662335D5B75-DAI$1.001
0.0000421 Btc
$22,824.00
22,799.157 0X04068DA6C83AFCFA0E13BA15A6696662335D5B75
0.0283%
84
Beethoven X
0X8D11EC38A3EB5E956B052F67DA8BDC9BEF8ABF3E-USDC$1.001
0.0000420 Btc
$22,814.00
22,799.113 0X8D11EC38A3EB5E956B052F67DA8BDC9BEF8ABF3E
0.0283%
85
Kraken
ETH-DAI$1.007
0.0000423 Btc
$22,572.00
13.632 ETH
0.0000%
86
ZigZag (zkSync v1)
ETH-DAI$0.9998
0.0000420 Btc
$19,003.40
11.801 ETH
0.0000%
87
Bitfinex
DAI-USD$0.9992
0.0000420 Btc
$18,412.44
18,427.918 DAI
0.0229%
88
Bitfinex
DAI-ETH$1.00
0.0000420 Btc
$15,865.99
15,859.236 DAI
0.0197%
89
Fameex
DAI-USDT$0.9991
0.0000420 Btc
$15,498.07
15,511.714 DAI
0.0193%
90
Bybit
ETH-DAI$0.9998
0.0000420 Btc
$12,666.51
7.721 ETH
0.0000%
91
ZigZag (zkSync v1)
DAI-USDC$0.9386
0.0000394 Btc
$12,384.44
12,374.100 DAI
0.0154%
92
Emirex
USDT-DAI$0.9998
0.0000420 Btc
$12,012.89
12,014.090 USDT
0.0149%
93
Balancer (Polygon)
0XA3FA99A148FA48D14ED51D610C367C61876997F1-DAI$0.9998
0.0000420 Btc
$11,906.32
12,007.625 0XA3FA99A148FA48D14ED51D610C367C61876997F1
0.0149%
94
Uniswap (v3)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2$0.9988
0.0000419 Btc
$11,304.11
11,121.073 0X6B175474E89094C44DA98B954EEDEAC495271D0F
0.0138%
95
Biswap
0X1AF3F329E8BE154074D8769D1FFA4EE058B1DBC3-0X55D398326F99059FF775485246999027B3197955$1.004
0.0000422 Btc
$7,379.40
7,335.079 0X1AF3F329E8BE154074D8769D1FFA4EE058B1DBC3
0.0091%
96
ZigZag (zkSync v1)
DAI-USDT$0.9914
0.0000416 Btc
$6,477.44
6,471.310 DAI
0.0080%
97
Bancor (V2)
DAI-BNT$1.005
0.0000422 Btc
$5,646.73
5,619.859 DAI
0.0070%
98
Balancer (Polygon)
0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063-USDT$1.001
0.0000420 Btc
$5,326.78
5,322.531 0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063
0.0066%
99
Balancer (Polygon)
0XC2132D05D31C914A87C6611C10748AEB04B58E8F-DAI$1.00
0.0000420 Btc
$5,324.02
5,321.978 0XC2132D05D31C914A87C6611C10748AEB04B58E8F
0.0066%
100
Bitstamp
DAI-USD$0.9945
0.0000418 Btc
$970.32
975.681 DAI
0.0012%

Similar Match Source Code
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0x4ecaba5870353805a9f068101a40e0f32ed605c6

Contract Name:
TokenProxy

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU GPLv3 license
/**
 *Submitted for verification at Etherscan.io on 2022-12-27
*/

pragma solidity 0.4.24;

/**
 * @title Proxy
 * @dev Gives the possibility to delegate any call to a foreign implementation.
 */
contract Proxy {
    /**
    * @dev Tells the address of the implementation where every call will be delegated.
    * @return address of the implementation to which it will be delegated
    */
    /* solcov ignore next */
    function implementation() public view returns (address);

    /**
    * @dev Fallback function allowing to perform a delegatecall to the given implementation.
    * This function will return whatever the implementation call returns
    */
    function() public payable {
        // solhint-disable-previous-line no-complex-fallback
        address _impl = implementation();
        require(_impl != address(0));
        assembly {
            /*
                0x40 is the "free memory slot", meaning a pointer to next slot of empty memory. mload(0x40)
                loads the data in the free memory slot, so `ptr` is a pointer to the next slot of empty
                memory. It's needed because we're going to write the return data of delegatecall to the
                free memory slot.
            */
            let ptr := mload(0x40)
            /*
                `calldatacopy` is copy calldatasize bytes from calldata
                First argument is the destination to which data is copied(ptr)
                Second argument specifies the start position of the copied data.
                    Since calldata is sort of its own unique location in memory,
                    0 doesn't refer to 0 in memory or 0 in storage - it just refers to the zeroth byte of calldata.
                    That's always going to be the zeroth byte of the function selector.
                Third argument, calldatasize, specifies how much data will be copied.
                    calldata is naturally calldatasize bytes long (same thing as msg.data.length)
            */
            calldatacopy(ptr, 0, calldatasize)
            /*
                delegatecall params explained:
                gas: the amount of gas to provide for the call. `gas` is an Opcode that gives
                    us the amount of gas still available to execution

                _impl: address of the contract to delegate to

                ptr: to pass copied data

                calldatasize: loads the size of `bytes memory data`, same as msg.data.length

                0, 0: These are for the `out` and `outsize` params. Because the output could be dynamic,
                        these are set to 0, 0 so the output data will not be written to memory. The output
                        data will be read using `returndatasize` and `returdatacopy` instead.

                result: This will be 0 if the call fails and 1 if it succeeds
            */
            let result := delegatecall(gas, _impl, ptr, calldatasize, 0, 0)
            /*

            */
            /*
                ptr current points to the value stored at 0x40,
                because we assigned it like ptr := mload(0x40).
                Because we use 0x40 as a free memory pointer,
                we want to make sure that the next time we want to allocate memory,
                we aren't overwriting anything important.
                So, by adding ptr and returndatasize,
                we get a memory location beyond the end of the data we will be copying to ptr.
                We place this in at 0x40, and any reads from 0x40 will now read from free memory
            */
            mstore(0x40, add(ptr, returndatasize))
            /*
                `returndatacopy` is an Opcode that copies the last return data to a slot. `ptr` is the
                    slot it will copy to, 0 means copy from the beginning of the return data, and size is
                    the amount of data to copy.
                `returndatasize` is an Opcode that gives us the size of the last return data. In this case, that is the size of the data returned from delegatecall
            */
            returndatacopy(ptr, 0, returndatasize)

            /*
                if `result` is 0, revert.
                if `result` is 1, return `size` amount of data from `ptr`. This is the data that was
                copied to `ptr` from the delegatecall return data
            */
            switch result
                case 0 {
                    revert(ptr, returndatasize)
                }
                default {
                    return(ptr, returndatasize)
                }
        }
    }
}

interface IPermittableTokenVersion {
    function version() external pure returns (string);
}

/**
* @title TokenProxy
* @dev Helps to reduces the size of the deployed bytecode for automatically created tokens, by using a proxy contract.
*/
contract TokenProxy is Proxy {
    // storage layout is copied from PermittableToken.sol
    string internal name;
    string internal symbol;
    uint8 internal decimals;
    mapping(address => uint256) internal balances;
    uint256 internal totalSupply;
    mapping(address => mapping(address => uint256)) internal allowed;
    address internal owner;
    bool internal mintingFinished;
    address internal bridgeContractAddr;
    // string public constant version = "1";
    bytes32 internal DOMAIN_SEPARATOR;
    // bytes32 public constant PERMIT_TYPEHASH = 0xea2aa0a1be11a07ed86d755c93467f4f82362b452371d1ba94d1715123511acb;
    mapping(address => uint256) internal nonces;
    mapping(address => mapping(address => uint256)) internal expirations;

    /**
    * @dev Creates a non-upgradeable token proxy for PermitableToken.sol, initializes its eternalStorage.
    * @param _tokenImage address of the token image used for mirrowing all functions.
    * @param _name token name.
    * @param _symbol token symbol.
    * @param _decimals token decimals.
    * @param _chainId chain id for current network.
    */
    constructor(address _tokenImage, string memory _name, string memory _symbol, uint8 _decimals, uint256 _chainId)
        public
    {
        string memory version = IPermittableTokenVersion(_tokenImage).version();

        assembly {
            // EIP 1967
            // bytes32(uint256(keccak256('eip1967.proxy.implementation')) - 1)
            sstore(0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc, _tokenImage)
        }
        name = _name;
        symbol = _symbol;
        decimals = _decimals;
        owner = msg.sender; // msg.sender == HomeMultiAMBErc20ToErc677 mediator
        bridgeContractAddr = msg.sender;
        DOMAIN_SEPARATOR = keccak256(
            abi.encode(
                keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
                keccak256(bytes(_name)),
                keccak256(bytes(version)),
                _chainId,
                address(this)
            )
        );
    }

    /**
    * @dev Retrieves the implementation contract address, mirrowed token image.
    * @return token image address.
    */
    function implementation() public view returns (address impl) {
        assembly {
            impl := sload(0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc)
        }
    }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"implementation","outputs":[{"name":"impl","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_tokenImage","type":"address"},{"name":"_name","type":"string"},{"name":"_symbol","type":"string"},{"name":"_decimals","type":"uint8"},{"name":"_chainId","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"}]

608060405234801561001057600080fd5b50604051610548380380610548833981016040818152825160208401518285015160608087015160808801517f54fd4d500000000000000000000000000000000000000000000000000000000088529551949793840196929093019492939091600160a060020a038816916354fd4d509160048082019260009290919082900301818387803b1580156100a257600080fd5b505af11580156100b6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405260208110156100df57600080fd5b8101908080516401000000008111156100f757600080fd5b8201602081018481111561010a57600080fd5b815164010000000081118282018710171561012457600080fd5b50507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8a90558851909450610163935060009250602089019150610380565b508351610177906001906020870190610380565b506002805460ff851660ff1990911617905560068054600160a060020a031990811633908117909255600780549091169091179055604080517f454950373132446f6d61696e28737472696e67206e616d652c737472696e672081527f76657273696f6e2c75696e7432353620636861696e49642c61646472657373206020808301919091527f766572696679696e67436f6e74726163742900000000000000000000000000008284015291519081900360520181208751909288929182918401908083835b6020831061025c5780518252601f19909201916020918201910161023d565b51815160209384036101000a6000190180199092169116179052604051919093018190038120875190955087945090928392508401908083835b602083106102b55780518252601f199092019160209182019101610296565b51815160209384036101000a6000190180199092169116179052604080519290940182900382208282019890985281840196909652606081019690965250608085018790523060a0808701919091528151808703909101815260c09095019081905284519093849350850191508083835b602083106103455780518252601f199092019160209182019101610326565b5181516020939093036101000a600019018019909116921691909117905260405192018290039091206008555061041b975050505050505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106103c157805160ff19168380011785556103ee565b828001600101855582156103ee579182015b828111156103ee5782518255916020019190600101906103d3565b506103fa9291506103fe565b5090565b61041891905b808211156103fa5760008155600101610404565b90565b61011e8061042a6000396000f300608060405260043610603e5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416635c60da1b81146092575b6000604660cd565b905073ffffffffffffffffffffffffffffffffffffffff81161515606957600080fd5b60405136600082376000803683855af43d82016040523d6000833e808015608e573d83f35b3d83fd5b348015609d57600080fd5b5060a460cd565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc54905600a165627a7a723058205d442d0b224de4b205ca61128d615099ba3021d9d5d21bc18d96bc5e201685800029000000000000000000000000f8d1677c8a0c961938bf2f9adc3f3cfda759a9d900000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000001254657468657220555344206f6e2078446169000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045553445400000000000000000000000000000000000000000000000000000000

Deployed ByteCode Sourcemap

4887:2504:0:-;;;;;;;;;;;;;;;;;;;;715:13;731:16;:14;:16::i;:::-;715:32;-1:-1:-1;766:19:0;;;;;758:28;;;;;;1224:4;1218:11;2005:12;2002:1;1997:3;1984:34;2936:1;2933;2919:12;2914:3;2907:5;2902:3;2889:49;3626:14;3621:3;3617:24;3611:4;3604:38;4136:14;4133:1;4128:3;4113:38;4418:6;4442:76;;;;4579:14;4574:3;4567:27;4442:76;4484:14;4479:3;4472:27;7193:195;;8:9:-1;5:2;;;30:1;27;20:12;5:2;7193:195:0;;;;;;;;;;;;;;;;;;;;;;;;7303:66;7297:73;;7274:107::o

Swarm Source

bzzr://5d442d0b224de4b205ca61128d615099ba3021d9d5d21bc18d96bc5e20168580
Loading