Token (PoS) Dai Stablecoin

 

Overview ERC-20

Price
$1.00 @ 0.834725 MATIC (-0.23%)
Fully Diluted Market Cap
Total Supply:
140,471,794.730938 DAI

Holders:
921,272 addresses
 
Balance
0 DAI

Value
$0.00
0x0e43245f7af3cfb1d4838e6704f27d09a8b4b072
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):$94,222,368.00
Market Capitalization:$5,107,127,422.00
Circulating Supply:5,108,777,828.00 DAI
Market Data Source: Coinmarketcap


Update? Click here to update the token ICO / general information
# Exchange Pair Price  24H Volume % Volume
1
BitMart
BTC-DAI$0.9987
0.0000433 Btc
$7,644,641.00
331.673 BTC
0.0008%
2
Uniswap (v3)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2$1.004
0.0000435 Btc
$6,178,308.00
6,241,658.501 0X6B175474E89094C44DA98B954EEDEAC495271D0F
14.7930%
3
XT.COM
BTC-DAI$0.9987
0.0000433 Btc
$4,093,916.00
175.634 BTC
0.0004%
4
Balancer (v2)
0XAE37D54AE477268B9997D4161B96B8200755935C-0X6B175474E89094C44DA98B954EEDEAC495271D0F$0.9987
0.0000433 Btc
$3,847,646.00
3,844,876.128 0XAE37D54AE477268B9997D4161B96B8200755935C
9.1125%
5
Uniswap (v3)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48$0.9994
0.0000433 Btc
$3,802,587.00
3,804,432.673 0X6B175474E89094C44DA98B954EEDEAC495271D0F
9.0167%
6
OKX
BTC-DAI$0.9987
0.0000433 Btc
$2,841,857.00
121.882 BTC
0.0003%
7
Kraken
DAI-USD$0.9996
0.0000433 Btc
$1,894,247.00
1,895,005.335 DAI
4.4913%
8
BKEX
USDT-DAI$0.9987
0.0000433 Btc
$1,744,399.00
1,745,785.867 USDT
4.1376%
9
Kraken
DAI-EUR$1.003
0.0000435 Btc
$1,719,947.00
1,715,437.503 DAI
4.0657%
10
Balancer (v2)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-USDC$1.00
0.0000434 Btc
$1,691,950.00
1,691,632.679 0X6B175474E89094C44DA98B954EEDEAC495271D0F
4.0093%
11
Balancer (v2)
0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48-DAI$1.00
0.0000434 Btc
$1,688,035.00
1,687,675.136 0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48
3.9999%
12
OKX
ETH-DAI$0.9987
0.0000433 Btc
$1,639,492.00
987.059 ETH
0.0023%
13
Binance
USDT-DAI$0.9987
0.0000433 Btc
$1,480,175.00
1,481,657.289 USDT
3.5116%
14
WhiteBIT
DAI-USDT$0.9991
0.0000433 Btc
$1,218,860.00
1,219,985.710 DAI
2.8914%
15
Uniswap (v3)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2$1.004
0.0000435 Btc
$1,096,096.00
1,108,023.761 0X6B175474E89094C44DA98B954EEDEAC495271D0F
2.6261%
16
Binance
ETH-DAI$0.9987
0.0000433 Btc
$1,030,008.00
629.297 ETH
0.0015%
17
Uniswap (v3)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XDAC17F958D2EE523A2206206994597C13D831EC7$0.998
0.0000433 Btc
$956,883.00
958,608.753 0X6B175474E89094C44DA98B954EEDEAC495271D0F
2.2720%
18
BKEX
ETH-DAI$0.9987
0.0000433 Btc
$902,587.00
545.462 ETH
0.0013%
19
BitMart
ETH-DAI$0.9987
0.0000433 Btc
$880,051.00
537.965 ETH
0.0013%
20
Binance
BTC-DAI$0.9987
0.0000433 Btc
$759,039.00
32.931 BTC
0.0001%
21
Hotbit
DAI-USDT$0.9904
0.0000429 Btc
$723,839.00
730,864.520 DAI
1.7322%
22
Uniswap (Optimism)
0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1-0X4200000000000000000000000000000000000006$0.9992
0.0000433 Btc
$687,026.00
696,288.967 0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1
1.6502%
23
XT.COM
ETH-DAI$0.9987
0.0000433 Btc
$676,057.00
406.503 ETH
0.0010%
24
Platypus Finance
0XD586E7F844CEA2F87F50152665BCBC2C279D8D70-0XB97EF9EF8734C71904D8002F8B6BC66DD9C48A6E$1.00
0.0000434 Btc
$670,215.00
670,148.950 0XD586E7F844CEA2F87F50152665BCBC2C279D8D70
1.5883%
25
Platypus Finance
0XB97EF9EF8734C71904D8002F8B6BC66DD9C48A6E-0XD586E7F844CEA2F87F50152665BCBC2C279D8D70$1.00
0.0000434 Btc
$670,178.00
670,199.737 0XB97EF9EF8734C71904D8002F8B6BC66DD9C48A6E
1.5884%
26
Kyberswap Elastic (Arbitrum)
0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1-0XFF970A61A04B1CA14834A43F5DE4533EBDDB5CC8$0.9981
0.0000433 Btc
$667,579.00
668,882.903 0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1
1.5853%
27
BitMart
DAI-USDT$1.00
0.0000434 Btc
$656,629.00
656,593.480 DAI
1.5562%
28
Uniswap (Optimism)
0X7F5C764CBC14F9669B88837CA1490CCA17C31607-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$0.9996
0.0000433 Btc
$627,258.00
627,490.059 0X7F5C764CBC14F9669B88837CA1490CCA17C31607
1.4872%
29
Kraken
DAI-USDT$0.9998
0.0000433 Btc
$626,902.00
627,053.290 DAI
1.4861%
30
Coinbase Exchange
DAI-USD$0.9987
0.0000433 Btc
$610,918.00
611,713.392 DAI
1.4498%
31
Uniswap (Optimism)
0X4200000000000000000000000000000000000006-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$1.004
0.0000435 Btc
$605,211.00
363.990 0X4200000000000000000000000000000000000006
0.0009%
32
Bitget
DAI-USDT$1.00
0.0000433 Btc
$601,884.00
601,963.000 DAI
1.4267%
33
BKEX
BTC-DAI$0.9987
0.0000433 Btc
$594,344.00
25.675 BTC
0.0001%
34
Bitrue
DAI-USDT$0.9998
0.0000433 Btc
$588,599.00
588,729.600 DAI
1.3953%
35
Equalizer
0X21BE370D5312F44CB42CE377BC9B8A0CEF1A4C83-0X8D11EC38A3EB5E956B052F67DA8BDC9BEF8ABF3E$0.9984
0.0000433 Btc
$510,708.00
857,145.838 0X21BE370D5312F44CB42CE377BC9B8A0CEF1A4C83
2.0315%
36
Uniswap (Polygon)
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$0.9998
0.0000434 Btc
$503,615.00
503,683.604 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
1.1938%
37
Kyberswap Elastic (Arbitrum)
0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1-0XFD086BC7CD5C481DCC9C85EBE478A1C0B69FCBB9$1.00
0.0000434 Btc
$473,149.00
473,091.378 0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1
1.1213%
38
KuCoin
USDT-DAI$0.9987
0.0000433 Btc
$442,087.00
442,352.326 USDT
1.0484%
39
Uniswap (Arbitrum One)
0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1-0XFF970A61A04B1CA14834A43F5DE4533EBDDB5CC8$1.001
0.0000434 Btc
$368,504.00
368,424.020 0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1
0.8732%
40
Bithumb
DAI-KRW$1.009
0.0000435 Btc
$332,639.00
329,692.880 DAI
0.7814%
41
Cryptology
BTC-DAI$0.9997
0.0000433 Btc
$323,994.00
14.048 BTC
0.0000%
42
Quickswap
0XE5417AF564E4BFDA1C483642DB72007871397896-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.005
0.0000436 Btc
$307,236.00
42,607.924 0XE5417AF564E4BFDA1C483642DB72007871397896
0.1010%
43
Bybit
BIT-DAI$0.9987
0.0000433 Btc
$276,864.00
504,502.480 BIT
1.1957%
44
Osmosis
IBC/0CD3A0285E1341859B5E86B6AB7682F023D03E97607CCC1DC95706411D866DF7-UOSMO$1.008
0.0000437 Btc
$242,703.00
240,893.564 IBC/0CD3A0285E1341859B5E86B6AB7682F023D03E97607CCC1DC95706411D866DF7
0.5709%
45
Bitget
DAI-USDC$0.9994
0.0000433 Btc
$214,824.00
214,885.000 DAI
0.5093%
46
Balancer (v2)
0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2-DAI$1.00
0.0000434 Btc
$196,044.00
119.337 0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2
0.0003%
47
Balancer (v2)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-ETH$0.9982
0.0000433 Btc
$188,706.00
189,040.455 0X6B175474E89094C44DA98B954EEDEAC495271D0F
0.4480%
48
Cryptology
XRP-DAI$0.9999
0.0000433 Btc
$175,813.00
441,210.343 XRP
1.0457%
49
ApeSwap (Polygon)
0X0D500B1D8E8EF31E21C99D1DB9A6444D3ADF1270-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$0.9999
0.0000434 Btc
$171,354.00
138,263.179 0X0D500B1D8E8EF31E21C99D1DB9A6444D3ADF1270
0.3277%
50
Uniswap (v2)
0X40803CEA2B2A32BDA1BE61D3604AF6A814E70976-0X6B175474E89094C44DA98B954EEDEAC495271D0F$0.9987
0.0000433 Btc
$161,060.00
641,815.061 0X40803CEA2B2A32BDA1BE61D3604AF6A814E70976
1.5211%
51
Uniswap (v2)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XB53ECF1345CABEE6EA1A65100EBB153CEBCAC40F$0.9987
0.0000433 Btc
$145,919.00
147,389.049 0X6B175474E89094C44DA98B954EEDEAC495271D0F
0.3493%
52
Kyberswap Elastic (Optimism)
0X7F5C764CBC14F9669B88837CA1490CCA17C31607-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$1.00
0.0000434 Btc
$144,497.00
144,489.886 0X7F5C764CBC14F9669B88837CA1490CCA17C31607
0.3424%
53
Sushiswap
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2$1.004
0.0000435 Btc
$142,447.00
143,846.646 0X6B175474E89094C44DA98B954EEDEAC495271D0F
0.3409%
54
Quickswap (v3)
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.00
0.0000434 Btc
$142,298.00
142,255.273 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.3372%
55
Tokpie
DAI-USDC$1.001
0.0000434 Btc
$138,220.00
138,124.980 DAI
0.3274%
56
Kyberswap Elastic (Polygon)
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.00
0.0000434 Btc
$131,604.00
131,599.578 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.3119%
57
Huobi
DAI-USDT$0.9991
0.0000433 Btc
$121,244.00
121,396.947 DAI
0.2877%
58
Camelot
0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1-0XFF970A61A04B1CA14834A43F5DE4533EBDDB5CC8$1.006
0.0000436 Btc
$106,067.00
105,453.266 0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1
0.2499%
59
Bybit
DAI-USDT$0.9998
0.0000434 Btc
$101,408.00
101,432.070 DAI
0.2404%
60
Binance
BNB-DAI$0.9996
0.0000433 Btc
$99,451.00
304.814 BNB
0.0007%
61
BitMart
DAI-USDC$0.9999
0.0000434 Btc
$96,303.00
96,315.600 DAI
0.2283%
62
Bitfinex
DAI-ETH$1.001
0.0000434 Btc
$73,525.00
73,416.366 DAI
0.1740%
63
Platypus Finance
0XA7D7079B0FEAD91F3E65F86E8915CB59C1A4C664-0XD586E7F844CEA2F87F50152665BCBC2C279D8D70$1.00
0.0000434 Btc
$70,996.00
70,989.075 0XA7D7079B0FEAD91F3E65F86E8915CB59C1A4C664
0.1682%
64
Velodrome Finance
0X7F5C764CBC14F9669B88837CA1490CCA17C31607-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$1.00
0.0000434 Btc
$69,539.00
69,528.583 0X7F5C764CBC14F9669B88837CA1490CCA17C31607
0.1648%
65
EXMO
DAI-ETH$0.9943
0.0000431 Btc
$62,502.00
62,859.855 DAI
0.1490%
66
Quickswap
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.005
0.0000436 Btc
$55,287.00
54,977.347 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.1303%
67
Bancor (V3)
DAI-BNT$0.988
0.0000428 Btc
$45,192.00
46,130.276 DAI
0.1093%
68
Uniswap (v3)
0X03AB458634910AAD20EF5F1C8EE96F1D6AC54919-0X6B175474E89094C44DA98B954EEDEAC495271D0F$1.004
0.0000435 Btc
$43,653.00
15,674.966 0X03AB458634910AAD20EF5F1C8EE96F1D6AC54919
0.0372%
69
Gate.io
DAI-USDT$0.9992
0.0000433 Btc
$37,622.00
37,563.881 DAI
0.0890%
70
Uniswap (Polygon)
0XA3FA99A148FA48D14ED51D610C367C61876997F1-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$0.9999
0.0000434 Btc
$36,174.00
36,497.155 0XA3FA99A148FA48D14ED51D610C367C61876997F1
0.0865%
71
PancakeSwap (v2)
0X1AF3F329E8BE154074D8769D1FFA4EE058B1DBC3-BUSD$1.002
0.0000434 Btc
$35,588.00
35,597.035 0X1AF3F329E8BE154074D8769D1FFA4EE058B1DBC3
0.0844%
72
ZigZag (zkSync v1)
ETH-DAI$0.9987
0.0000433 Btc
$33,914.00
20.359 ETH
0.0000%
73
Crypto.com Exchange
DAI-USD$0.9976
0.0000432 Btc
$30,815.00
30,888.400 DAI
0.0732%
74
Bitso
DAI-MXN$0.9981
0.0000433 Btc
$30,496.00
30,554.899 DAI
0.0724%
75
Uniswap (v2)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XBE56AB825FD35678A32DC35BC4EB17E238E1404F$0.9987
0.0000433 Btc
$29,559.00
30,865.508 0X6B175474E89094C44DA98B954EEDEAC495271D0F
0.0732%
76
Beethoven X
0X04068DA6C83AFCFA0E13BA15A6696662335D5B75-DAI$1.004
0.0000435 Btc
$28,800.00
28,689.504 0X04068DA6C83AFCFA0E13BA15A6696662335D5B75
0.0680%
77
Beethoven X
0X8D11EC38A3EB5E956B052F67DA8BDC9BEF8ABF3E-USDC$1.00
0.0000434 Btc
$28,704.00
28,693.110 0X8D11EC38A3EB5E956B052F67DA8BDC9BEF8ABF3E
0.0680%
78
Crypto.com Exchange
DAI-USDT$0.9976
0.0000432 Btc
$26,823.00
26,887.500 DAI
0.0637%
79
Bitkub
DAI-THB$0.9937
0.0000431 Btc
$24,501.00
24,656.399 DAI
0.0584%
80
Gemini
DAI-USD$0.9999
0.0000433 Btc
$22,866.00
22,867.829 DAI
0.0542%
81
Quickswap (v3)
0XA3FA99A148FA48D14ED51D610C367C61876997F1-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.00
0.0000434 Btc
$21,004.00
21,185.466 0XA3FA99A148FA48D14ED51D610C367C61876997F1
0.0502%
82
Sushiswap (Polygon POS)
0X7CEB23FD6BC0ADD59E62AC25578270CFF1B9F619-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.001
0.0000434 Btc
$20,398.00
12.299 0X7CEB23FD6BC0ADD59E62AC25578270CFF1B9F619
0.0000%
83
Balancer (Arbitrum)
0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1-0XF0B5CEEFC89684889E5F7E0A7775BD100FCD3709$0.9987
0.0000433 Btc
$19,917.42
19,943.341 0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1
0.0473%
84
Balancer (Arbitrum)
0XF0B5CEEFC89684889E5F7E0A7775BD100FCD3709-DAI$0.9987
0.0000433 Btc
$19,891.39
20,308.423 0XF0B5CEEFC89684889E5F7E0A7775BD100FCD3709
0.0481%
85
Balancer (Arbitrum)
0XF0B5CEEFC89684889E5F7E0A7775BD100FCD3709-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$0.9987
0.0000433 Btc
$19,891.39
20,308.423 0XF0B5CEEFC89684889E5F7E0A7775BD100FCD3709
0.0481%
86
Bitfinex
DAI-USD$1.001
0.0000434 Btc
$18,250.23
18,241.113 DAI
0.0432%
87
CoinEx
DAI-USDT$0.9978
0.0000433 Btc
$17,444.09
17,484.613 DAI
0.0414%
88
Platypus Finance
0XD586E7F844CEA2F87F50152665BCBC2C279D8D70-0XC7198437980C041C805A1EDCBA50C1CE5DB95118$1.00
0.0000434 Btc
$17,437.76
17,436.151 0XD586E7F844CEA2F87F50152665BCBC2C279D8D70
0.0413%
89
Platypus Finance
0XC7198437980C041C805A1EDCBA50C1CE5DB95118-0XD586E7F844CEA2F87F50152665BCBC2C279D8D70$1.00
0.0000434 Btc
$17,434.90
17,432.882 0XC7198437980C041C805A1EDCBA50C1CE5DB95118
0.0413%
90
Fameex
DAI-USDT$0.9993
0.0000433 Btc
$16,170.84
16,184.330 DAI
0.0384%
91
Uniswap (Optimism)
0X7F5C764CBC14F9669B88837CA1490CCA17C31607-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$0.9996
0.0000433 Btc
$15,712.93
15,713.405 0X7F5C764CBC14F9669B88837CA1490CCA17C31607
0.0372%
92
Balancer (Polygon)
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-DAI$0.9998
0.0000434 Btc
$14,669.35
14,671.352 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.0348%
93
Balancer (Polygon)
0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063-USDC$0.9994
0.0000433 Btc
$14,667.74
14,677.288 0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063
0.0348%
94
Uniswap (v3)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2$1.004
0.0000435 Btc
$12,893.74
12,937.933 0X6B175474E89094C44DA98B954EEDEAC495271D0F
0.0307%
95
Coinbase Exchange
ETH-DAI$0.9987
0.0000433 Btc
$11,479.87
7.039 ETH
0.0000%
96
Uniswap (v2)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XEEF9F339514298C6A857EFCFC1A762AF84438DEE$0.991
0.0000430 Btc
$9,277.61
9,385.685 0X6B175474E89094C44DA98B954EEDEAC495271D0F
0.0222%
97
Balancer (Polygon)
0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063-USDT$0.9998
0.0000434 Btc
$7,465.66
7,466.882 0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063
0.0177%
98
Balancer (Polygon)
0XC2132D05D31C914A87C6611C10748AEB04B58E8F-DAI$0.9994
0.0000433 Btc
$7,462.73
7,465.921 0XC2132D05D31C914A87C6611C10748AEB04B58E8F
0.0177%
99
Bancor (V2)
DAI-BNT$0.9805
0.0000425 Btc
$5,133.23
5,235.294 DAI
0.0124%
100
Bitstamp
DAI-USD$0.9852
0.0000427 Btc
$524.14
532.035 DAI
0.0013%
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