Token Dai Stablecoin

Overview ERC20

Price
$0.00 @ 0.000000 GLMR
Fully Diluted Market Cap
Total Supply:
1,026,103.980264 DAI

Holders:
1,162 addresses
Balance
0.008715555648949595 DAI

Value
$0.01 ( ~0.0216076058772688 GLMR) [0.0000%]
0xd64ba319a73bfde7293431d8882093050c12a522
Loading
[ Download CSV Export  ] 
Loading
[ Download CSV Export  ] 
Loading

OVERVIEW

Bridged DAI Token of Nomad.

Market

Volume (24H):$116,483,756.00
Market Capitalization:$5,112,470,108.00
Circulating Supply:5,109,859,624.00 DAI
Market Data Source: Coinmarketcap


Update? Click here to update the token ICO / general information
# Exchange Pair Price  24H Volume % Volume
1
BitMart
BTC-DAI$0.9995
0.0000436 Btc
$10,517,102.00
459.078 BTC
0.0010%
2
Uniswap (v3)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48$0.9992
0.0000436 Btc
$5,747,191.00
5,752,112.308 0X6B175474E89094C44DA98B954EEDEAC495271D0F
13.1141%
3
Uniswap (v3)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2$1.005
0.0000439 Btc
$5,518,056.00
5,542,577.933 0X6B175474E89094C44DA98B954EEDEAC495271D0F
12.6364%
4
XT.COM
BTC-DAI$0.9996
0.0000436 Btc
$4,469,138.00
193.528 BTC
0.0004%
5
Balancer (v2)
0XAE37D54AE477268B9997D4161B96B8200755935C-0X6B175474E89094C44DA98B954EEDEAC495271D0F$0.9995
0.0000436 Btc
$3,428,202.00
3,422,974.569 0XAE37D54AE477268B9997D4161B96B8200755935C
7.8039%
6
Kraken
DAI-EUR$0.9993
0.0000436 Btc
$2,996,132.00
2,998,157.859 DAI
6.8354%
7
Kraken
DAI-USD$0.9996
0.0000436 Btc
$2,961,243.00
2,962,546.587 DAI
6.7542%
8
BKEX
USDT-DAI$0.9996
0.0000436 Btc
$2,291,525.00
2,291,353.548 USDT
5.2240%
9
Binance
USDT-DAI$0.9996
0.0000437 Btc
$1,948,412.00
1,948,996.917 USDT
4.4435%
10
OKX
BTC-DAI$0.9995
0.0000436 Btc
$1,565,206.00
67.159 BTC
0.0002%
11
Uniswap (v3)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2$1.005
0.0000439 Btc
$1,505,567.00
1,517,178.982 0X6B175474E89094C44DA98B954EEDEAC495271D0F
3.4590%
12
Binance
ETH-DAI$0.9995
0.0000436 Btc
$1,384,666.00
851.774 ETH
0.0019%
13
WhiteBIT
DAI-USDT$0.9989
0.0000436 Btc
$1,311,468.00
1,312,881.190 DAI
2.9932%
14
BKEX
ETH-DAI$0.9996
0.0000436 Btc
$1,237,658.00
756.897 ETH
0.0017%
15
OKX
ETH-DAI$0.9995
0.0000436 Btc
$1,203,962.00
731.039 ETH
0.0017%
16
Binance
BTC-DAI$0.9995
0.0000436 Btc
$1,162,420.00
50.763 BTC
0.0001%
17
Uniswap (v3)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XDAC17F958D2EE523A2206206994597C13D831EC7$0.9992
0.0000436 Btc
$1,034,505.00
1,035,374.426 0X6B175474E89094C44DA98B954EEDEAC495271D0F
2.3605%
18
BitMart
ETH-DAI$0.9995
0.0000436 Btc
$981,232.00
602.924 ETH
0.0014%
19
BKEX
BTC-DAI$0.9996
0.0000436 Btc
$932,275.00
40.532 BTC
0.0001%
20
Kraken
DAI-USDT$0.999
0.0000436 Btc
$898,327.00
899,205.813 DAI
2.0501%
21
Cryptology
BTC-DAI$0.9984
0.0000436 Btc
$774,566.00
33.837 BTC
0.0001%
22
XT.COM
ETH-DAI$0.9995
0.0000437 Btc
$709,363.00
431.557 ETH
0.0010%
23
Bitrue
DAI-USDT$0.9995
0.0000436 Btc
$703,238.00
703,574.000 DAI
1.6041%
24
Uniswap (Optimism)
0X4200000000000000000000000000000000000006-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$1.003
0.0000438 Btc
$689,764.00
418.776 0X4200000000000000000000000000000000000006
0.0010%
25
Bitget
DAI-USDT$1.00
0.0000437 Btc
$682,449.00
682,375.000 DAI
1.5557%
26
Kyberswap Elastic (Arbitrum)
0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1-0XFF970A61A04B1CA14834A43F5DE4533EBDDB5CC8$0.9995
0.0000436 Btc
$673,856.00
674,224.383 0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1
1.5371%
27
BitMart
DAI-USDT$1.001
0.0000437 Btc
$671,117.00
670,720.780 DAI
1.5292%
28
Uniswap (Optimism)
0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1-0X4200000000000000000000000000000000000006$0.9984
0.0000436 Btc
$638,217.00
644,385.813 0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1
1.4691%
29
Equalizer
0X21BE370D5312F44CB42CE377BC9B8A0CEF1A4C83-0X8D11EC38A3EB5E956B052F67DA8BDC9BEF8ABF3E$1.00
0.0000437 Btc
$637,495.00
1,106,350.748 0X21BE370D5312F44CB42CE377BC9B8A0CEF1A4C83
2.5223%
30
Uniswap (Optimism)
0X7F5C764CBC14F9669B88837CA1490CCA17C31607-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$0.9989
0.0000436 Btc
$558,386.00
559,007.384 0X7F5C764CBC14F9669B88837CA1490CCA17C31607
1.2745%
31
Coinbase Exchange
DAI-USD$0.9995
0.0000437 Btc
$545,547.00
545,820.266 DAI
1.2444%
32
OKX
DAI-USDT$1.001
0.0000437 Btc
$507,098.00
507,068.739 DAI
1.1561%
33
DigiFinex
DAI-USDT$0.9971
0.0000436 Btc
$470,338.00
471,719.929 DAI
1.0755%
34
KuCoin
USDT-DAI$0.9996
0.0000436 Btc
$458,714.00
458,622.533 USDT
1.0456%
35
Kyberswap Elastic (Arbitrum)
0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1-0XFD086BC7CD5C481DCC9C85EBE478A1C0B69FCBB9$0.9994
0.0000436 Btc
$458,246.00
458,493.861 0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1
1.0453%
36
Uniswap (Arbitrum One)
0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1-0XFF970A61A04B1CA14834A43F5DE4533EBDDB5CC8$0.9996
0.0000436 Btc
$439,824.00
439,764.148 0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1
1.0026%
37
Bithumb
DAI-KRW$1.012
0.0000442 Btc
$337,973.00
333,935.016 DAI
0.7613%
38
Hotbit
DAI-USDT$0.9897
0.0000432 Btc
$329,032.00
332,451.990 DAI
0.7579%
39
Azbit
DAI-USDT$1.001
0.0000437 Btc
$322,391.00
322,219.689 DAI
0.7346%
40
Uniswap (v2)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XB53ECF1345CABEE6EA1A65100EBB153CEBCAC40F$0.9995
0.0000436 Btc
$285,653.00
301,792.002 0X6B175474E89094C44DA98B954EEDEAC495271D0F
0.6880%
41
Platypus Finance
0XD586E7F844CEA2F87F50152665BCBC2C279D8D70-0XB97EF9EF8734C71904D8002F8B6BC66DD9C48A6E$0.9989
0.0000436 Btc
$285,442.00
285,758.782 0XD586E7F844CEA2F87F50152665BCBC2C279D8D70
0.6515%
42
Platypus Finance
0XB97EF9EF8734C71904D8002F8B6BC66DD9C48A6E-0XD586E7F844CEA2F87F50152665BCBC2C279D8D70$0.9989
0.0000436 Btc
$285,441.00
285,799.842 0XB97EF9EF8734C71904D8002F8B6BC66DD9C48A6E
0.6516%
43
Bybit
BIT-DAI$0.9996
0.0000436 Btc
$271,573.00
476,383.000 BIT
1.0861%
44
Cryptology
XRP-DAI$0.9986
0.0000436 Btc
$270,866.00
682,723.343 XRP
1.5565%
45
Osmosis
IBC/0CD3A0285E1341859B5E86B6AB7682F023D03E97607CCC1DC95706411D866DF7-UOSMO$0.9961
0.0000435 Btc
$266,801.00
267,854.040 IBC/0CD3A0285E1341859B5E86B6AB7682F023D03E97607CCC1DC95706411D866DF7
0.6107%
46
Uniswap (Polygon)
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$0.9999
0.0000437 Btc
$235,873.00
235,880.779 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.5378%
47
Bitget
DAI-USDC$0.9991
0.0000436 Btc
$235,559.00
235,576.000 DAI
0.5371%
48
Quickswap
0XE5417AF564E4BFDA1C483642DB72007871397896-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.01
0.0000441 Btc
$203,877.00
28,879.387 0XE5417AF564E4BFDA1C483642DB72007871397896
0.0658%
49
Balancer (v2)
0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2-DAI$1.00
0.0000437 Btc
$201,809.00
123.693 0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2
0.0003%
50
Balancer (v2)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-ETH$0.9974
0.0000436 Btc
$195,486.00
195,993.794 0X6B175474E89094C44DA98B954EEDEAC495271D0F
0.4468%
51
Sushiswap
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2$0.9989
0.0000436 Btc
$178,069.00
179,420.491 0X6B175474E89094C44DA98B954EEDEAC495271D0F
0.4091%
52
Kyberswap Elastic (Optimism)
0X7F5C764CBC14F9669B88837CA1490CCA17C31607-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$1.00
0.0000437 Btc
$163,718.00
163,722.883 0X7F5C764CBC14F9669B88837CA1490CCA17C31607
0.3733%
53
Huobi
DAI-USDT$0.999
0.0000436 Btc
$150,979.00
151,167.018 DAI
0.3446%
54
Binance
BNB-DAI$0.9995
0.0000436 Btc
$146,396.00
450.260 BNB
0.0010%
55
Quickswap (v3)
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.00
0.0000437 Btc
$140,619.00
140,603.981 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.3206%
56
ApeSwap (Polygon)
0X0D500B1D8E8EF31E21C99D1DB9A6444D3ADF1270-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$0.996
0.0000435 Btc
$135,001.00
112,111.440 0X0D500B1D8E8EF31E21C99D1DB9A6444D3ADF1270
0.2556%
57
Tokpie
DAI-USDC$1.00
0.0000437 Btc
$129,907.00
129,910.820 DAI
0.2962%
58
Platypus Finance
0XA7D7079B0FEAD91F3E65F86E8915CB59C1A4C664-0XD586E7F844CEA2F87F50152665BCBC2C279D8D70$0.9989
0.0000436 Btc
$116,265.00
116,401.471 0XA7D7079B0FEAD91F3E65F86E8915CB59C1A4C664
0.2654%
59
Bybit
DAI-USDT$0.9991
0.0000436 Btc
$96,509.00
96,597.040 DAI
0.2202%
60
BitMart
DAI-USDC$1.00
0.0000437 Btc
$91,178.00
91,154.000 DAI
0.2078%
61
Velodrome Finance
0X7F5C764CBC14F9669B88837CA1490CCA17C31607-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$1.00
0.0000437 Btc
$65,196.00
65,177.186 0X7F5C764CBC14F9669B88837CA1490CCA17C31607
0.1486%
62
Kyberswap Elastic (Polygon)
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$0.9999
0.0000437 Btc
$64,807.00
64,807.809 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.1478%
63
EXMO
DAI-ETH$0.9858
0.0000430 Btc
$63,506.00
64,419.471 DAI
0.1469%
64
Balancer (v2)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-USDC$1.00
0.0000437 Btc
$61,640.00
61,632.954 0X6B175474E89094C44DA98B954EEDEAC495271D0F
0.1405%
65
Balancer (v2)
0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48-DAI$1.00
0.0000437 Btc
$61,638.00
61,635.153 0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48
0.1405%
66
Equalizer
0X04068DA6C83AFCFA0E13BA15A6696662335D5B75-0X8D11EC38A3EB5E956B052F67DA8BDC9BEF8ABF3E$1.00
0.0000437 Btc
$61,334.00
61,334.919 0X04068DA6C83AFCFA0E13BA15A6696662335D5B75
0.1398%
67
Bancor (V3)
DAI-BNT$0.9962
0.0000435 Btc
$54,407.00
54,436.844 DAI
0.1241%
68
Camelot
0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1-0XFF970A61A04B1CA14834A43F5DE4533EBDDB5CC8$1.002
0.0000437 Btc
$51,951.00
51,862.376 0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1
0.1182%
69
Beethoven X
0X04068DA6C83AFCFA0E13BA15A6696662335D5B75-DAI$0.9978
0.0000436 Btc
$39,841.00
39,904.513 0X04068DA6C83AFCFA0E13BA15A6696662335D5B75
0.0910%
70
Beethoven X
0X8D11EC38A3EB5E956B052F67DA8BDC9BEF8ABF3E-USDC$0.9981
0.0000436 Btc
$39,834.00
39,909.343 0X8D11EC38A3EB5E956B052F67DA8BDC9BEF8ABF3E
0.0910%
71
Quickswap
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.01
0.0000441 Btc
$38,455.00
38,139.215 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.0870%
72
Gate.io
DAI-USDT$0.9992
0.0000436 Btc
$37,625.00
37,593.516 DAI
0.0857%
73
Platypus Finance
0X9702230A8EA53601F5CD2DC00FDBC13D4DF4A8C7-0XD586E7F844CEA2F87F50152665BCBC2C279D8D70$0.9989
0.0000436 Btc
$36,387.00
36,424.173 0X9702230A8EA53601F5CD2DC00FDBC13D4DF4A8C7
0.0830%
74
Crypto.com Exchange
DAI-USD$0.9972
0.0000435 Btc
$35,165.00
35,262.800 DAI
0.0804%
75
Uniswap (Polygon)
0XA3FA99A148FA48D14ED51D610C367C61876997F1-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.00
0.0000437 Btc
$35,029.00
35,336.762 0XA3FA99A148FA48D14ED51D610C367C61876997F1
0.0806%
76
Bitfinex
DAI-USD$1.00
0.0000437 Btc
$34,477.00
34,477.418 DAI
0.0786%
77
Crypto.com Exchange
DAI-USDT$0.9973
0.0000435 Btc
$29,644.00
29,724.600 DAI
0.0678%
78
Bitvavo
DAI-EUR$0.9982
0.0000436 Btc
$27,531.00
27,579.403 DAI
0.0629%
79
ZigZag (zkSync v1)
ETH-DAI$0.9996
0.0000437 Btc
$25,925.00
15.695 ETH
0.0000%
80
Fameex
DAI-USDT$0.9999
0.0000437 Btc
$24,528.00
24,530.468 DAI
0.0559%
81
PancakeSwap (v2)
0X1AF3F329E8BE154074D8769D1FFA4EE058B1DBC3-BUSD$0.9951
0.0000435 Btc
$23,967.00
24,025.802 0X1AF3F329E8BE154074D8769D1FFA4EE058B1DBC3
0.0548%
82
Bitkub
DAI-THB$0.994
0.0000434 Btc
$22,312.00
22,447.328 DAI
0.0512%
83
Uniswap (v2)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XBE56AB825FD35678A32DC35BC4EB17E238E1404F$0.9995
0.0000436 Btc
$21,484.00
22,011.341 0X6B175474E89094C44DA98B954EEDEAC495271D0F
0.0502%
84
Sushiswap (Polygon POS)
0X7CEB23FD6BC0ADD59E62AC25578270CFF1B9F619-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.003
0.0000438 Btc
$21,310.00
12.937 0X7CEB23FD6BC0ADD59E62AC25578270CFF1B9F619
0.0000%
85
CoinEx
DAI-USDT$0.9983
0.0000436 Btc
$21,222.00
21,262.078 DAI
0.0485%
86
Quickswap (v3)
0XA3FA99A148FA48D14ED51D610C367C61876997F1-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.00
0.0000437 Btc
$19,119.47
19,290.617 0XA3FA99A148FA48D14ED51D610C367C61876997F1
0.0440%
87
Bitso
DAI-MXN$1.00
0.0000437 Btc
$18,244.43
18,243.327 DAI
0.0416%
88
ZigZag (zkSync v1)
DAI-USDC$0.8871
0.0000387 Btc
$17,582.81
17,614.100 DAI
0.0402%
89
Bancor (V2)
DAI-BNT$0.9865
0.0000431 Btc
$12,240.05
12,407.334 DAI
0.0283%
90
ApeSwap (Polygon)
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$0.996
0.0000435 Btc
$12,092.77
12,212.056 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.0278%
91
Balancer (Arbitrum)
0XF0B5CEEFC89684889E5F7E0A7775BD100FCD3709-DAI$0.9996
0.0000436 Btc
$8,372.36
8,518.619 0XF0B5CEEFC89684889E5F7E0A7775BD100FCD3709
0.0194%
92
Balancer (Arbitrum)
0XF0B5CEEFC89684889E5F7E0A7775BD100FCD3709-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$0.9996
0.0000436 Btc
$8,372.36
8,518.619 0XF0B5CEEFC89684889E5F7E0A7775BD100FCD3709
0.0194%
93
Balancer (Arbitrum)
0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1-0XF0B5CEEFC89684889E5F7E0A7775BD100FCD3709$0.9996
0.0000436 Btc
$8,358.78
8,362.128 0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1
0.0191%
94
ZigZag (zkSync v1)
DAI-USDT$0.9562
0.0000418 Btc
$7,711.81
7,720.100 DAI
0.0176%
95
Coinbase Exchange
ETH-DAI$0.9996
0.0000437 Btc
$6,413.14
3.953 ETH
0.0000%
96
Biswap
0X1AF3F329E8BE154074D8769D1FFA4EE058B1DBC3-0X55D398326F99059FF775485246999027B3197955$0.9975
0.0000436 Btc
$6,229.68
6,255.698 0X1AF3F329E8BE154074D8769D1FFA4EE058B1DBC3
0.0143%
97
Phemex
DAI-USDT$0.9988
0.0000436 Btc
$6,134.15
6,141.460 DAI
0.0140%
98
SwapFish
0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1-0XFF970A61A04B1CA14834A43F5DE4533EBDDB5CC8$1.00
0.0000437 Btc
$3,694.17
3,707.768 0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1
0.0085%
99
ArthSwap
0X6DE33698E9E9B787E09D3BD7771EF63557E148BB-0X6A2D262D56735DBA19DD70682B39F6BE9A931D98$1.002
0.0000437 Btc
$1,603.63
1,602.111 0X6DE33698E9E9B787E09D3BD7771EF63557E148BB
0.0037%
100
Bitstamp
DAI-USD$0.9852
0.0000429 Btc
$504.44
512.035 DAI
0.0012%

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

