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
Balance
2.706752627352097956 DAI

Value
$2.71 ( ~6.4264 GLMR) [0.0001%]
0xa8581e054e239fd7b2fa6db9298b941591f52dbe
Loading
[ Download CSV Export  ] 
Loading
[ Download CSV Export  ] 
Loading

OVERVIEW

Bridged DAI Token of Nomad.

Market

Volume (24H):$197,669,272.00
Market Capitalization:$5,178,912,826.00
Circulating Supply:5,183,479,546.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.002
0.0000591 Btc
$32,057,901.00
32,001,888.483 0X6B175474E89094C44DA98B954EEDEAC495271D0F
44.4304%
2
OKX
ETH-DAI$0.9997
0.0000589 Btc
$22,870,522.00
18,172.433 ETH
0.0252%
3
BitMart
BTC-DAI$0.9998
0.0000589 Btc
$13,982,642.00
824.362 BTC
0.0011%
4
Uniswap (v3)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2$1.001
0.0000590 Btc
$6,333,970.00
6,232,406.927 0X6B175474E89094C44DA98B954EEDEAC495271D0F
8.6529%
5
XT.COM
BTC-DAI$0.9997
0.0000589 Btc
$5,610,053.00
330.583 BTC
0.0005%
6
Sushiswap
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2$0.9995
0.0000589 Btc
$4,780,850.00
2,888,803.289 0X6B175474E89094C44DA98B954EEDEAC495271D0F
4.0107%
7
Kraken
DAI-EUR$0.9992
0.0000589 Btc
$4,263,425.00
4,267,036.486 DAI
5.9242%
8
Kraken
DAI-USD$0.9998
0.0000589 Btc
$3,619,780.00
3,620,576.167 DAI
5.0267%
9
Binance
BUSD-DAI$0.9997
0.0000589 Btc
$2,814,627.00
2,815,258.833 BUSD
3.9086%
10
Uniswap (v3)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2$1.001
0.0000590 Btc
$2,065,329.00
2,074,750.123 0X6B175474E89094C44DA98B954EEDEAC495271D0F
2.8805%
11
Coinbase Exchange
DAI-USD$0.9998
0.0000589 Btc
$2,058,639.00
2,059,050.536 DAI
2.8587%
12
Kraken
DAI-USDT$1.00
0.0000590 Btc
$1,719,071.00
1,718,970.234 DAI
2.3866%
13
BKEX
USDT-DAI$0.9997
0.0000589 Btc
$1,629,115.00
1,629,121.462 USDT
2.2618%
14
Binance
USDT-DAI$0.9998
0.0000589 Btc
$1,553,742.00
1,553,566.041 USDT
2.1569%
15
WhiteBIT
DAI-USDT$0.9997
0.0000589 Btc
$1,350,566.00
1,350,969.390 DAI
1.8756%
16
OKX
BTC-DAI$0.9997
0.0000589 Btc
$1,299,235.00
76.442 BTC
0.0001%
17
Binance
BTC-DAI$0.9997
0.0000589 Btc
$1,270,017.00
74.912 BTC
0.0001%
18
Binance
ETH-DAI$1.00
0.0000589 Btc
$1,057,484.00
844.006 ETH
0.0012%
19
BitMart
ETH-DAI$0.9998
0.0000589 Btc
$1,014,467.00
810.737 ETH
0.0011%
20
XT.COM
ETH-DAI$0.9997
0.0000589 Btc
$906,480.00
719.920 ETH
0.0010%
21
BitMart
DAI-USDT$0.9997
0.0000590 Btc
$821,302.00
821,527.720 DAI
1.1406%
22
Quickswap
0XE5417AF564E4BFDA1C483642DB72007871397896-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.003
0.0000591 Btc
$648,889.00
161,596.300 0XE5417AF564E4BFDA1C483642DB72007871397896
0.2244%
23
Uniswap (Optimism)
0X7F5C764CBC14F9669B88837CA1490CCA17C31607-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$0.9999
0.0000589 Btc
$545,735.00
545,730.166 0X7F5C764CBC14F9669B88837CA1490CCA17C31607
0.7577%
24
Platypus Finance
0XA7D7079B0FEAD91F3E65F86E8915CB59C1A4C664-0XD586E7F844CEA2F87F50152665BCBC2C279D8D70$0.9996
0.0000589 Btc
$412,219.00
412,268.137 0XA7D7079B0FEAD91F3E65F86E8915CB59C1A4C664
0.5724%
25
Uniswap (Polygon)
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$0.9996
0.0000589 Btc
$398,074.00
398,243.776 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.5529%
26
Quickswap (v3)
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$0.9998
0.0000590 Btc
$349,503.00
349,599.784 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.4854%
27
Azbit
DAI-USDT$0.9998
0.0000590 Btc
$332,983.00
333,057.329 DAI
0.4624%
28
Beethoven X
0X04068DA6C83AFCFA0E13BA15A6696662335D5B75-DAI$0.9997
0.0000589 Btc
$330,359.00
330,354.628 0X04068DA6C83AFCFA0E13BA15A6696662335D5B75
0.4587%
29
Beethoven X
0X8D11EC38A3EB5E956B052F67DA8BDC9BEF8ABF3E-USDC$0.9993
0.0000589 Btc
$330,214.00
330,442.204 0X8D11EC38A3EB5E956B052F67DA8BDC9BEF8ABF3E
0.4588%
30
BKEX
BTC-DAI$0.9997
0.0000589 Btc
$308,656.00
18.150 BTC
0.0000%
31
Gemini
DAI-USD$1.002
0.0000590 Btc
$303,525.00
303,033.710 DAI
0.4207%
32
Kyberswap Elastic (Polygon)
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$0.9998
0.0000590 Btc
$301,862.00
301,936.031 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.4192%
33
Uniswap (Optimism)
0X4200000000000000000000000000000000000006-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$0.9941
0.0000586 Btc
$275,722.00
220.522 0X4200000000000000000000000000000000000006
0.0003%
34
Kyberswap Elastic (Arbitrum)
0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1-0XFF970A61A04B1CA14834A43F5DE4533EBDDB5CC8$0.9997
0.0000590 Btc
$274,171.00
274,271.398 0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1
0.3808%
35
Kyberswap Elastic (Optimism)
0X7F5C764CBC14F9669B88837CA1490CCA17C31607-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$0.9995
0.0000589 Btc
$254,375.00
254,475.887 0X7F5C764CBC14F9669B88837CA1490CCA17C31607
0.3533%
36
KuCoin
USDT-DAI$0.9997
0.0000589 Btc
$242,644.00
242,477.502 USDT
0.3366%
37
Bybit
BIT-DAI$0.9997
0.0000589 Btc
$220,570.00
734,475.470 BIT
1.0197%
38
DigiFinex
DAI-USDT$0.9982
0.0000588 Btc
$208,008.00
208,383.235 DAI
0.2893%
39
Bitget
DAI-USDT$0.9997
0.0000589 Btc
$205,905.00
205,944.000 DAI
0.2859%
40
Bithumb
DAI-KRW$1.014
0.0000598 Btc
$199,887.00
197,178.522 DAI
0.2738%
41
Quickswap (v3)
0XA3FA99A148FA48D14ED51D610C367C61876997F1-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$0.9998
0.0000590 Btc
$176,279.00
177,732.895 0XA3FA99A148FA48D14ED51D610C367C61876997F1
0.2468%
42
Uniswap (Polygon)
0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063-0XC2132D05D31C914A87C6611C10748AEB04B58E8F$0.9997
0.0000590 Btc
$175,825.00
175,857.463 0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063
0.2442%
43
Bitget
DAI-USDC$0.9987
0.0000589 Btc
$171,052.00
171,149.000 DAI
0.2376%
44
Quickswap (v3)
0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063-0XC2132D05D31C914A87C6611C10748AEB04B58E8F$1.00
0.0000590 Btc
$166,185.00
166,178.122 0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063
0.2307%
45
Balancer (Arbitrum)
0XF0B5CEEFC89684889E5F7E0A7775BD100FCD3709-DAI$0.9997
0.0000589 Btc
$163,366.00
167,105.136 0XF0B5CEEFC89684889E5F7E0A7775BD100FCD3709
0.2320%
46
Quickswap
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.003
0.0000591 Btc
$157,897.00
157,776.149 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.2191%
47
Bybit
DAI-USDT$0.9992
0.0000589 Btc
$156,604.00
156,728.140 DAI
0.2176%
48
BKEX
ETH-DAI$0.9997
0.0000589 Btc
$149,872.00
119.411 ETH
0.0002%
49
Uniswap (v3)
0X5F98805A4E8BE255A32880FDEC7F6728C6568BA0-0X6B175474E89094C44DA98B954EEDEAC495271D0F$1.001
0.0000590 Btc
$143,654.00
139,570.493 0X5F98805A4E8BE255A32880FDEC7F6728C6568BA0
0.1938%
50
Platypus Finance
0XB97EF9EF8734C71904D8002F8B6BC66DD9C48A6E-0XD586E7F844CEA2F87F50152665BCBC2C279D8D70$0.9996
0.0000589 Btc
$138,213.00
138,259.681 0XB97EF9EF8734C71904D8002F8B6BC66DD9C48A6E
0.1920%
51
Platypus Finance
0XD586E7F844CEA2F87F50152665BCBC2C279D8D70-0XB97EF9EF8734C71904D8002F8B6BC66DD9C48A6E$0.9996
0.0000589 Btc
$138,207.00
138,268.204 0XD586E7F844CEA2F87F50152665BCBC2C279D8D70
0.1920%
52
Kyberswap Elastic (Polygon)
0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063-0XC2132D05D31C914A87C6611C10748AEB04B58E8F$0.9997
0.0000589 Btc
$125,744.00
125,769.362 0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063
0.1746%
53
Velodrome Finance
0X7F5C764CBC14F9669B88837CA1490CCA17C31607-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$0.9993
0.0000589 Btc
$113,480.00
113,537.936 0X7F5C764CBC14F9669B88837CA1490CCA17C31607
0.1576%
54
Uniswap (Optimism)
0X94B008AA00579C1307B0EF2C499AD98A8CE58E58-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$0.9999
0.0000589 Btc
$110,270.00
110,259.535 0X94B008AA00579C1307B0EF2C499AD98A8CE58E58
0.1531%
55
BitMart
DAI-USDC$0.9995
0.0000589 Btc
$108,295.00
108,345.200 DAI
0.1504%
56
Osmosis
IBC/0CD3A0285E1341859B5E86B6AB7682F023D03E97607CCC1DC95706411D866DF7-UOSMO$0.9985
0.0000589 Btc
$106,568.00
106,732.726 IBC/0CD3A0285E1341859B5E86B6AB7682F023D03E97607CCC1DC95706411D866DF7
0.1482%
57
ApeSwap (Polygon)
0X0D500B1D8E8EF31E21C99D1DB9A6444D3ADF1270-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$0.9999
0.0000589 Btc
$106,505.00
117,044.302 0X0D500B1D8E8EF31E21C99D1DB9A6444D3ADF1270
0.1625%
58
Kyberswap Elastic (Arbitrum)
0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1-0XFD086BC7CD5C481DCC9C85EBE478A1C0B69FCBB9$0.9997
0.0000589 Btc
$101,957.00
102,001.563 0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1
0.1416%
59
PancakeSwap (v2)
0X1AF3F329E8BE154074D8769D1FFA4EE058B1DBC3-BUSD$0.9979
0.0000588 Btc
$82,889.00
82,844.277 0X1AF3F329E8BE154074D8769D1FFA4EE058B1DBC3
0.1150%
60
Uniswap (Arbitrum One)
0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1-0XFF970A61A04B1CA14834A43F5DE4533EBDDB5CC8$0.9995
0.0000589 Btc
$82,731.00
82,715.834 0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1
0.1148%
61
Crypto.com Exchange
DAI-USDT$0.9984
0.0000589 Btc
$78,161.00
78,286.000 DAI
0.1087%
62
Uniswap (v3)
0X03AB458634910AAD20EF5F1C8EE96F1D6AC54919-0X6B175474E89094C44DA98B954EEDEAC495271D0F$1.001
0.0000590 Btc
$77,279.00
27,414.932 0X03AB458634910AAD20EF5F1C8EE96F1D6AC54919
0.0381%
63
Uniswap (Polygon)
0XA3FA99A148FA48D14ED51D610C367C61876997F1-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$0.9999
0.0000590 Btc
$69,290.00
69,845.106 0XA3FA99A148FA48D14ED51D610C367C61876997F1
0.0970%
64
Tokpie
DAI-USDC$0.9999
0.0000589 Btc
$63,548.00
63,554.160 DAI
0.0882%
65
ZigZag (zkSync v1)
ETH-DAI$0.9997
0.0000589 Btc
$62,777.00
49.849 ETH
0.0001%
66
Huobi
DAI-USDT$0.9997
0.0000589 Btc
$59,093.00
59,104.475 DAI
0.0821%
67
Sushiswap (Polygon POS)
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.00
0.0000590 Btc
$54,904.00
54,147.884 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.0752%
68
Uniswap (Arbitrum One)
0X82AF49447D8A07E3BD95BD0D56F35241523FBAB1-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$1.001
0.0000590 Btc
$54,515.00
43.362 0X82AF49447D8A07E3BD95BD0D56F35241523FBAB1
0.0001%
69
Binance
BNB-DAI$0.9997
0.0000589 Btc
$46,734.00
162.767 BNB
0.0002%
70
Uniswap (v3)
0X0AB87046FBB341D058F17CBC4C1133F25A20A52F-0X6B175474E89094C44DA98B954EEDEAC495271D0F$1.001
0.0000590 Btc
$45,222.00
18.981 0X0AB87046FBB341D058F17CBC4C1133F25A20A52F
0.0000%
71
Sushiswap (Polygon POS)
0X7CEB23FD6BC0ADD59E62AC25578270CFF1B9F619-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.005
0.0000592 Btc
$45,208.00
35.360 0X7CEB23FD6BC0ADD59E62AC25578270CFF1B9F619
0.0000%
72
Kyberswap Elastic (Optimism)
0X94B008AA00579C1307B0EF2C499AD98A8CE58E58-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$0.9996
0.0000589 Btc
$45,097.00
45,108.799 0X94B008AA00579C1307B0EF2C499AD98A8CE58E58
0.0626%
73
Uniswap (v3)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XDAC17F958D2EE523A2206206994597C13D831EC7$1.001
0.0000590 Btc
$43,516.00
43,477.774 0X6B175474E89094C44DA98B954EEDEAC495271D0F
0.0604%
74
Uniswap (v2)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XB53ECF1345CABEE6EA1A65100EBB153CEBCAC40F$0.9997
0.0000589 Btc
$43,128.00
44,519.277 0X6B175474E89094C44DA98B954EEDEAC495271D0F
0.0618%
75
EXMO
DAI-ETH$0.9994
0.0000589 Btc
$38,365.00
38,388.037 DAI
0.0533%
76
Uniswap (Optimism)
0X8C6F28F2F1A3C87F0F938B96D27520D9751EC8D9-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$0.9999
0.0000589 Btc
$36,486.00
36,300.764 0X8C6F28F2F1A3C87F0F938B96D27520D9751EC8D9
0.0504%
77
Crypto.com Exchange
DAI-USD$0.9983
0.0000589 Btc
$31,658.00
31,711.600 DAI
0.0440%
78
Platypus Finance
0XC7198437980C041C805A1EDCBA50C1CE5DB95118-0XD586E7F844CEA2F87F50152665BCBC2C279D8D70$0.9996
0.0000589 Btc
$31,505.00
31,509.632 0XC7198437980C041C805A1EDCBA50C1CE5DB95118
0.0437%
79
Platypus Finance
0XD586E7F844CEA2F87F50152665BCBC2C279D8D70-0XC7198437980C041C805A1EDCBA50C1CE5DB95118$0.9994
0.0000589 Btc
$31,493.00
31,512.778 0XD586E7F844CEA2F87F50152665BCBC2C279D8D70
0.0438%
80
CoinEx
DAI-USDT$1.002
0.0000591 Btc
$30,985.00
30,934.655 DAI
0.0429%
81
Bancor (V2)
DAI-BNT$0.9905
0.0000584 Btc
$28,492.00
28,765.989 DAI
0.0399%
82
Quickswap (v3)
0X7CEB23FD6BC0ADD59E62AC25578270CFF1B9F619-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.002
0.0000591 Btc
$25,443.00
20.182 0X7CEB23FD6BC0ADD59E62AC25578270CFF1B9F619
0.0000%
83
DeFi Swap
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2$1.001
0.0000590 Btc
$25,184.00
25,254.049 0X6B175474E89094C44DA98B954EEDEAC495271D0F
0.0351%
84
Gate.io
DAI-USDT$0.999
0.0000589 Btc
$21,616.00
21,567.877 DAI
0.0299%
85
Coinbase Exchange
ETH-DAI$0.9997
0.0000589 Btc
$20,459.00
16.347 ETH
0.0000%
86
Bybit
ETH-DAI$0.9997
0.0000589 Btc
$19,383.94
15.454 ETH
0.0000%
87
Bitfinex
DAI-BTC$0.9998
0.0000590 Btc
$18,716.61
18,720.429 DAI
0.0260%
88
ApeSwap (Polygon)
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$0.9999
0.0000589 Btc
$15,764.48
15,782.711 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.0219%
89
Bitfinex
DAI-USD$1.003
0.0000591 Btc
$13,994.02
13,959.122 DAI
0.0194%
90
Bitvavo
DAI-EUR$0.9967
0.0000588 Btc
$11,905.87
11,945.025 DAI
0.0166%
91
KuCoin
BTC-DAI$0.9997
0.0000589 Btc
$10,972.26
0.645 BTC
0.0000%
92
Bybit
BTC-DAI$0.9997
0.0000589 Btc
$10,536.04
0.621 BTC
0.0000%
93
Bitso
DAI-MXN$0.9924
0.0000585 Btc
$10,520.30
10,600.557 DAI
0.0147%
94
KuCoin
ETH-DAI$0.9997
0.0000589 Btc
$10,345.88
8.272 ETH
0.0000%
95
ProBit Global
DAI-USDT$0.9999
0.0000589 Btc
$6,029.22
6,029.818 DAI
0.0084%
96
Uniswap (v2)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0X9393FDC77090F31C7DB989390D43F454B1A6E7F3$0.9624
0.0000567 Btc
$3,958.51
4,047.374 0X6B175474E89094C44DA98B954EEDEAC495271D0F
0.0056%
97
SpiritSwap
0X04068DA6C83AFCFA0E13BA15A6696662335D5B75-0X8D11EC38A3EB5E956B052F67DA8BDC9BEF8ABF3E$0.9997
0.0000589 Btc
$3,448.14
3,435.892 0X04068DA6C83AFCFA0E13BA15A6696662335D5B75
0.0048%
98
Uniswap (Optimism)
0X7F5C764CBC14F9669B88837CA1490CCA17C31607-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$1.00
0.0000590 Btc
$2,309.60
2,309.391 0X7F5C764CBC14F9669B88837CA1490CCA17C31607
0.0032%
99
Bitstamp
DAI-USD$0.999
0.0000589 Btc
$881.10
881.980 DAI
0.0012%
100
Kuna Exchange
DAI-UAH$1.08
0.0000637 Btc
$121.74
112.720 DAI
0.0002%

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