Token (PoS) Dai Stablecoin

 

Overview ERC-20

Price
$1.00 @ 1.183418 MATIC (+0.14%)
Fully Diluted Market Cap
Total Supply:
134,138,173.861997 DAI

Holders:
725,127 addresses
 
Balance
26.515831217161564551 DAI

Value
$26.57 ( ~31.3807 MATIC) [0.0000%]
0x9a6f28a46e0ba4f5c94dc260620a5a26f42adeca
Loading
[ Download CSV Export  ] 
Loading
[ Download CSV Export  ] 
Loading

OVERVIEW

Multi-Collateral Dai, brings a lot of new and exciting features, such as support for new CDP collateral types and Dai Savings Rate.

Market

Volume (24H):$120,519,965.00
Market Capitalization:$5,274,715,149.00
Circulating Supply:5,266,667,634.00 DAI
Market Data Source: Coinmarketcap


Update? Click here to update the token ICO / general information
# Exchange Pair Price  24H Volume % Volume
1
OKX
ETH-DAI$1.00
0.0000608 Btc
$22,823,708.00
18,793.842 ETH
0.0406%
2
BitMart
BTC-DAI$1.00
0.0000608 Btc
$12,011,347.00
729.726 BTC
0.0016%
3
Uniswap (v3)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2$1.001
0.0000608 Btc
$5,279,447.00
5,306,318.352 0X6B175474E89094C44DA98B954EEDEAC495271D0F
11.4585%
4
Uniswap (v3)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48$1.00
0.0000607 Btc
$4,602,612.00
4,603,089.582 0X6B175474E89094C44DA98B954EEDEAC495271D0F
9.9399%
5
Hotbit
DAI-USDT$0.9995
0.0000607 Btc
$4,291,955.00
4,294,292.980 DAI
9.2731%
6
Uniswap (v3)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2$1.001
0.0000608 Btc
$3,660,992.00
3,688,063.010 0X6B175474E89094C44DA98B954EEDEAC495271D0F
7.9640%
7
Kyberswap Elastic (Arbitrum)
0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1-0XFF970A61A04B1CA14834A43F5DE4533EBDDB5CC8$0.9998
0.0000608 Btc
$3,385,917.00
3,386,234.652 0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1
7.3123%
8
Kyberswap Elastic (Optimism)
0X7F5C764CBC14F9669B88837CA1490CCA17C31607-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$0.9998
0.0000608 Btc
$2,881,192.00
2,881,604.940 0X7F5C764CBC14F9669B88837CA1490CCA17C31607
6.2226%
9
Binance
ETH-DAI$0.9997
0.0000609 Btc
$1,411,076.00
1,172.716 ETH
0.0025%
10
BKEX
USDT-DAI$1.00
0.0000608 Btc
$1,409,050.00
1,409,092.924 USDT
3.0428%
11
WhiteBIT
DAI-USDT$0.9992
0.0000607 Btc
$1,381,700.00
1,382,766.240 DAI
2.9860%
12
Kraken
DAI-USD$0.9999
0.0000608 Btc
$1,364,091.00
1,364,268.565 DAI
2.9460%
13
BitMart
ETH-DAI$1.00
0.0000608 Btc
$1,241,673.00
1,029.462 ETH
0.0022%
14
Kyberswap Elastic (Arbitrum)
0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1-0XFD086BC7CD5C481DCC9C85EBE478A1C0B69FCBB9$0.9999
0.0000608 Btc
$1,187,284.00
1,187,342.841 0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1
2.5640%
15
LBank
DAI-USDT$1.001
0.0000608 Btc
$1,107,061.00
1,106,352.930 DAI
2.3891%
16
OKX
BTC-DAI$1.00
0.0000608 Btc
$1,061,577.00
64.088 BTC
0.0001%
17
Bybit
BIT-DAI$1.00
0.0000609 Btc
$1,043,152.00
3,531,390.390 BIT
7.6257%
18
Kraken
DAI-EUR$1.001
0.0000608 Btc
$901,586.00
900,657.030 DAI
1.9449%
19
Binance
BUSD-DAI$0.9999
0.0000608 Btc
$862,986.00
862,957.677 BUSD
1.8635%
20
Uniswap (Polygon)
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.00
0.0000608 Btc
$707,300.00
707,266.111 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
1.5273%
21
Kyberswap Elastic (Polygon)
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.00
0.0000608 Btc
$663,537.00
663,521.726 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
1.4328%
22
Uniswap (Optimism)
0X7F5C764CBC14F9669B88837CA1490CCA17C31607-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$0.9984
0.0000607 Btc
$595,515.00
596,413.910 0X7F5C764CBC14F9669B88837CA1490CCA17C31607
1.2879%
23
BitMart
DAI-USDT$0.9998
0.0000607 Btc
$584,434.00
584,531.160 DAI
1.2622%
24
Uniswap (v3)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XDAC17F958D2EE523A2206206994597C13D831EC7$1.002
0.0000609 Btc
$579,924.00
578,934.023 0X6B175474E89094C44DA98B954EEDEAC495271D0F
1.2502%
25
Beethoven X
0X04068DA6C83AFCFA0E13BA15A6696662335D5B75-DAI$0.9999
0.0000608 Btc
$564,255.00
564,225.129 0X04068DA6C83AFCFA0E13BA15A6696662335D5B75
1.2184%
26
Beethoven X
0X8D11EC38A3EB5E956B052F67DA8BDC9BEF8ABF3E-USDC$0.9998
0.0000608 Btc
$564,175.00
564,281.476 0X8D11EC38A3EB5E956B052F67DA8BDC9BEF8ABF3E
1.2185%
27
Coinbase Exchange
DAI-USD$1.00
0.0000607 Btc
$551,453.00
551,453.022 DAI
1.1908%
28
Kyberswap Elastic (Polygon)
0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063-0XC2132D05D31C914A87C6611C10748AEB04B58E8F$0.9999
0.0000608 Btc
$487,012.00
486,964.312 0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063
1.0516%
29
Uniswap (Optimism)
0X94B008AA00579C1307B0EF2C499AD98A8CE58E58-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$0.9984
0.0000607 Btc
$442,767.00
443,624.109 0X94B008AA00579C1307B0EF2C499AD98A8CE58E58
0.9580%
30
Quickswap
0XE5417AF564E4BFDA1C483642DB72007871397896-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.004
0.0000610 Btc
$404,572.00
101,280.670 0XE5417AF564E4BFDA1C483642DB72007871397896
0.2187%
31
Binance
BTC-DAI$0.9997
0.0000609 Btc
$374,900.00
22.813 BTC
0.0000%
32
DigiFinex
DAI-USDT$0.9995
0.0000607 Btc
$357,495.00
357,674.066 DAI
0.7724%
33
Uniswap (Optimism)
0X4200000000000000000000000000000000000006-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$0.9991
0.0000607 Btc
$348,022.00
286.760 0X4200000000000000000000000000000000000006
0.0006%
34
Uniswap (Arbitrum One)
0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1-0XFF970A61A04B1CA14834A43F5DE4533EBDDB5CC8$1.002
0.0000609 Btc
$324,622.00
324,259.364 0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1
0.7002%
35
Azbit
DAI-USDT$1.001
0.0000608 Btc
$309,729.00
309,501.412 DAI
0.6683%
36
Binance
BNB-DAI$1.002
0.0000609 Btc
$303,272.00
977.425 BNB
0.0021%
37
Sushiswap
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2$1.006
0.0000611 Btc
$279,796.00
283,855.461 0X6B175474E89094C44DA98B954EEDEAC495271D0F
0.6130%
38
Kraken
DAI-USDT$0.9995
0.0000607 Btc
$270,281.00
270,411.088 DAI
0.5839%
39
Quickswap (v3)
0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063-0XC2132D05D31C914A87C6611C10748AEB04B58E8F$1.00
0.0000608 Btc
$216,414.00
216,348.813 0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063
0.4672%
40
Quickswap (v3)
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.00
0.0000608 Btc
$204,798.00
204,791.759 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.4422%
41
Bitget
DAI-USDT$0.9995
0.0000607 Btc
$202,891.00
202,904.000 DAI
0.4382%
42
BKEX
ETH-DAI$1.00
0.0000608 Btc
$201,123.00
165.540 ETH
0.0004%
43
Huobi
DAI-USDT$0.9987
0.0000607 Btc
$180,528.00
180,645.993 DAI
0.3901%
44
Bitget
DAI-USDC$1.001
0.0000608 Btc
$171,957.00
171,858.000 DAI
0.3711%
45
KuCoin
USDT-DAI$1.00
0.0000608 Btc
$147,357.00
147,408.960 USDT
0.3183%
46
Osmosis
IBC/0CD3A0285E1341859B5E86B6AB7682F023D03E97607CCC1DC95706411D866DF7-UOSMO$1.001
0.0000608 Btc
$138,470.00
138,327.663 IBC/0CD3A0285E1341859B5E86B6AB7682F023D03E97607CCC1DC95706411D866DF7
0.2987%
47
Uniswap (Optimism)
0X8C6F28F2F1A3C87F0F938B96D27520D9751EC8D9-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$0.9984
0.0000607 Btc
$137,898.00
137,417.915 0X8C6F28F2F1A3C87F0F938B96D27520D9751EC8D9
0.2967%
48
PancakeSwap (v2)
0X1AF3F329E8BE154074D8769D1FFA4EE058B1DBC3-BUSD$0.9975
0.0000606 Btc
$125,154.00
125,082.061 0X1AF3F329E8BE154074D8769D1FFA4EE058B1DBC3
0.2701%
49
Bithumb
DAI-KRW$1.032
0.0000627 Btc
$111,850.00
108,405.416 DAI
0.2341%
50
Uniswap (Polygon)
0XA3FA99A148FA48D14ED51D610C367C61876997F1-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.00
0.0000608 Btc
$108,585.00
109,682.411 0XA3FA99A148FA48D14ED51D610C367C61876997F1
0.2368%
51
Bybit
DAI-USDT$0.9996
0.0000609 Btc
$97,056.00
97,099.540 DAI
0.2097%
52
Platypus Finance
0XD586E7F844CEA2F87F50152665BCBC2C279D8D70-0XB97EF9EF8734C71904D8002F8B6BC66DD9C48A6E$0.9999
0.0000608 Btc
$96,054.00
96,064.684 0XD586E7F844CEA2F87F50152665BCBC2C279D8D70
0.2074%
53
ApeSwap (Polygon)
0X0D500B1D8E8EF31E21C99D1DB9A6444D3ADF1270-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.001
0.0000609 Btc
$94,135.00
109,636.037 0X0D500B1D8E8EF31E21C99D1DB9A6444D3ADF1270
0.2367%
54
Uniswap (v3)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XDAC17F958D2EE523A2206206994597C13D831EC7$1.002
0.0000609 Btc
$83,240.00
83,131.172 0X6B175474E89094C44DA98B954EEDEAC495271D0F
0.1795%
55
Quickswap (v3)
0XA3FA99A148FA48D14ED51D610C367C61876997F1-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.00
0.0000608 Btc
$78,476.00
79,264.864 0XA3FA99A148FA48D14ED51D610C367C61876997F1
0.1712%
56
Platypus Finance
0XA7D7079B0FEAD91F3E65F86E8915CB59C1A4C664-0XD586E7F844CEA2F87F50152665BCBC2C279D8D70$1.00
0.0000608 Btc
$77,437.00
77,447.499 0XA7D7079B0FEAD91F3E65F86E8915CB59C1A4C664
0.1672%
57
Uniswap (v3)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0X956F47F50A910163D8BF957CF5846D573E7F87CA$0.9998
0.0000607 Btc
$74,121.00
74,146.044 0X6B175474E89094C44DA98B954EEDEAC495271D0F
0.1601%
58
Bancor (V3)
DAI-BNT$0.9921
0.0000603 Btc
$62,628.00
63,090.241 DAI
0.1362%
59
Tokpie
DAI-USDC$1.002
0.0000608 Btc
$62,531.00
62,434.040 DAI
0.1348%
60
Uniswap (Arbitrum One)
0X82AF49447D8A07E3BD95BD0D56F35241523FBAB1-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$0.9971
0.0000606 Btc
$56,516.00
46.654 0X82AF49447D8A07E3BD95BD0D56F35241523FBAB1
0.0001%
61
Quickswap (v3)
0X7CEB23FD6BC0ADD59E62AC25578270CFF1B9F619-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.001
0.0000608 Btc
$53,082.00
43.937 0X7CEB23FD6BC0ADD59E62AC25578270CFF1B9F619
0.0001%
62
ZigZag (zkSync v1)
ETH-DAI$1.001
0.0000608 Btc
$51,239.00
42.096 ETH
0.0001%
63
Velodrome Finance
0X7F5C764CBC14F9669B88837CA1490CCA17C31607-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$1.00
0.0000608 Btc
$46,504.00
46,499.390 0X7F5C764CBC14F9669B88837CA1490CCA17C31607
0.1004%
64
EXMO
DAI-ETH$0.9992
0.0000607 Btc
$39,333.00
39,364.872 DAI
0.0850%
65
Gemini
DAI-USD$0.9998
0.0000607 Btc
$38,698.00
38,705.553 DAI
0.0836%
66
Concave
0X000000007A58F5F58E697E51AB0357BC9E260A04-0X6B175474E89094C44DA98B954EEDEAC495271D0F$0.9999
0.0000608 Btc
$38,459.00
5,183.670 0X000000007A58F5F58E697E51AB0357BC9E260A04
0.0112%
67
Quickswap
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.004
0.0000610 Btc
$36,995.00
36,961.124 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.0798%
68
Bitso
DAI-MXN$0.9979
0.0000608 Btc
$36,234.00
36,310.105 DAI
0.0784%
69
KuCoin
BTC-DAI$1.00
0.0000608 Btc
$33,461.00
2.032 BTC
0.0000%
70
Uniswap (v3)
0X2260FAC5E5542A773AA44FBCFEDF7C193BC2C599-0X6B175474E89094C44DA98B954EEDEAC495271D0F$1.005
0.0000611 Btc
$33,131.00
2.010 0X2260FAC5E5542A773AA44FBCFEDF7C193BC2C599
0.0000%
71
Uniswap (Arbitrum One)
0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1-0XFD086BC7CD5C481DCC9C85EBE478A1C0B69FCBB9$0.9987
0.0000607 Btc
$27,876.00
27,896.567 0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1
0.0602%
72
DeFi Swap
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2$1.006
0.0000611 Btc
$24,424.00
24,552.501 0X6B175474E89094C44DA98B954EEDEAC495271D0F
0.0530%
73
Crypto.com Exchange
DAI-USDT$0.9978
0.0000606 Btc
$23,645.00
23,697.300 DAI
0.0512%
74
EXMO
DAI-BTC$0.9995
0.0000607 Btc
$20,510.00
20,520.028 DAI
0.0443%
75
CoinEx
DAI-USDT$1.002
0.0000610 Btc
$20,006.00
19,960.490 DAI
0.0431%
76
Quickswap
0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063-0XC2132D05D31C914A87C6611C10748AEB04B58E8F$1.002
0.0000609 Btc
$18,529.71
17,481.544 0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063
0.0377%
77
Bancor (V2)
DAI-BNT$0.9986
0.0000607 Btc
$17,365.68
17,390.806 DAI
0.0376%
78
KuCoin
ETH-DAI$0.9997
0.0000609 Btc
$17,362.26
14.442 ETH
0.0000%
79
Uniswap (Optimism)
0X7F5C764CBC14F9669B88837CA1490CCA17C31607-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$0.9984
0.0000607 Btc
$15,602.43
15,627.538 0X7F5C764CBC14F9669B88837CA1490CCA17C31607
0.0337%
80
Kyberswap Elastic (Polygon)
0X7CEB23FD6BC0ADD59E62AC25578270CFF1B9F619-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.00
0.0000608 Btc
$12,237.06
10.089 0X7CEB23FD6BC0ADD59E62AC25578270CFF1B9F619
0.0000%
81
Trader Joe
0XB31F66AA3C1E785363F0875A1B74E27B85FD66C7-0XD586E7F844CEA2F87F50152665BCBC2C279D8D70$1.001
0.0000608 Btc
$11,994.05
926.039 0XB31F66AA3C1E785363F0875A1B74E27B85FD66C7
0.0020%
82
Gate.io
DAI-USD$0.9984
0.0000607 Btc
$11,818.74
11,855.596 DAI
0.0256%
83
Bybit
ETH-DAI$1.001
0.0000609 Btc
$9,785.27
8.165 ETH
0.0000%
84
Bybit
BTC-DAI$0.9999
0.0000608 Btc
$8,784.14
0.534 BTC
0.0000%
85
Coinbase Exchange
ETH-DAI$1.00
0.0000608 Btc
$8,774.41
7.324 ETH
0.0000%
86
Uniswap (v2)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XB53ECF1345CABEE6EA1A65100EBB153CEBCAC40F$1.00
0.0000608 Btc
$7,547.72
7,559.373 0X6B175474E89094C44DA98B954EEDEAC495271D0F
0.0163%
87
Uniswap (v3)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2$1.001
0.0000608 Btc
$6,273.39
6,327.152 0X6B175474E89094C44DA98B954EEDEAC495271D0F
0.0137%
88
Uniswap (v2)
0X40803CEA2B2A32BDA1BE61D3604AF6A814E70976-0X6B175474E89094C44DA98B954EEDEAC495271D0F$1.00
0.0000608 Btc
$5,554.64
32,870.066 0X40803CEA2B2A32BDA1BE61D3604AF6A814E70976
0.0710%
89
Platypus Finance
0XC7198437980C041C805A1EDCBA50C1CE5DB95118-0XD586E7F844CEA2F87F50152665BCBC2C279D8D70$1.00
0.0000608 Btc
$5,537.34
5,541.383 0XC7198437980C041C805A1EDCBA50C1CE5DB95118
0.0120%
90
Platypus Finance
0XD586E7F844CEA2F87F50152665BCBC2C279D8D70-0XC7198437980C041C805A1EDCBA50C1CE5DB95118$0.9998
0.0000608 Btc
$5,535.83
5,537.096 0XD586E7F844CEA2F87F50152665BCBC2C279D8D70
0.0120%
91
Bitfinex
DAI-USD$1.001
0.0000608 Btc
$5,403.22
5,396.206 DAI
0.0117%
92
ProBit Global
DAI-USDT$1.00
0.0000608 Btc
$5,002.56
5,000.064 DAI
0.0108%
93
Platypus Finance
0X9702230A8EA53601F5CD2DC00FDBC13D4DF4A8C7-0XD586E7F844CEA2F87F50152665BCBC2C279D8D70$1.00
0.0000608 Btc
$4,514.05
4,517.000 0X9702230A8EA53601F5CD2DC00FDBC13D4DF4A8C7
0.0098%
94
ApeSwap (Polygon)
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.001
0.0000609 Btc
$3,795.62
3,792.527 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.0082%
95
Bitvavo
DAI-EUR$0.9998
0.0000608 Btc
$3,326.91
3,327.634 DAI
0.0072%
96
DeFi Swap
0XA0B73E1FF0B80914AB6FE0444E65848C4C34450B-0X6B175474E89094C44DA98B954EEDEAC495271D0F$0.9949
0.0000604 Btc
$2,550.15
39,358.050 0XA0B73E1FF0B80914AB6FE0444E65848C4C34450B
0.0850%
97
Uniswap (Optimism)
0X94B008AA00579C1307B0EF2C499AD98A8CE58E58-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$0.9984
0.0000607 Btc
$2,033.52
2,037.512 0X94B008AA00579C1307B0EF2C499AD98A8CE58E58
0.0044%
98
Mercado Bitcoin
DAI-BRL$0.9933
0.0000604 Btc
$1,902.12
1,914.875 DAI
0.0041%
99
Bitstamp
DAI-USD$0.9991
0.0000607 Btc
$1,182.54
1,183.590 DAI
0.0026%
100
ProtoFi
0X04068DA6C83AFCFA0E13BA15A6696662335D5B75-0X8D11EC38A3EB5E956B052F67DA8BDC9BEF8ABF3E$1.003
0.0000610 Btc
$483.62
480.666 0X04068DA6C83AFCFA0E13BA15A6696662335D5B75
0.0010%
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
UChildERC20Proxy