Contract Name:
UpgradeBeaconProxy

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 999999 runs

Other Settings:
default evmVersion
File 1 of 2 : UpgradeBeaconProxy.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.11;

// ============ External Imports ============
import {Address} from "@openzeppelin/contracts/utils/Address.sol";

/**
 * @title UpgradeBeaconProxy
 * @notice
 * Proxy contract which delegates all logic, including initialization,
 * to an implementation contract.
 * The implementation contract is stored within an Upgrade Beacon contract;
 * the implementation contract can be changed by performing an upgrade on the Upgrade Beacon contract.
 * The Upgrade Beacon contract for this Proxy is immutably specified at deployment.
 * @dev This implementation combines the gas savings of keeping the UpgradeBeacon address outside of contract storage
 * found in 0age's implementation:
 * https://github.com/dharma-eng/dharma-smart-wallet/blob/master/contracts/proxies/smart-wallet/UpgradeBeaconProxyV1.sol
 * With the added safety checks that the UpgradeBeacon and implementation are contracts at time of deployment
 * found in OpenZeppelin's implementation:
 * https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/proxy/beacon/BeaconProxy.sol
 */
contract UpgradeBeaconProxy {
    // ============ Immutables ============

    // Upgrade Beacon address is immutable (therefore not kept in contract storage)
    address private immutable upgradeBeacon;

    // ============ Constructor ============

    /**
     * @notice Validate that the Upgrade Beacon is a contract, then set its
     * address immutably within this contract.
     * Validate that the implementation is also a contract,
     * Then call the initialization function defined at the implementation.
     * The deployment will revert and pass along the
     * revert reason if the initialization function reverts.
     * @param _upgradeBeacon Address of the Upgrade Beacon to be stored immutably in the contract
     * @param _initializationCalldata Calldata supplied when calling the initialization function
     */
    constructor(address _upgradeBeacon, bytes memory _initializationCalldata)
        payable
    {
        // Validate the Upgrade Beacon is a contract
        require(Address.isContract(_upgradeBeacon), "beacon !contract");
        // set the Upgrade Beacon
        upgradeBeacon = _upgradeBeacon;
        // Validate the implementation is a contract
        address _implementation = _getImplementation(_upgradeBeacon);
        require(
            Address.isContract(_implementation),
            "beacon implementation !contract"
        );
        // Call the initialization function on the implementation
        if (_initializationCalldata.length > 0) {
            _initialize(_implementation, _initializationCalldata);
        }
    }

    // ============ External Functions ============

    /**
     * @notice Forwards all calls with data to _fallback()
     * No public functions are declared on the contract, so all calls hit fallback
     */
    fallback() external payable {
        _fallback();
    }

    /**
     * @notice Forwards all calls with no data to _fallback()
     */
    receive() external payable {
        _fallback();
    }

    // ============ Private Functions ============

    /**
     * @notice Call the initialization function on the implementation
     * Used at deployment to initialize the proxy
     * based on the logic for initialization defined at the implementation
     * @param _implementation - Contract to which the initalization is delegated
     * @param _initializationCalldata - Calldata supplied when calling the initialization function
     */
    function _initialize(
        address _implementation,
        bytes memory _initializationCalldata
    ) private {
        // Delegatecall into the implementation, supplying initialization calldata.
        (bool _ok, ) = _implementation.delegatecall(_initializationCalldata);
        // Revert and include revert data if delegatecall to implementation reverts.
        if (!_ok) {
            assembly {
                returndatacopy(0, 0, returndatasize())
                revert(0, returndatasize())
            }
        }
    }

    /**
     * @notice Delegates function calls to the implementation contract returned by the Upgrade Beacon
     */
    function _fallback() private {
        _delegate(_getImplementation());
    }

    /**
     * @notice Delegate function execution to the implementation contract
     * @dev This is a low level function that doesn't return to its internal
     * call site. It will return whatever is returned by the implementation to the
     * external caller, reverting and returning the revert data if implementation
     * reverts.
     * @param _implementation - Address to which the function execution is delegated
     */
    function _delegate(address _implementation) private {
        assembly {
            // Copy msg.data. We take full control of memory in this inline assembly
            // block because it will not return to Solidity code. We overwrite the
            // Solidity scratch pad at memory position 0.
            calldatacopy(0, 0, calldatasize())
            // Delegatecall to the implementation, supplying calldata and gas.
            // Out and outsize are set to zero - instead, use the return buffer.
            let result := delegatecall(
                gas(),
                _implementation,
                0,
                calldatasize(),
                0,
                0
            )
            // Copy the returned data from the return buffer.
            returndatacopy(0, 0, returndatasize())
            switch result
            // Delegatecall returns 0 on error.
            case 0 {
                revert(0, returndatasize())
            }
            default {
                return(0, returndatasize())
            }
        }
    }

    /**
     * @notice Call the Upgrade Beacon to get the current implementation contract address
     * @return _implementation Address of the current implementation.
     */
    function _getImplementation()
        private
        view
        returns (address _implementation)
    {
        _implementation = _getImplementation(upgradeBeacon);
    }

    /**
     * @notice Call the Upgrade Beacon to get the current implementation contract address
     * @dev _upgradeBeacon is passed as a parameter so that
     * we can also use this function in the constructor,
     * where we can't access immutable variables.
     * @param _upgradeBeacon Address of the UpgradeBeacon storing the current implementation
     * @return _implementation Address of the current implementation.
     */
    function _getImplementation(address _upgradeBeacon)
        private
        view
        returns (address _implementation)
    {
        // Get the current implementation address from the upgrade beacon.
        (bool _ok, bytes memory _returnData) = _upgradeBeacon.staticcall("");
        // Revert and pass along revert message if call to upgrade beacon reverts.
        require(_ok, string(_returnData));
        // Set the implementation to the address returned from the upgrade beacon.
        _implementation = abi.decode(_returnData, (address));
    }
}

