Token (PoS) Dai Stablecoin

 

Overview ERC-20

Price
$1.00 @ 1.090869 MATIC (+0.09%)
Fully Diluted Market Cap
Total Supply:
138,409,903.172545 DAI

Holders:
739,415 addresses
 
Balance
0 DAI

Value
$0.00
0x747ca36e8ac6ba9a452f7e2fbf234b1153216250
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):$210,238,920.00
Market Capitalization:$5,221,926,162.00
Circulating Supply:5,220,108,295.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.001
0.0000585 Btc
$22,680,167.00
17,985.811 ETH
0.0236%
2
Kyberswap Elastic (Arbitrum)
0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1-0XFF970A61A04B1CA14834A43F5DE4533EBDDB5CC8$1.001
0.0000585 Btc
$16,117,548.00
16,107,693.933 0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1
21.1023%
3
BitMart
BTC-DAI$1.001
0.0000585 Btc
$14,573,270.00
851.281 BTC
0.0011%
4
Uniswap (v3)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2$1.002
0.0000585 Btc
$9,180,735.00
8,794,999.723 0X6B175474E89094C44DA98B954EEDEAC495271D0F
11.5221%
5
XT.COM
ETH-DAI$1.001
0.0000585 Btc
$6,286,500.00
4,990.884 ETH
0.0065%
6
Kyberswap Elastic (Optimism)
0X7F5C764CBC14F9669B88837CA1490CCA17C31607-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$1.001
0.0000585 Btc
$5,578,659.00
5,574,977.992 0X7F5C764CBC14F9669B88837CA1490CCA17C31607
7.3037%
7
Kyberswap Elastic (Arbitrum)
0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1-0XFD086BC7CD5C481DCC9C85EBE478A1C0B69FCBB9$1.001
0.0000585 Btc
$4,905,511.00
4,902,881.362 0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1
6.4232%
8
Binance
BUSD-DAI$1.00
0.0000584 Btc
$4,685,284.00
4,685,401.357 BUSD
6.1382%
9
XT.COM
BTC-DAI$1.001
0.0000585 Btc
$4,130,221.00
242.667 BTC
0.0003%
10
BKEX
USDT-DAI$1.001
0.0000585 Btc
$3,986,989.00
3,983,391.725 USDT
5.2186%
11
Uniswap (v3)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48$1.002
0.0000586 Btc
$3,891,511.00
3,881,615.281 0X6B175474E89094C44DA98B954EEDEAC495271D0F
5.0852%
12
Binance
ETH-DAI$1.001
0.0000585 Btc
$3,858,570.00
3,022.918 ETH
0.0040%
13
Binance
USDT-DAI$1.00
0.0000584 Btc
$3,412,168.00
3,411,571.622 USDT
4.4694%
14
BitMart
ETH-DAI$1.001
0.0000585 Btc
$3,166,163.00
2,479.805 ETH
0.0032%
15
Kyberswap Elastic (Polygon)
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.001
0.0000585 Btc
$2,320,864.00
2,319,244.486 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
3.0384%
16
Kyberswap Elastic (Polygon)
0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063-0XC2132D05D31C914A87C6611C10748AEB04B58E8F$1.001
0.0000585 Btc
$2,296,401.00
2,294,639.923 0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063
3.0062%
17
Uniswap (Optimism)
0X7F5C764CBC14F9669B88837CA1490CCA17C31607-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$1.001
0.0000585 Btc
$2,239,361.00
2,236,324.000 0X7F5C764CBC14F9669B88837CA1490CCA17C31607
2.9298%
18
Uniswap (v3)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2$1.002
0.0000585 Btc
$1,928,864.00
1,902,904.391 0X6B175474E89094C44DA98B954EEDEAC495271D0F
2.4930%
19
Binance
BTC-DAI$1.00
0.0000584 Btc
$1,755,703.00
102.600 BTC
0.0001%
20
Kyberswap Elastic (Optimism)
0X94B008AA00579C1307B0EF2C499AD98A8CE58E58-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$1.00
0.0000585 Btc
$1,747,741.00
1,746,694.980 0X94B008AA00579C1307B0EF2C499AD98A8CE58E58
2.2883%
21
Uniswap (Optimism)
0X94B008AA00579C1307B0EF2C499AD98A8CE58E58-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$1.001
0.0000585 Btc
$1,539,808.00
1,537,516.418 0X94B008AA00579C1307B0EF2C499AD98A8CE58E58
2.0143%
22
OKX
BTC-DAI$1.001
0.0000585 Btc
$1,204,778.00
70.777 BTC
0.0001%
23
WhiteBIT
DAI-USDT$1.001
0.0000585 Btc
$1,204,397.00
1,203,586.560 DAI
1.5768%
24
BitMart
DAI-USDT$1.00
0.0000585 Btc
$1,074,298.00
1,074,031.180 DAI
1.4071%
25
Coinbase Exchange
DAI-USD$1.00
0.0000585 Btc
$994,907.00
994,906.901 DAI
1.3034%
26
Binance
BNB-DAI$1.001
0.0000585 Btc
$946,333.00
3,239.946 BNB
0.0042%
27
Kraken
DAI-EUR$1.00
0.0000584 Btc
$856,695.00
856,623.143 DAI
1.1222%
28
Kraken
DAI-USD$1.00
0.0000584 Btc
$829,930.00
829,946.652 DAI
1.0873%
29
Quickswap
0XE5417AF564E4BFDA1C483642DB72007871397896-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.002
0.0000586 Btc
$690,327.00
166,627.018 0XE5417AF564E4BFDA1C483642DB72007871397896
0.2183%
30
PancakeSwap (v2)
0X1AF3F329E8BE154074D8769D1FFA4EE058B1DBC3-BUSD$1.003
0.0000586 Btc
$603,986.00
596,367.971 0X1AF3F329E8BE154074D8769D1FFA4EE058B1DBC3
0.7813%
31
BKEX
ETH-DAI$1.001
0.0000585 Btc
$586,189.00
465.375 ETH
0.0006%
32
Uniswap (Polygon)
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.001
0.0000585 Btc
$574,020.00
573,613.484 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.7515%
33
BitMart
DAI-USDC$1.001
0.0000585 Btc
$408,479.00
408,262.600 DAI
0.5349%
34
BKEX
BTC-DAI$1.001
0.0000585 Btc
$396,746.00
23.314 BTC
0.0000%
35
Quickswap (v3)
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.001
0.0000585 Btc
$392,488.00
392,213.688 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.5138%
36
Uniswap (v3)
0X03AB458634910AAD20EF5F1C8EE96F1D6AC54919-0X6B175474E89094C44DA98B954EEDEAC495271D0F$1.002
0.0000585 Btc
$385,612.00
136,576.932 0X03AB458634910AAD20EF5F1C8EE96F1D6AC54919
0.1789%
37
Uniswap (Optimism)
0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1-0X4200000000000000000000000000000000000006$1.001
0.0000585 Btc
$378,102.00
373,034.627 0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1
0.4887%
38
Azbit
DAI-USDT$1.00
0.0000585 Btc
$308,270.00
308,116.147 DAI
0.4037%
39
Uniswap (Polygon)
0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063-0XC2132D05D31C914A87C6611C10748AEB04B58E8F$1.001
0.0000585 Btc
$283,560.00
283,343.343 0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063
0.3712%
40
Uniswap (Arbitrum One)
0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1-0XFF970A61A04B1CA14834A43F5DE4533EBDDB5CC8$1.001
0.0000585 Btc
$257,145.00
256,864.996 0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1
0.3365%
41
Balancer (Arbitrum)
0XF0B5CEEFC89684889E5F7E0A7775BD100FCD3709-DAI$1.001
0.0000585 Btc
$229,066.00
238,197.259 0XF0B5CEEFC89684889E5F7E0A7775BD100FCD3709
0.3121%
42
Kraken
DAI-USDT$1.001
0.0000585 Btc
$225,376.00
225,219.196 DAI
0.2951%
43
Bybit
BIT-DAI$1.001
0.0000585 Btc
$221,618.00
723,078.100 BIT
0.9473%
44
Bitget
DAI-USDC$1.00
0.0000584 Btc
$215,852.00
215,776.000 DAI
0.2827%
45
Bybit
DAI-USDT$1.00
0.0000585 Btc
$213,738.00
213,695.310 DAI
0.2800%
46
Uniswap (Optimism)
0X4200000000000000000000000000000000000006-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$0.9958
0.0000582 Btc
$210,625.00
167.801 0X4200000000000000000000000000000000000006
0.0002%
47
DigiFinex
DAI-USDT$1.002
0.0000586 Btc
$210,557.00
210,137.133 DAI
0.2753%
48
Bitget
DAI-USDT$1.00
0.0000585 Btc
$204,862.00
204,763.000 DAI
0.2683%
49
Quickswap (v3)
0XA3FA99A148FA48D14ED51D610C367C61876997F1-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.001
0.0000585 Btc
$182,915.00
184,228.306 0XA3FA99A148FA48D14ED51D610C367C61876997F1
0.2414%
50
Sushiswap
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2$1.001
0.0000585 Btc
$175,911.00
175,044.245 0X6B175474E89094C44DA98B954EEDEAC495271D0F
0.2293%
51
Quickswap (v3)
0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063-0XC2132D05D31C914A87C6611C10748AEB04B58E8F$1.00
0.0000585 Btc
$171,357.00
171,310.553 0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063
0.2244%
52
KuCoin
USDT-DAI$0.9999
0.0000584 Btc
$145,852.00
145,715.567 USDT
0.1909%
53
Platypus Finance
0XB97EF9EF8734C71904D8002F8B6BC66DD9C48A6E-0XD586E7F844CEA2F87F50152665BCBC2C279D8D70$1.00
0.0000585 Btc
$135,557.00
135,471.823 0XB97EF9EF8734C71904D8002F8B6BC66DD9C48A6E
0.1775%
54
Platypus Finance
0XD586E7F844CEA2F87F50152665BCBC2C279D8D70-0XB97EF9EF8734C71904D8002F8B6BC66DD9C48A6E$1.00
0.0000585 Btc
$135,534.00
135,488.548 0XD586E7F844CEA2F87F50152665BCBC2C279D8D70
0.1775%
55
Velodrome Finance
0X7F5C764CBC14F9669B88837CA1490CCA17C31607-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$1.001
0.0000585 Btc
$115,644.00
115,552.861 0X7F5C764CBC14F9669B88837CA1490CCA17C31607
0.1514%
56
Huobi
DAI-USDT$1.00
0.0000585 Btc
$104,677.00
104,668.570 DAI
0.1371%
57
Uniswap (Polygon)
0XA3FA99A148FA48D14ED51D610C367C61876997F1-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.001
0.0000585 Btc
$100,537.00
101,251.704 0XA3FA99A148FA48D14ED51D610C367C61876997F1
0.1326%
58
Beethoven X
0X04068DA6C83AFCFA0E13BA15A6696662335D5B75-DAI$1.001
0.0000585 Btc
$95,300.00
95,222.251 0X04068DA6C83AFCFA0E13BA15A6696662335D5B75
0.1247%
59
Beethoven X
0X8D11EC38A3EB5E956B052F67DA8BDC9BEF8ABF3E-USDC$1.00
0.0000585 Btc
$95,270.00
95,229.154 0X8D11EC38A3EB5E956B052F67DA8BDC9BEF8ABF3E
0.1248%
60
ZigZag (zkSync v1)
DAI-USDC$1.002
0.0000585 Btc
$71,089.00
71,032.200 DAI
0.0931%
61
Uniswap (Arbitrum One)
0X82AF49447D8A07E3BD95BD0D56F35241523FBAB1-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$0.9967
0.0000582 Btc
$66,993.00
53.187 0X82AF49447D8A07E3BD95BD0D56F35241523FBAB1
0.0001%
62
Tokpie
DAI-USDC$1.001
0.0000585 Btc
$65,624.00
65,569.900 DAI
0.0859%
63
ApeSwap (Polygon)
0X0D500B1D8E8EF31E21C99D1DB9A6444D3ADF1270-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$0.9989
0.0000584 Btc
$62,704.00
68,798.196 0X0D500B1D8E8EF31E21C99D1DB9A6444D3ADF1270
0.0901%
64
CoinEx
DAI-USDT$1.002
0.0000586 Btc
$56,967.00
56,775.555 DAI
0.0744%
65
Balancer (Polygon)
0XC2132D05D31C914A87C6611C10748AEB04B58E8F-DAI$1.001
0.0000585 Btc
$56,482.00
56,445.174 0XC2132D05D31C914A87C6611C10748AEB04B58E8F
0.0739%
66
Balancer (Polygon)
0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063-USDT$1.00
0.0000585 Btc
$56,471.00
56,444.569 0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063
0.0739%
67
DeFi Swap
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2$0.9963
0.0000582 Btc
$52,285.00
52,063.150 0X6B175474E89094C44DA98B954EEDEAC495271D0F
0.0682%
68
Quickswap
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.002
0.0000586 Btc
$49,500.00
49,539.551 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.0649%
69
Uniswap (v2)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XB53ECF1345CABEE6EA1A65100EBB153CEBCAC40F$1.001
0.0000585 Btc
$45,742.00
46,222.595 0X6B175474E89094C44DA98B954EEDEAC495271D0F
0.0606%
70
Osmosis
IBC/0CD3A0285E1341859B5E86B6AB7682F023D03E97607CCC1DC95706411D866DF7-UOSMO$1.00
0.0000585 Btc
$45,577.00
45,566.189 IBC/0CD3A0285E1341859B5E86B6AB7682F023D03E97607CCC1DC95706411D866DF7
0.0597%
71
Balancer (Polygon)
0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063-USDC$1.003
0.0000586 Btc
$45,186.00
45,065.182 0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063
0.0590%
72
Balancer (Polygon)
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-DAI$1.001
0.0000585 Btc
$45,002.00
45,066.730 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.0590%
73
Bithumb
DAI-KRW$1.031
0.0000603 Btc
$42,523.00
41,228.016 DAI
0.0540%
74
Platypus Finance
0XA7D7079B0FEAD91F3E65F86E8915CB59C1A4C664-0XD586E7F844CEA2F87F50152665BCBC2C279D8D70$1.00
0.0000585 Btc
$41,821.00
41,800.862 0XA7D7079B0FEAD91F3E65F86E8915CB59C1A4C664
0.0548%
75
EXMO
DAI-ETH$1.00
0.0000584 Btc
$37,825.00
37,820.110 DAI
0.0495%
76
Bybit
BTC-DAI$1.001
0.0000585 Btc
$35,282.00
2.064 BTC
0.0000%
77
Uniswap (Optimism)
0X8C6F28F2F1A3C87F0F938B96D27520D9751EC8D9-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$1.001
0.0000585 Btc
$32,771.00
32,560.845 0X8C6F28F2F1A3C87F0F938B96D27520D9751EC8D9
0.0427%
78
KuCoin
ETH-DAI$0.9999
0.0000584 Btc
$32,194.00
25.301 ETH
0.0000%
79
Gemini
DAI-USD$0.9988
0.0000584 Btc
$27,890.00
27,922.617 DAI
0.0366%
80
Sushiswap (Polygon POS)
0X7CEB23FD6BC0ADD59E62AC25578270CFF1B9F619-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.002
0.0000585 Btc
$27,702.00
21.725 0X7CEB23FD6BC0ADD59E62AC25578270CFF1B9F619
0.0000%
81
Quickswap (v3)
0X7CEB23FD6BC0ADD59E62AC25578270CFF1B9F619-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$0.9976
0.0000583 Btc
$20,959.00
16.672 0X7CEB23FD6BC0ADD59E62AC25578270CFF1B9F619
0.0000%
82
Crypto.com Exchange
DAI-USDT$0.9995
0.0000584 Btc
$20,925.00
20,936.000 DAI
0.0274%
83
EXMO
DAI-BTC$1.00
0.0000585 Btc
$20,798.00
20,792.003 DAI
0.0272%
84
KuCoin
BTC-DAI$0.9999
0.0000584 Btc
$17,327.34
1.014 BTC
0.0000%
85
Bitvavo
DAI-EUR$0.9889
0.0000578 Btc
$14,536.10
14,699.530 DAI
0.0193%
86
Sushiswap (Polygon POS)
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.003
0.0000586 Btc
$14,432.33
14,244.782 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.0187%
87
Bancor (V3)
DAI-BNT$1.001
0.0000585 Btc
$12,953.40
13,078.258 DAI
0.0171%
88
Coinbase Exchange
ETH-DAI$1.001
0.0000585 Btc
$11,952.97
9.345 ETH
0.0000%
89
Bybit
ETH-DAI$1.001
0.0000585 Btc
$10,834.15
8.474 ETH
0.0000%
90
Gate.io
DAI-USDT$0.9998
0.0000584 Btc
$10,092.79
10,109.308 DAI
0.0132%
91
SpiritSwap
0X04068DA6C83AFCFA0E13BA15A6696662335D5B75-0X8D11EC38A3EB5E956B052F67DA8BDC9BEF8ABF3E$1.001
0.0000585 Btc
$8,374.53
8,343.964 0X04068DA6C83AFCFA0E13BA15A6696662335D5B75
0.0109%
92
ApeSwap (Polygon)
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$0.9989
0.0000584 Btc
$7,950.58
7,955.507 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.0104%
93
ProBit Global
DAI-USDT$1.001
0.0000585 Btc
$5,496.72
5,492.998 DAI
0.0072%
94
Quickswap
0X7CEB23FD6BC0ADD59E62AC25578270CFF1B9F619-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.004
0.0000587 Btc
$5,038.42
3.981 0X7CEB23FD6BC0ADD59E62AC25578270CFF1B9F619
0.0000%
95
ArthSwap
0X6DE33698E9E9B787E09D3BD7771EF63557E148BB-0X6A2D262D56735DBA19DD70682B39F6BE9A931D98$1.001
0.0000585 Btc
$4,386.15
4,404.874 0X6DE33698E9E9B787E09D3BD7771EF63557E148BB
0.0058%
96
Bitstamp
DAI-USD$0.9955
0.0000582 Btc
$4,132.97
4,151.691 DAI
0.0054%
97
Bitso
DAI-MXN$0.9999
0.0000584 Btc
$4,132.11
4,132.455 DAI
0.0054%
98
Bitfinex
DAI-BTC$1.001
0.0000585 Btc
$3,730.70
3,727.153 DAI
0.0049%
99
Uniswap (v2)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0X9393FDC77090F31C7DB989390D43F454B1A6E7F3$0.9615
0.0000562 Btc
$1,390.53
1,441.722 0X6B175474E89094C44DA98B954EEDEAC495271D0F
0.0019%
100
Kuna Exchange
DAI-UAH$1.077
0.0000629 Btc
$141.08
130.980 DAI
0.0002%
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