Compiler Version
v0.6.6+commit.6c089d02

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at Etherscan.io on 2021-06-29
*/

// File: contracts/common/Proxy/IERCProxy.sol

pragma solidity 0.6.6;

interface IERCProxy {
    function proxyType() external pure returns (uint256 proxyTypeId);

    function implementation() external view returns (address codeAddr);
}

// File: contracts/common/Proxy/Proxy.sol

pragma solidity 0.6.6;


abstract contract Proxy is IERCProxy {
    function delegatedFwd(address _dst, bytes memory _calldata) internal {
        // solium-disable-next-line security/no-inline-assembly
        assembly {
            let result := delegatecall(
                sub(gas(), 10000),
                _dst,
                add(_calldata, 0x20),
                mload(_calldata),
                0,
                0
            )
            let size := returndatasize()

            let ptr := mload(0x40)
            returndatacopy(ptr, 0, size)

            // revert instead of invalid() bc if the underlying call failed with invalid() it already wasted gas.
            // if the call returned error data, forward it
            switch result
                case 0 {
                    revert(ptr, size)
                }
                default {
                    return(ptr, size)
                }
        }
    }

    function proxyType() external virtual override pure returns (uint256 proxyTypeId) {
        // Upgradeable proxy
        proxyTypeId = 2;
    }

    function implementation() external virtual override view returns (address);
}