File 2 of 2 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 999999
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_upgradeBeacon","type":"address"},{"internalType":"bytes","name":"_initializationCalldata","type":"bytes"}],"stateMutability":"payable","type":"constructor"},{"stateMutability":"payable","type":"fallback"},{"stateMutability":"payable","type":"receive"}]

60a060405260405161058b38038061058b8339818101604052604081101561002657600080fd5b81516020830180516040519294929383019291908464010000000082111561004d57600080fd5b90830190602082018581111561006257600080fd5b825164010000000081118282018810171561007c57600080fd5b82525081516020918201929091019080838360005b838110156100a9578181015183820152602001610091565b50505050905090810190601f1680156100d65780820380516001836020036101000a031916815260200191505b506040525050506100f0826101d060201b6100291760201c565b610134576040805162461bcd60e51b815260206004820152601060248201526f18995858dbdb880858dbdb9d1c9858dd60821b604482015290519081900360640190fd5b6001600160601b0319606083901b166080526000610151836101d6565b9050610166816101d060201b6100291760201c565b6101b7576040805162461bcd60e51b815260206004820152601f60248201527f626561636f6e20696d706c656d656e746174696f6e2021636f6e747261637400604482015290519081900360640190fd5b8151156101c8576101c881836102d6565b50505061038f565b3b151590565b604051600090819081906001600160a01b0385169082818181855afa9150503d8060008114610221576040519150601f19603f3d011682016040523d82523d6000602084013e610226565b606091505b50915091508181906102b65760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561027b578181015183820152602001610263565b50505050905090810190601f1680156102a85780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b508080602001905160208110156102cc57600080fd5b5051949350505050565b6000826001600160a01b0316826040518082805190602001908083835b602083106103125780518252601f1990920191602091820191016102f3565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610372576040519150601f19603f3d011682016040523d82523d6000602084013e610377565b606091505b505090508061038a573d6000803e3d6000fd5b505050565b60805160601c6101e06103ab60003980603652506101e06000f3fe60806040523661001357610011610017565b005b6100115b61002761002261002f565b61005f565b565b3b151590565b600061005a7f0000000000000000000000000000000000000000000000000000000000000000610083565b905090565b3660008037600080366000845af43d6000803e80801561007e573d6000f35b3d6000fd5b6040516000908190819073ffffffffffffffffffffffffffffffffffffffff85169082818181855afa9150503d80600081146100db576040519150601f19603f3d011682016040523d82523d6000602084013e6100e0565b606091505b509150915081819061018a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561014f578181015183820152602001610137565b50505050905090810190601f16801561017c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b508080602001905160208110156101a057600080fd5b505194935050505056fea26469706673582212207a913a499405f220fe73d6c33af6d31fa3d6dd38aef5fe5d043818455b8bd55c64736f6c63430007060033000000000000000000000000969d515486ba6133400ac9c73298586426a090f500000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000

Loading