Token Dai Stablecoin

Overview ERC20

Price
$0.00 @ 0.000000 GLMR
Fully Diluted Market Cap
Total Supply:
4,123,544.73268 DAI

Holders:
1,128 addresses

Transfers:
-

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

OVERVIEW

Bridged DAI Token of Nomad.

Market

Volume (24H):$200,444,318.00
Market Capitalization:$5,209,851,807.00
Circulating Supply:5,210,600,549.00 DAI
Market Data Source: Coinmarketcap


Update? Click here to update the token ICO / general information
# Exchange Pair Price  24H Volume % Volume
1
Uniswap (v3)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48$1.004
0.0000591 Btc
$32,152,454.00
32,033,515.978 0X6B175474E89094C44DA98B954EEDEAC495271D0F
43.3075%
2
OKX
ETH-DAI$1.00
0.0000588 Btc
$22,891,265.00
18,176.895 ETH
0.0246%
3
BitMart
BTC-DAI$1.001
0.0000589 Btc
$14,350,145.00
843.627 BTC
0.0011%
4
Uniswap (v3)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2$0.9977
0.0000587 Btc
$6,381,185.00
6,276,283.934 0X6B175474E89094C44DA98B954EEDEAC495271D0F
8.4852%
5
XT.COM
BTC-DAI$0.9998
0.0000588 Btc
$5,634,475.00
331.965 BTC
0.0004%
6
Sushiswap
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2$0.9993
0.0000588 Btc
$4,790,902.00
2,881,041.100 0X6B175474E89094C44DA98B954EEDEAC495271D0F
3.8950%
7
Kraken
DAI-EUR$0.9997
0.0000588 Btc
$4,226,728.00
4,227,992.321 DAI
5.7160%
8
Kraken
DAI-USD$0.9998
0.0000588 Btc
$3,669,577.00
3,670,274.709 DAI
4.9620%
9
Binance
BUSD-DAI$1.001
0.0000589 Btc
$2,816,753.00
2,813,976.008 BUSD
3.8043%
10
Uniswap (v3)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2$0.9977
0.0000587 Btc
$2,132,975.00
2,135,360.867 0X6B175474E89094C44DA98B954EEDEAC495271D0F
2.8869%
11
Coinbase Exchange
DAI-USD$0.9998
0.0000588 Btc
$2,083,778.00
2,084,194.356 DAI
2.8177%
12
BKEX
USDT-DAI$1.001
0.0000589 Btc
$1,686,746.00
1,684,714.277 USDT
2.2776%
13
Kraken
DAI-USDT$0.9998
0.0000588 Btc
$1,631,821.00
1,632,069.664 DAI
2.2065%
14
Binance
USDT-DAI$1.001
0.0000589 Btc
$1,624,435.00
1,622,347.332 USDT
2.1933%
15
LBank
DAI-USDT$0.9847
0.0000579 Btc
$1,596,064.00
1,620,853.970 DAI
2.1913%
16
WhiteBIT
DAI-USDT$0.9996
0.0000588 Btc
$1,354,784.00
1,355,300.770 DAI
1.8323%
17
OKX
BTC-DAI$1.00
0.0000588 Btc
$1,336,036.00
78.549 BTC
0.0001%
18
Binance
BTC-DAI$1.001
0.0000589 Btc
$1,267,441.00
74.549 BTC
0.0001%
19
Binance
ETH-DAI$1.001
0.0000588 Btc
$1,109,157.00
882.535 ETH
0.0012%
20
BitMart
ETH-DAI$1.001
0.0000589 Btc
$1,071,535.00
852.604 ETH
0.0012%
21
XT.COM
ETH-DAI$0.9998
0.0000588 Btc
$935,690.00
742.893 ETH
0.0010%
22
BitMart
DAI-USDT$0.9998
0.0000588 Btc
$853,721.00
853,919.220 DAI
1.1545%
23
Quickswap
0XE5417AF564E4BFDA1C483642DB72007871397896-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.001
0.0000589 Btc
$651,841.00
162,587.886 0XE5417AF564E4BFDA1C483642DB72007871397896
0.2198%
24
Uniswap (Optimism)
0X7F5C764CBC14F9669B88837CA1490CCA17C31607-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$1.00
0.0000589 Btc
$551,579.00
551,391.137 0X7F5C764CBC14F9669B88837CA1490CCA17C31607
0.7454%
25
Platypus Finance
0XA7D7079B0FEAD91F3E65F86E8915CB59C1A4C664-0XD586E7F844CEA2F87F50152665BCBC2C279D8D70$1.001
0.0000589 Btc
$414,062.00
413,604.098 0XA7D7079B0FEAD91F3E65F86E8915CB59C1A4C664
0.5592%
26
Uniswap (Polygon)
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.001
0.0000589 Btc
$397,255.00
396,937.373 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.5366%
27
Beethoven X
0X04068DA6C83AFCFA0E13BA15A6696662335D5B75-DAI$1.001
0.0000589 Btc
$341,205.00
340,777.046 0X04068DA6C83AFCFA0E13BA15A6696662335D5B75
0.4607%
28
Beethoven X
0X8D11EC38A3EB5E956B052F67DA8BDC9BEF8ABF3E-USDC$1.001
0.0000589 Btc
$341,043.00
340,866.899 0X8D11EC38A3EB5E956B052F67DA8BDC9BEF8ABF3E
0.4608%
29
Azbit
DAI-USDT$1.00
0.0000588 Btc
$321,591.00
321,590.494 DAI
0.4348%
30
Quickswap (v3)
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.001
0.0000589 Btc
$309,491.00
309,165.555 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.4180%
31
BKEX
BTC-DAI$1.001
0.0000589 Btc
$306,649.00
18.009 BTC
0.0000%
32
Kyberswap Elastic (Arbitrum)
0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1-0XFF970A61A04B1CA14834A43F5DE4533EBDDB5CC8$1.001
0.0000589 Btc
$306,310.00
306,047.165 0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1
0.4138%
33
Kyberswap Elastic (Polygon)
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.001
0.0000589 Btc
$296,767.00
296,477.193 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.4008%
34
Gemini
DAI-USD$0.9999
0.0000588 Btc
$288,385.00
288,416.488 DAI
0.3899%
35
Uniswap (Optimism)
0X4200000000000000000000000000000000000006-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$0.9976
0.0000587 Btc
$281,031.00
223.925 0X4200000000000000000000000000000000000006
0.0003%
36
Kyberswap Elastic (Optimism)
0X7F5C764CBC14F9669B88837CA1490CCA17C31607-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$1.001
0.0000589 Btc
$254,759.00
254,506.429 0X7F5C764CBC14F9669B88837CA1490CCA17C31607
0.3441%
37
KuCoin
USDT-DAI$1.001
0.0000589 Btc
$242,804.00
242,250.585 USDT
0.3275%
38
Bybit
BIT-DAI$1.001
0.0000589 Btc
$224,093.00
737,465.960 BIT
0.9970%
39
DigiFinex
DAI-USDT$0.9992
0.0000588 Btc
$205,766.00
205,929.174 DAI
0.2784%
40
Bithumb
DAI-KRW$1.013
0.0000596 Btc
$198,697.00
196,117.366 DAI
0.2651%
41
Bitget
DAI-USDT$0.9996
0.0000588 Btc
$195,924.00
195,973.000 DAI
0.2649%
42
Kraken
BTC-DAI$1.001
0.0000589 Btc
$184,683.00
10.849 BTC
0.0000%
43
Uniswap (Polygon)
0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063-0XC2132D05D31C914A87C6611C10748AEB04B58E8F$1.001
0.0000589 Btc
$183,355.00
183,163.820 0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063
0.2476%
44
Quickswap (v3)
0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063-0XC2132D05D31C914A87C6611C10748AEB04B58E8F$1.001
0.0000589 Btc
$182,494.00
182,260.292 0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063
0.2464%
45
Quickswap (v3)
0XA3FA99A148FA48D14ED51D610C367C61876997F1-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.001
0.0000589 Btc
$182,023.00
183,289.969 0XA3FA99A148FA48D14ED51D610C367C61876997F1
0.2478%
46
Bitget
DAI-USDC$0.9997
0.0000588 Btc
$164,868.00
164,947.000 DAI
0.2230%
47
Balancer (Arbitrum)
0XF0B5CEEFC89684889E5F7E0A7775BD100FCD3709-DAI$1.001
0.0000589 Btc
$163,065.00
166,450.204 0XF0B5CEEFC89684889E5F7E0A7775BD100FCD3709
0.2250%
48
Bybit
DAI-USDT$0.9993
0.0000588 Btc
$157,792.00
157,901.760 DAI
0.2135%
49
Quickswap
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.001
0.0000589 Btc
$156,804.00
157,005.013 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.2123%
50
BKEX
ETH-DAI$1.001
0.0000589 Btc
$155,592.00
123.791 ETH
0.0002%
51
Uniswap (v3)
0X5F98805A4E8BE255A32880FDEC7F6728C6568BA0-0X6B175474E89094C44DA98B954EEDEAC495271D0F$0.9977
0.0000587 Btc
$143,901.00
140,270.493 0X5F98805A4E8BE255A32880FDEC7F6728C6568BA0
0.1896%
52
Platypus Finance
0XB97EF9EF8734C71904D8002F8B6BC66DD9C48A6E-0XD586E7F844CEA2F87F50152665BCBC2C279D8D70$1.001
0.0000589 Btc
$141,431.00
141,306.077 0XB97EF9EF8734C71904D8002F8B6BC66DD9C48A6E
0.1910%
53
Platypus Finance
0XD586E7F844CEA2F87F50152665BCBC2C279D8D70-0XB97EF9EF8734C71904D8002F8B6BC66DD9C48A6E$1.001
0.0000589 Btc
$141,426.00
141,314.536 0XD586E7F844CEA2F87F50152665BCBC2C279D8D70
0.1910%
54
Kyberswap Elastic (Polygon)
0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063-0XC2132D05D31C914A87C6611C10748AEB04B58E8F$1.001
0.0000589 Btc
$123,362.00
123,236.076 0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063
0.1666%
55
Velodrome Finance
0X7F5C764CBC14F9669B88837CA1490CCA17C31607-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$1.001
0.0000589 Btc
$117,205.00
117,074.173 0X7F5C764CBC14F9669B88837CA1490CCA17C31607
0.1583%
56
BitMart
DAI-USDC$1.001
0.0000589 Btc
$112,631.00
112,564.800 DAI
0.1522%
57
Uniswap (Optimism)
0X94B008AA00579C1307B0EF2C499AD98A8CE58E58-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$1.00
0.0000589 Btc
$110,983.00
110,935.369 0X94B008AA00579C1307B0EF2C499AD98A8CE58E58
0.1500%
58
ApeSwap (Polygon)
0X0D500B1D8E8EF31E21C99D1DB9A6444D3ADF1270-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.001
0.0000589 Btc
$106,398.00
116,782.366 0X0D500B1D8E8EF31E21C99D1DB9A6444D3ADF1270
0.1579%
59
Osmosis
IBC/0CD3A0285E1341859B5E86B6AB7682F023D03E97607CCC1DC95706411D866DF7-UOSMO$0.9968
0.0000587 Btc
$102,581.00
102,911.649 IBC/0CD3A0285E1341859B5E86B6AB7682F023D03E97607CCC1DC95706411D866DF7
0.1391%
60
Kyberswap Elastic (Arbitrum)
0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1-0XFD086BC7CD5C481DCC9C85EBE478A1C0B69FCBB9$1.001
0.0000589 Btc
$100,771.00
100,693.466 0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1
0.1361%
61
Platypus Finance
0X9702230A8EA53601F5CD2DC00FDBC13D4DF4A8C7-0XD586E7F844CEA2F87F50152665BCBC2C279D8D70$1.001
0.0000589 Btc
$97,769.00
97,686.952 0X9702230A8EA53601F5CD2DC00FDBC13D4DF4A8C7
0.1321%
62
PancakeSwap (v2)
0X1AF3F329E8BE154074D8769D1FFA4EE058B1DBC3-BUSD$0.9991
0.0000588 Btc
$84,929.00
84,774.228 0X1AF3F329E8BE154074D8769D1FFA4EE058B1DBC3
0.1146%
63
Uniswap (Arbitrum One)
0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1-0XFF970A61A04B1CA14834A43F5DE4533EBDDB5CC8$1.001
0.0000589 Btc
$82,923.00
82,862.615 0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1
0.1120%
64
Uniswap (v3)
0X03AB458634910AAD20EF5F1C8EE96F1D6AC54919-0X6B175474E89094C44DA98B954EEDEAC495271D0F$0.9977
0.0000587 Btc
$80,341.00
28,590.302 0X03AB458634910AAD20EF5F1C8EE96F1D6AC54919
0.0387%
65
Uniswap (Polygon)
0XA3FA99A148FA48D14ED51D610C367C61876997F1-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.001
0.0000589 Btc
$68,960.00
69,437.332 0XA3FA99A148FA48D14ED51D610C367C61876997F1
0.0939%
66
Tokpie
DAI-USDC$1.002
0.0000589 Btc
$64,324.00
64,225.400 DAI
0.0868%
67
ZigZag (zkSync v1)
ETH-DAI$1.001
0.0000589 Btc
$62,696.00
49.718 ETH
0.0001%
68
Crypto.com Exchange
DAI-USDT$0.9981
0.0000587 Btc
$61,838.00
61,954.200 DAI
0.0838%
69
Huobi
DAI-USDT$0.9996
0.0000588 Btc
$59,264.00
59,280.345 DAI
0.0801%
70
Uniswap (Arbitrum One)
0X82AF49447D8A07E3BD95BD0D56F35241523FBAB1-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$1.004
0.0000591 Btc
$56,031.00
44.438 0X82AF49447D8A07E3BD95BD0D56F35241523FBAB1
0.0001%
71
Sushiswap (Polygon POS)
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$0.9999
0.0000588 Btc
$54,892.00
54,146.815 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.0732%
72
Kyberswap Elastic (Optimism)
0X94B008AA00579C1307B0EF2C499AD98A8CE58E58-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$1.001
0.0000589 Btc
$46,740.00
46,694.031 0X94B008AA00579C1307B0EF2C499AD98A8CE58E58
0.0631%
73
Sushiswap (Polygon POS)
0X7CEB23FD6BC0ADD59E62AC25578270CFF1B9F619-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$0.9969
0.0000587 Btc
$46,665.00
36.783 0X7CEB23FD6BC0ADD59E62AC25578270CFF1B9F619
0.0000%
74
Uniswap (v3)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XDAC17F958D2EE523A2206206994597C13D831EC7$1.004
0.0000591 Btc
$43,572.00
43,433.824 0X6B175474E89094C44DA98B954EEDEAC495271D0F
0.0587%
75
Uniswap (v2)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XB53ECF1345CABEE6EA1A65100EBB153CEBCAC40F$1.00
0.0000588 Btc
$43,228.00
44,608.493 0X6B175474E89094C44DA98B954EEDEAC495271D0F
0.0603%
76
Platypus Finance
0XC7198437980C041C805A1EDCBA50C1CE5DB95118-0XD586E7F844CEA2F87F50152665BCBC2C279D8D70$1.001
0.0000589 Btc
$41,880.00
41,835.275 0XC7198437980C041C805A1EDCBA50C1CE5DB95118
0.0566%
77
Platypus Finance
0XD586E7F844CEA2F87F50152665BCBC2C279D8D70-0XC7198437980C041C805A1EDCBA50C1CE5DB95118$1.001
0.0000589 Btc
$41,874.00
41,840.079 0XD586E7F844CEA2F87F50152665BCBC2C279D8D70
0.0566%
78
EXMO
DAI-ETH$0.9993
0.0000588 Btc
$38,385.00
38,410.524 DAI
0.0519%
79
Quickswap (v3)
0X7CEB23FD6BC0ADD59E62AC25578270CFF1B9F619-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.00
0.0000589 Btc
$34,564.00
27.381 0X7CEB23FD6BC0ADD59E62AC25578270CFF1B9F619
0.0000%
80
Crypto.com Exchange
DAI-USD$0.9981
0.0000587 Btc
$31,650.00
31,710.400 DAI
0.0429%
81
CoinEx
DAI-USDT$1.002
0.0000590 Btc
$30,997.00
30,942.840 DAI
0.0418%
82
Bancor (V2)
DAI-BNT$0.9976
0.0000587 Btc
$27,092.00
27,157.788 DAI
0.0367%
83
DeFi Swap
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2$0.9985
0.0000588 Btc
$25,222.00
25,219.087 0X6B175474E89094C44DA98B954EEDEAC495271D0F
0.0341%
84
EXMO
DAI-BTC$1.001
0.0000589 Btc
$22,081.00
22,068.489 DAI
0.0298%
85
Gate.io
DAI-USDT$0.9968
0.0000587 Btc
$21,817.00
21,766.934 DAI
0.0294%
86
Coinbase Exchange
ETH-DAI$1.001
0.0000589 Btc
$21,088.00
16.898 ETH
0.0000%
87
Bybit
ETH-DAI$1.001
0.0000589 Btc
$19,387.31
15.448 ETH
0.0000%
88
ApeSwap (Polygon)
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.001
0.0000589 Btc
$15,756.13
15,757.961 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.0213%
89
Bitfinex
DAI-USD$1.001
0.0000589 Btc
$14,687.46
14,680.122 DAI
0.0198%
90
KuCoin
ETH-DAI$1.001
0.0000589 Btc
$13,024.44
10.355 ETH
0.0000%
91
Bitvavo
DAI-EUR$0.9976
0.0000587 Btc
$11,911.06
11,939.821 DAI
0.0161%
92
Bitso
DAI-MXN$0.989
0.0000582 Btc
$10,557.59
10,674.500 DAI
0.0144%
93
Bybit
BTC-DAI$1.001
0.0000589 Btc
$10,399.25
0.613 BTC
0.0000%
94
KuCoin
BTC-DAI$1.001
0.0000589 Btc
$9,982.08
0.586 BTC
0.0000%
95
Uniswap (v2)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0X9393FDC77090F31C7DB989390D43F454B1A6E7F3$0.9659
0.0000568 Btc
$6,124.23
6,184.979 0X6B175474E89094C44DA98B954EEDEAC495271D0F
0.0084%
96
ProBit Global
DAI-USDT$0.9996
0.0000588 Btc
$5,613.80
5,616.001 DAI
0.0076%
97
Concave
0X000000007A58F5F58E697E51AB0357BC9E260A04-0X6B175474E89094C44DA98B954EEDEAC495271D0F$1.001
0.0000589 Btc
$3,578.80
609.490 0X000000007A58F5F58E697E51AB0357BC9E260A04
0.0008%
98
SpiritSwap
0X04068DA6C83AFCFA0E13BA15A6696662335D5B75-0X8D11EC38A3EB5E956B052F67DA8BDC9BEF8ABF3E$1.002
0.0000589 Btc
$3,261.82
3,241.390 0X04068DA6C83AFCFA0E13BA15A6696662335D5B75
0.0044%
99
Uniswap (Optimism)
0X7F5C764CBC14F9669B88837CA1490CCA17C31607-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$1.00
0.0000589 Btc
$2,282.41
2,282.366 0X7F5C764CBC14F9669B88837CA1490CCA17C31607
0.0031%
100
Bitstamp
DAI-USD$0.999
0.0000588 Btc
$1,354.65
1,356.001 DAI
0.0018%

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