// File: contracts/common/Proxy/UpgradableProxy.sol

pragma solidity 0.6.6;


contract UpgradableProxy is Proxy {
    event ProxyUpdated(address indexed _new, address indexed _old);
    event ProxyOwnerUpdate(address _new, address _old);

    bytes32 constant IMPLEMENTATION_SLOT = keccak256("matic.network.proxy.implementation");
    bytes32 constant OWNER_SLOT = keccak256("matic.network.proxy.owner");

    constructor(address _proxyTo) public {
        setProxyOwner(msg.sender);
        setImplementation(_proxyTo);
    }

    fallback() external payable {
        delegatedFwd(loadImplementation(), msg.data);
    }

    receive() external payable {
        delegatedFwd(loadImplementation(), msg.data);
    }

    modifier onlyProxyOwner() {
        require(loadProxyOwner() == msg.sender, "NOT_OWNER");
        _;
    }

    function proxyOwner() external view returns(address) {
        return loadProxyOwner();
    }

    function loadProxyOwner() internal view returns(address) {
        address _owner;
        bytes32 position = OWNER_SLOT;
        assembly {
            _owner := sload(position)
        }
        return _owner;
    }

    function implementation() external override view returns (address) {
        return loadImplementation();
    }

    function loadImplementation() internal view returns(address) {
        address _impl;
        bytes32 position = IMPLEMENTATION_SLOT;
        assembly {
            _impl := sload(position)
        }
        return _impl;
    }

    function transferProxyOwnership(address newOwner) public onlyProxyOwner {
        require(newOwner != address(0), "ZERO_ADDRESS");
        emit ProxyOwnerUpdate(newOwner, loadProxyOwner());
        setProxyOwner(newOwner);
    }

    function setProxyOwner(address newOwner) private {
        bytes32 position = OWNER_SLOT;
        assembly {
            sstore(position, newOwner)
        }
    }

    function updateImplementation(address _newProxyTo) public onlyProxyOwner {
        require(_newProxyTo != address(0x0), "INVALID_PROXY_ADDRESS");
        require(isContract(_newProxyTo), "DESTINATION_ADDRESS_IS_NOT_A_CONTRACT");

        emit ProxyUpdated(_newProxyTo, loadImplementation());
        
        setImplementation(_newProxyTo);
    }

    function updateAndCall(address _newProxyTo, bytes memory data) payable public onlyProxyOwner {
        updateImplementation(_newProxyTo);

        (bool success, bytes memory returnData) = address(this).call{value: msg.value}(data);
        require(success, string(returnData));
    }

    function setImplementation(address _newProxyTo) private {
        bytes32 position = IMPLEMENTATION_SLOT;
        assembly {
            sstore(position, _newProxyTo)
        }
    }
    
    function isContract(address _target) internal view returns (bool) {
        if (_target == address(0)) {
            return false;
        }

        uint256 size;
        assembly {
            size := extcodesize(_target)
        }
        return size > 0;
    }
}

// File: contracts/child/ChildToken/UpgradeableChildERC20/UChildERC20Proxy.sol

pragma solidity 0.6.6;


contract UChildERC20Proxy is UpgradableProxy {
    constructor(address _proxyTo)
        public
        UpgradableProxy(_proxyTo)
    {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_proxyTo","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_new","type":"address"},{"indexed":false,"internalType":"address","name":"_old","type":"address"}],"name":"ProxyOwnerUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_new","type":"address"},{"indexed":true,"internalType":"address","name":"_old","type":"address"}],"name":"ProxyUpdated","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyType","outputs":[{"internalType":"uint256","name":"proxyTypeId","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferProxyOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newProxyTo","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"updateAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_newProxyTo","type":"address"}],"name":"updateImplementation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b50604051610c85380380610c858339818101604052602081101561003357600080fd5b8101908080519060200190929190505050806100543361006a60201b60201c565b610063816100ab60201b60201c565b50506100cf565b600060405180807f6d617469632e6e6574776f726b2e70726f78792e6f776e6572000000000000008152506019019050604051809103902090508181555050565b60006040518080610c63602291396022019050604051809103902090508181555050565b610b85806100de6000396000f3fe6080604052600436106100595760003560e01c8063025313a21461010e578063025b22bc146101655780634555d5c9146101b65780635c60da1b146101e1578063d88ca2c814610238578063f1739cae14610313576100b6565b366100b6576100b4610069610364565b6000368080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050610390565b005b61010c6100c1610364565b6000368080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050610390565b005b34801561011a57600080fd5b506101236103ba565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561017157600080fd5b506101b46004803603602081101561018857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506103c9565b005b3480156101c257600080fd5b506101cb6105df565b6040518082815260200191505060405180910390f35b3480156101ed57600080fd5b506101f66105e8565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6103116004803603604081101561024e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561028b57600080fd5b82018360208201111561029d57600080fd5b803590602001918460018302840111640100000000831117156102bf57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050506105f7565b005b34801561031f57600080fd5b506103626004803603602081101561033657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610813565b005b60008060006040518080610b2e6022913960220190506040518091039020905080549150819250505090565b600080825160208401856127105a03f43d604051816000823e82600081146103b6578282f35b8282fd5b60006103c4610a08565b905090565b3373ffffffffffffffffffffffffffffffffffffffff166103e8610a08565b73ffffffffffffffffffffffffffffffffffffffff1614610471576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260098152602001807f4e4f545f4f574e4552000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610514576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f494e56414c49445f50524f58595f41444452455353000000000000000000000081525060200191505060405180910390fd5b61051d81610a51565b610572576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180610b096025913960400191505060405180910390fd5b61057a610364565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167fd32d24edea94f55e932d9a008afc425a8561462d1b1f57bc6e508e9a6b9509e160405160405180910390a36105dc81610aa3565b50565b60006002905090565b60006105f2610364565b905090565b3373ffffffffffffffffffffffffffffffffffffffff16610616610a08565b73ffffffffffffffffffffffffffffffffffffffff161461069f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260098152602001807f4e4f545f4f574e4552000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6106a8826103c9565b600060603073ffffffffffffffffffffffffffffffffffffffff1634846040518082805190602001908083835b602083106106f857805182526020820191506020810190506020830392506106d5565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461075a576040519150601f19603f3d011682016040523d82523d6000602084013e61075f565b606091505b509150915081819061080c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156107d15780820151818401526020810190506107b6565b50505050905090810190601f1680156107fe5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5050505050565b3373ffffffffffffffffffffffffffffffffffffffff16610832610a08565b73ffffffffffffffffffffffffffffffffffffffff16146108bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260098152602001807f4e4f545f4f574e4552000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561095e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600c8152602001807f5a45524f5f41444452455353000000000000000000000000000000000000000081525060200191505060405180910390fd5b7fdbe5fd65bcdbae152f24ab660ea68e72b4d4705b57b16e0caae994e214680ee281610988610a08565b604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a1610a0581610ac7565b50565b600080600060405180807f6d617469632e6e6574776f726b2e70726f78792e6f776e65720000000000000081525060190190506040518091039020905080549150819250505090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610a905760009050610a9e565b6000823b9050600081119150505b919050565b60006040518080610b2e602291396022019050604051809103902090508181555050565b600060405180807f6d617469632e6e6574776f726b2e70726f78792e6f776e657200000000000000815250601901905060405180910390209050818155505056fe44455354494e4154494f4e5f414444524553535f49535f4e4f545f415f434f4e54524143546d617469632e6e6574776f726b2e70726f78792e696d706c656d656e746174696f6ea26469706673582212208262e9eb2153cf52cdbce21b7ed8a72faf3469a061b389bcfdc789246642006364736f6c634300060600336d617469632e6e6574776f726b2e70726f78792e696d706c656d656e746174696f6e000000000000000000000000490e379c9cff64944be82b849f8fd5972c7999a7

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000490e379c9cff64944be82b849f8fd5972c7999a7

-----Decoded View---------------
Arg [0] : _proxyTo (address): 0x490e379c9cff64944be82b849f8fd5972c7999a7

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000490e379c9cff64944be82b849f8fd5972c7999a7


Loading