Token Dai Stablecoin

 

Overview ERC20

Price
$1.00 @ 0.000630 ETH (+0.07%)
Fully Diluted Market Cap
Total Supply:
69,735,663.147959 DAI

Holders:
79,628 addresses
Balance
4.261015330748361595 DAI

Value
$4.26 ( ~0.00268307583783137 ETH) [0.0000%]
0xabb7c3673a543bc326e7cf249dc2570e915970d4
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):$172,929,559.00
Market Capitalization:$5,138,400,635.00
Circulating Supply:5,137,217,778.00 DAI
Market Data Source: Coinmarketcap


Update? Click here to update the token ICO / general information
# Exchange Pair Price  24H Volume % Volume
1
BitMart
ETH-DAI$0.9997
0.0000434 Btc
$16,192,241.00
10,209.007 ETH
0.0088%
2
BitMart
BTC-DAI$0.9997
0.0000434 Btc
$10,752,076.00
467.394 BTC
0.0004%
3
Uniswap (v3)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48$1.002
0.0000436 Btc
$7,264,302.00
7,250,524.181 0X6B175474E89094C44DA98B954EEDEAC495271D0F
6.2204%
4
Balancer (v2)
0XAE37D54AE477268B9997D4161B96B8200755935C-0X6B175474E89094C44DA98B954EEDEAC495271D0F$1.001
0.0000435 Btc
$7,137,098.00
7,112,608.213 0XAE37D54AE477268B9997D4161B96B8200755935C
6.1021%
5
Uniswap (v3)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2$1.004
0.0000436 Btc
$5,384,812.00
5,391,930.371 0X6B175474E89094C44DA98B954EEDEAC495271D0F
4.6259%
6
XT.COM
BTC-DAI$0.9997
0.0000434 Btc
$4,454,750.00
193.088 BTC
0.0002%
7
Kraken
DAI-EUR$1.00
0.0000435 Btc
$4,024,943.00
4,024,032.721 DAI
3.4523%
8
Kraken
DAI-USD$0.9997
0.0000434 Btc
$3,673,232.00
3,674,297.107 DAI
3.1523%
9
Uniswap (v3)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XDAC17F958D2EE523A2206206994597C13D831EC7$1.004
0.0000437 Btc
$3,446,993.00
3,435,446.770 0X6B175474E89094C44DA98B954EEDEAC495271D0F
2.9474%
10
BKEX
USDT-DAI$0.9997
0.0000434 Btc
$3,378,971.00
3,378,199.947 USDT
2.8982%
11
OKX
BTC-DAI$0.9997
0.0000434 Btc
$3,038,672.00
131.737 BTC
0.0001%
12
PancakeSwap (v2)
0X1AF3F329E8BE154074D8769D1FFA4EE058B1DBC3-BUSD$0.9993
0.0000434 Btc
$3,032,709.00
3,105,356.094 0X1AF3F329E8BE154074D8769D1FFA4EE058B1DBC3
2.6642%
13
Binance
USDT-DAI$0.9997
0.0000434 Btc
$2,885,374.00
2,884,509.577 USDT
2.4747%
14
Binance
BTC-DAI$0.9997
0.0000434 Btc
$2,510,156.00
109.212 BTC
0.0001%
15
Uniswap (v3)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2$1.004
0.0000436 Btc
$2,347,989.00
2,350,198.287 0X6B175474E89094C44DA98B954EEDEAC495271D0F
2.0163%
16
BKEX
BTC-DAI$0.9997
0.0000434 Btc
$2,188,996.00
94.711 BTC
0.0001%
17
Balancer (v2)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-USDC$1.001
0.0000435 Btc
$2,089,318.00
2,086,994.933 0X6B175474E89094C44DA98B954EEDEAC495271D0F
1.7905%
18
Balancer (v2)
0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48-DAI$1.001
0.0000435 Btc
$2,083,894.00
2,081,679.943 0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48
1.7859%
19
Binance
ETH-DAI$0.9997
0.0000434 Btc
$1,761,588.00
1,110.002 ETH
0.0010%
20
OKX
ETH-DAI$0.9997
0.0000434 Btc
$1,590,185.00
999.335 ETH
0.0009%
21
BKEX
ETH-DAI$0.9997
0.0000434 Btc
$1,581,640.00
995.128 ETH
0.0009%
22
Bitrue
DAI-USDT$1.00
0.0000435 Btc
$1,218,795.00
1,218,638.700 DAI
1.0455%
23
Kraken
DAI-USDT$0.9999
0.0000435 Btc
$1,206,411.00
1,206,558.134 DAI
1.0351%
24
WhiteBIT
DAI-USDT$1.00
0.0000435 Btc
$1,156,043.00
1,155,969.310 DAI
0.9917%
25
Uniswap (Polygon)
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.001
0.0000435 Btc
$1,063,225.00
1,062,178.049 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.9113%
26
Uniswap (Arbitrum One)
0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1-0XFF970A61A04B1CA14834A43F5DE4533EBDDB5CC8$1.002
0.0000436 Btc
$1,046,657.00
1,045,022.710 0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1
0.8966%
27
Coinbase Exchange
DAI-USD$0.9997
0.0000434 Btc
$1,046,243.00
1,046,556.945 DAI
0.8979%
28
Uniswap (Optimism)
0X4200000000000000000000000000000000000006-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$1.001
0.0000435 Btc
$968,633.00
607.018 0X4200000000000000000000000000000000000006
0.0005%
29
BitMart
DAI-USDT$1.00
0.0000435 Btc
$949,077.00
949,054.000 DAI
0.8142%
30
Uniswap (Optimism)
0X7F5C764CBC14F9669B88837CA1490CCA17C31607-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$1.003
0.0000436 Btc
$914,603.00
911,669.996 0X7F5C764CBC14F9669B88837CA1490CCA17C31607
0.7821%
31
Kyberswap Elastic (Arbitrum)
0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1-0XFF970A61A04B1CA14834A43F5DE4533EBDDB5CC8$1.005
0.0000437 Btc
$839,984.00
835,852.138 0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1
0.7171%
32
Cryptology
BTC-DAI$1.001
0.0000435 Btc
$833,896.00
36.234 BTC
0.0000%
33
Uniswap (Optimism)
0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1-0X4200000000000000000000000000000000000006$1.001
0.0000435 Btc
$752,790.00
756,340.153 0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1
0.6489%
34
XT.COM
ETH-DAI$0.9997
0.0000434 Btc
$722,098.00
453.720 ETH
0.0004%
35
Biswap
0X1AF3F329E8BE154074D8769D1FFA4EE058B1DBC3-0X55D398326F99059FF775485246999027B3197955$0.9988
0.0000434 Btc
$568,030.00
582,205.915 0X1AF3F329E8BE154074D8769D1FFA4EE058B1DBC3
0.4995%
36
Equalizer
0X21BE370D5312F44CB42CE377BC9B8A0CEF1A4C83-0X8D11EC38A3EB5E956B052F67DA8BDC9BEF8ABF3E$0.9956
0.0000432 Btc
$519,517.00
1,111,012.835 0X21BE370D5312F44CB42CE377BC9B8A0CEF1A4C83
0.9532%
37
Quickswap
0XE5417AF564E4BFDA1C483642DB72007871397896-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.00
0.0000435 Btc
$440,356.00
71,498.226 0XE5417AF564E4BFDA1C483642DB72007871397896
0.0613%
38
Uniswap (v3)
0X419D0D8BDD9AF5E606AE2232ED285AFF190E711B-0X6B175474E89094C44DA98B954EEDEAC495271D0F$1.004
0.0000436 Btc
$351,995.00
51,537,729.764 0X419D0D8BDD9AF5E606AE2232ED285AFF190E711B
44.2155%
39
Kyberswap Elastic (Optimism)
0X7F5C764CBC14F9669B88837CA1490CCA17C31607-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$1.001
0.0000435 Btc
$334,415.00
334,033.567 0X7F5C764CBC14F9669B88837CA1490CCA17C31607
0.2866%
40
Bitget
DAI-USDT$0.9995
0.0000434 Btc
$318,392.00
318,532.000 DAI
0.2733%
41
Osmosis
IBC/0CD3A0285E1341859B5E86B6AB7682F023D03E97607CCC1DC95706411D866DF7-UOSMO$1.002
0.0000435 Btc
$315,362.00
314,796.099 IBC/0CD3A0285E1341859B5E86B6AB7682F023D03E97607CCC1DC95706411D866DF7
0.2701%
42
Equalizer
0X04068DA6C83AFCFA0E13BA15A6696662335D5B75-0X8D11EC38A3EB5E956B052F67DA8BDC9BEF8ABF3E$0.9998
0.0000434 Btc
$314,561.00
314,605.115 0X04068DA6C83AFCFA0E13BA15A6696662335D5B75
0.2699%
43
KuCoin
USDT-DAI$0.9997
0.0000434 Btc
$296,313.00
296,165.403 USDT
0.2541%
44
ApeSwap (Polygon)
0X0D500B1D8E8EF31E21C99D1DB9A6444D3ADF1270-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.00
0.0000435 Btc
$281,031.00
247,293.152 0X0D500B1D8E8EF31E21C99D1DB9A6444D3ADF1270
0.2122%
45
Bybit
BIT-DAI$0.9997
0.0000435 Btc
$262,724.00
451,241.970 BIT
0.3871%
46
Quickswap (v3)
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.001
0.0000435 Btc
$252,958.00
252,721.520 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.2168%
47
Cryptology
XRP-DAI$1.001
0.0000435 Btc
$235,338.00
572,210.000 XRP
0.4909%
48
Bitget
DAI-USDC$1.001
0.0000435 Btc
$234,652.00
234,600.000 DAI
0.2013%
49
Sushiswap
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2$1.005
0.0000437 Btc
$230,743.00
230,811.031 0X6B175474E89094C44DA98B954EEDEAC495271D0F
0.1980%
50
Kyberswap Elastic (Polygon)
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.001
0.0000435 Btc
$222,988.00
222,762.180 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.1911%
51
Gemini
DAI-USD$0.999
0.0000434 Btc
$176,011.00
176,187.377 DAI
0.1512%
52
BitMart
DAI-USDC$1.001
0.0000435 Btc
$167,653.00
167,561.200 DAI
0.1438%
53
Bybit
DAI-USDT$0.9996
0.0000435 Btc
$152,295.00
152,358.440 DAI
0.1307%
54
Tokpie
DAI-USDC$1.001
0.0000435 Btc
$146,440.00
146,309.440 DAI
0.1255%
55
Uniswap (Polygon)
0XA3FA99A148FA48D14ED51D610C367C61876997F1-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.001
0.0000435 Btc
$139,395.00
140,305.693 0XA3FA99A148FA48D14ED51D610C367C61876997F1
0.1204%
56
Platypus Finance
0XB97EF9EF8734C71904D8002F8B6BC66DD9C48A6E-0XD586E7F844CEA2F87F50152665BCBC2C279D8D70$1.00
0.0000435 Btc
$134,234.00
134,184.505 0XB97EF9EF8734C71904D8002F8B6BC66DD9C48A6E
0.1151%
57
Platypus Finance
0XD586E7F844CEA2F87F50152665BCBC2C279D8D70-0XB97EF9EF8734C71904D8002F8B6BC66DD9C48A6E$1.00
0.0000435 Btc
$134,232.00
134,187.239 0XD586E7F844CEA2F87F50152665BCBC2C279D8D70
0.1151%
58
Quickswap (v3)
0XA3FA99A148FA48D14ED51D610C367C61876997F1-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.001
0.0000435 Btc
$131,024.00
131,900.788 0XA3FA99A148FA48D14ED51D610C367C61876997F1
0.1132%
59
Camelot
0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1-0XFF970A61A04B1CA14834A43F5DE4533EBDDB5CC8$1.009
0.0000438 Btc
$118,346.00
117,327.842 0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1
0.1007%
60
Bithumb
DAI-KRW$1.024
0.0000445 Btc
$104,467.00
101,983.543 DAI
0.0875%
61
MEXC Global
DAI-USDT$0.9994
0.0000434 Btc
$101,544.00
101,606.680 DAI
0.0872%
62
Balancer (Arbitrum)
0XF0B5CEEFC89684889E5F7E0A7775BD100FCD3709-DAI$0.9997
0.0000434 Btc
$96,090.00
98,347.136 0XF0B5CEEFC89684889E5F7E0A7775BD100FCD3709
0.0844%
63
Quickswap
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.00
0.0000435 Btc
$87,388.00
87,249.043 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.0749%
64
Platypus Finance
0XC7198437980C041C805A1EDCBA50C1CE5DB95118-0XD586E7F844CEA2F87F50152665BCBC2C279D8D70$1.00
0.0000435 Btc
$74,641.00
74,590.164 0XC7198437980C041C805A1EDCBA50C1CE5DB95118
0.0640%
65
Platypus Finance
0XD586E7F844CEA2F87F50152665BCBC2C279D8D70-0XC7198437980C041C805A1EDCBA50C1CE5DB95118$1.00
0.0000435 Btc
$74,618.00
74,612.529 0XD586E7F844CEA2F87F50152665BCBC2C279D8D70
0.0640%
66
Binance
BNB-DAI$0.9998
0.0000435 Btc
$68,324.00
221.517 BNB
0.0002%
67
Huobi
DAI-USDT$0.9996
0.0000435 Btc
$65,655.00
65,706.438 DAI
0.0564%
68
EXMO
DAI-ETH$1.003
0.0000436 Btc
$64,999.00
64,794.207 DAI
0.0556%
69
KuCoin
BTC-DAI$0.9997
0.0000434 Btc
$64,980.00
2.825 BTC
0.0000%
70
Balancer (v2)
0XDAC17F958D2EE523A2206206994597C13D831EC7-DAI$0.9997
0.0000434 Btc
$64,316.00
64,319.658 0XDAC17F958D2EE523A2206206994597C13D831EC7
0.0552%
71
Bitso
DAI-MXN$1.001
0.0000435 Btc
$51,809.00
51,771.688 DAI
0.0444%
72
Velodrome Finance
0X7F5C764CBC14F9669B88837CA1490CCA17C31607-0XDA10009CBD5D07DD0CECC66161FC93D7C9000DA1$1.001
0.0000435 Btc
$50,412.00
50,349.596 0X7F5C764CBC14F9669B88837CA1490CCA17C31607
0.0432%
73
Kraken
ETH-DAI$1.003
0.0000436 Btc
$45,692.00
28.617 ETH
0.0000%
74
KuCoin
ETH-DAI$0.9997
0.0000434 Btc
$42,723.00
26.993 ETH
0.0000%
75
Balancer (v2)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-ETH$1.001
0.0000435 Btc
$36,401.00
36,346.440 0X6B175474E89094C44DA98B954EEDEAC495271D0F
0.0312%
76
Balancer (v2)
0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2-DAI$1.001
0.0000435 Btc
$36,352.00
22.850 0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2
0.0000%
77
EXMO
DAI-BTC$1.003
0.0000436 Btc
$33,142.00
33,032.790 DAI
0.0283%
78
Platypus Finance
0X9702230A8EA53601F5CD2DC00FDBC13D4DF4A8C7-0XD586E7F844CEA2F87F50152665BCBC2C279D8D70$1.00
0.0000435 Btc
$31,733.00
31,715.441 0X9702230A8EA53601F5CD2DC00FDBC13D4DF4A8C7
0.0272%
79
Sushiswap (Polygon POS)
0X7CEB23FD6BC0ADD59E62AC25578270CFF1B9F619-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$0.9995
0.0000434 Btc
$30,868.00
19.337 0X7CEB23FD6BC0ADD59E62AC25578270CFF1B9F619
0.0000%
80
ZigZag (zkSync v1)
DAI-USDT$1.004
0.0000436 Btc
$24,334.00
24,318.800 DAI
0.0209%
81
CoinEx
DAI-USDT$0.9975
0.0000433 Btc
$21,860.00
21,915.316 DAI
0.0188%
82
Uniswap (Polygon)
0X338EB4D394A4327E5DB80D08628FA56EA2FD4B81-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.001
0.0000435 Btc
$20,820.00
18,571.658 0X338EB4D394A4327E5DB80D08628FA56EA2FD4B81
0.0159%
83
Uniswap (v2)
0X6B175474E89094C44DA98B954EEDEAC495271D0F-0XB53ECF1345CABEE6EA1A65100EBB153CEBCAC40F$0.9997
0.0000435 Btc
$18,860.48
18,852.392 0X6B175474E89094C44DA98B954EEDEAC495271D0F
0.0162%
84
Crypto.com Exchange
DAI-USDT$0.9986
0.0000434 Btc
$18,158.23
18,184.000 DAI
0.0156%
85
Emirex
USDT-DAI$0.9997
0.0000434 Btc
$17,458.39
17,449.670 USDT
0.0150%
86
Balancer (Polygon)
0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063-USDC$1.003
0.0000436 Btc
$16,775.39
16,728.599 0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063
0.0144%
87
Balancer (Polygon)
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-DAI$0.9998
0.0000434 Btc
$16,684.45
16,722.355 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.0143%
88
Beethoven X
0X04068DA6C83AFCFA0E13BA15A6696662335D5B75-DAI$1.003
0.0000436 Btc
$15,230.45
15,171.912 0X04068DA6C83AFCFA0E13BA15A6696662335D5B75
0.0130%
89
Beethoven X
0X8D11EC38A3EB5E956B052F67DA8BDC9BEF8ABF3E-USDC$0.9998
0.0000435 Btc
$15,171.66
15,174.409 0X8D11EC38A3EB5E956B052F67DA8BDC9BEF8ABF3E
0.0130%
90
Bybit
ETH-DAI$0.9997
0.0000435 Btc
$12,462.18
7.849 ETH
0.0000%
91
Bitkub
DAI-THB$0.9908
0.0000431 Btc
$12,351.59
12,465.899 DAI
0.0107%
92
Balancer (Polygon)
0XC2132D05D31C914A87C6611C10748AEB04B58E8F-DAI$1.001
0.0000435 Btc
$11,943.48
11,925.678 0XC2132D05D31C914A87C6611C10748AEB04B58E8F
0.0102%
93
Balancer (Polygon)
0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063-USDT$0.9998
0.0000434 Btc
$11,927.60
11,929.839 0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063
0.0102%
94
ApeSwap (Polygon)
0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174-0X8F3CF7AD23CD3CADBD9735AFF958023239C6A063$1.00
0.0000435 Btc
$11,356.10
11,348.094 0X2791BCA1F2DE4661ED88A30C99A7A9449AA84174
0.0097%
95
Bitso
BTC-DAI$1.001
0.0000435 Btc
$10,497.82
0.456 BTC
0.0000%
96
Gate.io
DAI-USDT$0.997
0.0000433 Btc
$8,564.50
8,588.028 DAI
0.0074%
97
Coinbase Exchange
ETH-DAI$0.9997
0.0000435 Btc
$5,649.54
3.581 ETH
0.0000%
98
Bancor (V2)
DAI-BNT$0.9953
0.0000432 Btc
$4,415.45
4,436.092 DAI
0.0038%
99
ArthSwap
0X6DE33698E9E9B787E09D3BD7771EF63557E148BB-0X6A2D262D56735DBA19DD70682B39F6BE9A931D98$0.9956
0.0000433 Btc
$4,244.38
4,227.806 0X6DE33698E9E9B787E09D3BD7771EF63557E148BB
0.0036%
100
Bitstamp
DAI-USD$0.9942
0.0000432 Btc
$4,038.86
4,062.342 DAI
0.0035%

Contract Source Code Verified (Exact Match)

Contract Name:
Dai

Compiler Version
v0.6.11+commit.5ef660b1

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 1 : dai.sol
// SPDX-License-Identifier: AGPL-3.0-or-later

// Copyright (C) 2017, 2018, 2019 dbrock, rain, mrchico
// Copyright (C) 2021 Dai Foundation

// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <https://www.gnu.org/licenses/>.

pragma solidity ^0.6.11;

// Improved Dai token

contract Dai {

  // --- Auth ---
  mapping (address => uint256) public wards;
  function rely(address usr) external auth {
    wards[usr] = 1;
    emit Rely(usr);
  }
  function deny(address usr) external auth {
    wards[usr] = 0;
    emit Deny(usr);
  }
  modifier auth {
    require(wards[msg.sender] == 1, "Dai/not-authorized");
    _;
  }

  // --- ERC20 Data ---
  string  public constant name     = "Dai Stablecoin";
  string  public constant symbol   = "DAI";
  string  public constant version  = "2";
  uint8   public constant decimals = 18;
  uint256 public totalSupply;

  mapping (address => uint256)                      public balanceOf;
  mapping (address => mapping (address => uint256)) public allowance;
  mapping (address => uint256)                      public nonces;

  event Approval(address indexed owner, address indexed spender, uint256 value);
  event Transfer(address indexed from, address indexed to, uint256 value);
  event Rely(address indexed usr);
  event Deny(address indexed usr);

  // --- Math ---
  function _add(uint256 x, uint256 y) internal pure returns (uint256 z) {
    require((z = x + y) >= x);
  }
  function _sub(uint256 x, uint256 y) internal pure returns (uint256 z) {
    require((z = x - y) <= x);
  }

  // --- EIP712 niceties ---
  uint256 public immutable deploymentChainId;
  bytes32 private immutable _DOMAIN_SEPARATOR;
  bytes32 public constant PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");

  constructor() public {
    wards[msg.sender] = 1;
    emit Rely(msg.sender);

    uint256 chainId;
    assembly {chainId := chainid()}
    deploymentChainId = chainId;
    _DOMAIN_SEPARATOR = _calculateDomainSeparator(chainId);
  }

  function _calculateDomainSeparator(uint256 chainId) private view returns (bytes32) {
    return keccak256(
      abi.encode(
        keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
        keccak256(bytes(name)),
        keccak256(bytes(version)),
        chainId,
        address(this)
      )
    );
  }
  function DOMAIN_SEPARATOR() external view returns (bytes32) {
    uint256 chainId;
    assembly {chainId := chainid()}
    return chainId == deploymentChainId ? _DOMAIN_SEPARATOR : _calculateDomainSeparator(chainId);
  }

  // --- ERC20 Mutations ---
  function transfer(address to, uint256 value) external returns (bool) {
    require(to != address(0) && to != address(this), "Dai/invalid-address");
    uint256 balance = balanceOf[msg.sender];
    require(balance >= value, "Dai/insufficient-balance");

    balanceOf[msg.sender] = balance - value;
    balanceOf[to] += value;

    emit Transfer(msg.sender, to, value);

    return true;
  }
  function transferFrom(address from, address to, uint256 value) external returns (bool) {
    require(to != address(0) && to != address(this), "Dai/invalid-address");
    uint256 balance = balanceOf[from];
    require(balance >= value, "Dai/insufficient-balance");

    if (from != msg.sender) {
      uint256 allowed = allowance[from][msg.sender];
      if (allowed != type(uint256).max) {
        require(allowed >= value, "Dai/insufficient-allowance");

        allowance[from][msg.sender] = allowed - value;
      }
    }

    balanceOf[from] = balance - value;
    balanceOf[to] += value;

    emit Transfer(from, to, value);

    return true;
  }
  function approve(address spender, uint256 value) external returns (bool) {
    allowance[msg.sender][spender] = value;

    emit Approval(msg.sender, spender, value);

    return true;
  }
  function increaseAllowance(address spender, uint256 addedValue) external returns (bool) {
    uint256 newValue = _add(allowance[msg.sender][spender], addedValue);
    allowance[msg.sender][spender] = newValue;

    emit Approval(msg.sender, spender, newValue);

    return true;
  }
  function decreaseAllowance(address spender, uint256 subtractedValue) external returns (bool) {
    uint256 allowed = allowance[msg.sender][spender];
    require(allowed >= subtractedValue, "Dai/insufficient-allowance");
    allowed = allowed - subtractedValue;
    allowance[msg.sender][spender] = allowed;

    emit Approval(msg.sender, spender, allowed);

    return true;
  }

  // --- Mint/Burn ---
  function mint(address to, uint256 value) external auth {
    require(to != address(0) && to != address(this), "Dai/invalid-address");
    balanceOf[to] = balanceOf[to] + value; // note: we don't need an overflow check here b/c balanceOf[to] <= totalSupply and there is an overflow check below
    totalSupply   = _add(totalSupply, value);

    emit Transfer(address(0), to, value);
  }
  function burn(address from, uint256 value) external {
    uint256 balance = balanceOf[from];
    require(balance >= value, "Dai/insufficient-balance");

    if (from != msg.sender && wards[msg.sender] != 1) {
      uint256 allowed = allowance[from][msg.sender];
      if (allowed != type(uint256).max) {
        require(allowed >= value, "Dai/insufficient-allowance");

        allowance[from][msg.sender] = allowed - value;
      }
    }

    balanceOf[from] = balance - value; // note: we don't need overflow checks b/c require(balance >= value) and balance <= totalSupply
    totalSupply     = totalSupply - value;

    emit Transfer(from, address(0), value);
  }

  // --- Approve by signature ---
  function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) external {
    require(block.timestamp <= deadline, "Dai/permit-expired");

    uint256 chainId;
    assembly {chainId := chainid()}

    bytes32 digest =
      keccak256(abi.encodePacked(
          "\x19\x01",
          chainId == deploymentChainId ? _DOMAIN_SEPARATOR : _calculateDomainSeparator(chainId),
          keccak256(abi.encode(
            PERMIT_TYPEHASH,
            owner,
            spender,
            value,
            nonces[owner]++,
            deadline
          ))
      ));

    require(owner != address(0) && owner == ecrecover(digest, v, r, s), "Dai/invalid-permit");

    allowance[owner][spender] = value;
    emit Approval(owner, spender, value);
  }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"usr","type":"address"}],"name":"Deny","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"usr","type":"address"}],"name":"Rely","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"deny","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deploymentChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"rely","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"wards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60c060405234801561001057600080fd5b503360008181526020819052604080822060019055517fdd0e34038ac38b2a1ce960229778ac48a8719bc900b6c4f8d0475c6e8b385a609190a2466080819052610062816001600160e01b0361006b16565b60a0525061013f565b600060405180806114af60529139604080519182900360520182208282018252600e83526d2230b49029ba30b13632b1b7b4b760911b6020938401528151808301835260018152601960f91b908401528151808401919091527f0b1461ddc0c1d5ded79a1db0f74dae949050a7c0b28728c724b24958c27a328b818301527fad7c5bef027816a800da1736444fb58a807ef4c9603b7848673f7e3a68eb14a56060820152608081018690523060a0808301919091528251808303909101815260c09091019091528051910120915050919050565b60805160a05161133e6101716000398061077f5280610f2b52508061074a5280610e855280610ef6525061133e6000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c806370a08231116100b8578063a457c2d71161007c578063a457c2d7146103b0578063a9059cbb146103dc578063bf353dbb14610408578063cd0d00961461042e578063d505accf14610436578063dd62ed3e1461048757610142565b806370a082311461030a5780637ecebe001461033057806395d89b41146103565780639c52a7f11461035e5780639dc29fac1461038457610142565b8063313ce5671161010a578063313ce5671461025c5780633644e5151461027a578063395093511461028257806340c10f19146102ae57806354fd4d50146102dc57806365fae35e146102e457610142565b806306fdde0314610147578063095ea7b3146101c457806318160ddd1461020457806323b872dd1461021e57806330adf81f14610254575b600080fd5b61014f6104b5565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610189578181015183820152602001610171565b50505050905090810190601f1680156101b65780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101f0600480360360408110156101da57600080fd5b506001600160a01b0381351690602001356104df565b604080519115158252519081900360200190f35b61020c610534565b60408051918252519081900360200190f35b6101f06004803603606081101561023457600080fd5b506001600160a01b0381358116916020810135909116906040013561053a565b61020c610725565b610264610740565b6040805160ff9092168252519081900360200190f35b61020c610745565b6101f06004803603604081101561029857600080fd5b506001600160a01b0381351690602001356107a5565b6102da600480360360408110156102c457600080fd5b506001600160a01b03813516906020013561082c565b005b61014f61094e565b6102da600480360360208110156102fa57600080fd5b50356001600160a01b031661096b565b61020c6004803603602081101561032057600080fd5b50356001600160a01b0316610a09565b61020c6004803603602081101561034657600080fd5b50356001600160a01b0316610a1b565b61014f610a2d565b6102da6004803603602081101561037457600080fd5b50356001600160a01b0316610a4c565b6102da6004803603604081101561039a57600080fd5b506001600160a01b038135169060200135610ae9565b6101f0600480360360408110156103c657600080fd5b506001600160a01b038135169060200135610c7b565b6101f0600480360360408110156103f257600080fd5b506001600160a01b038135169060200135610d4c565b61020c6004803603602081101561041e57600080fd5b50356001600160a01b0316610e71565b61020c610e83565b6102da600480360360e081101561044c57600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135610ea7565b61020c6004803603604081101561049d57600080fd5b506001600160a01b0381358116916020013516611123565b6040518060400160405280600e81526020016d2230b49029ba30b13632b1b7b4b760911b81525081565b3360008181526003602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390926000805160206112e9833981519152928290030190a35060015b92915050565b60015481565b60006001600160a01b0383161580159061055d57506001600160a01b0383163014155b6105a4576040805162461bcd60e51b81526020600482015260136024820152724461692f696e76616c69642d6164647265737360681b604482015290519081900360640190fd5b6001600160a01b0384166000908152600260205260409020548281101561060d576040805162461bcd60e51b81526020600482015260186024820152774461692f696e73756666696369656e742d62616c616e636560401b604482015290519081900360640190fd5b6001600160a01b03851633146106c7576001600160a01b038516600090815260036020908152604080832033845290915290205460001981146106c5578381101561069c576040805162461bcd60e51b815260206004820152601a6024820152794461692f696e73756666696369656e742d616c6c6f77616e636560301b604482015290519081900360640190fd5b6001600160a01b0386166000908152600360209081526040808320338452909152902084820390555b505b6001600160a01b0380861660008181526002602090815260408083208887039055938816808352918490208054880190558351878152935191936000805160206112c9833981519152929081900390910190a3506001949350505050565b60405180605261122582396052019050604051809103902081565b601281565b6000467f0000000000000000000000000000000000000000000000000000000000000000811461077d5761077881611140565b61079f565b7f00000000000000000000000000000000000000000000000000000000000000005b91505090565b3360009081526003602090815260408083206001600160a01b038616845290915281205481906107d59084611214565b3360008181526003602090815260408083206001600160a01b038a16808552908352928190208590558051858152905194955091936000805160206112e98339815191529281900390910190a35060019392505050565b33600090815260208190526040902054600114610885576040805162461bcd60e51b815260206004820152601260248201527111185a4bdb9bdd0b585d5d1a1bdc9a5e995960721b604482015290519081900360640190fd5b6001600160a01b038216158015906108a657506001600160a01b0382163014155b6108ed576040805162461bcd60e51b81526020600482015260136024820152724461692f696e76616c69642d6164647265737360681b604482015290519081900360640190fd5b6001600160a01b03821660009081526002602052604090208054820190556001546109189082611214565b6001556040805182815290516001600160a01b038416916000916000805160206112c98339815191529181900360200190a35050565b604051806040016040528060018152602001601960f91b81525081565b336000908152602081905260409020546001146109c4576040805162461bcd60e51b815260206004820152601260248201527111185a4bdb9bdd0b585d5d1a1bdc9a5e995960721b604482015290519081900360640190fd5b6001600160a01b03811660008181526020819052604080822060019055517fdd0e34038ac38b2a1ce960229778ac48a8719bc900b6c4f8d0475c6e8b385a609190a250565b60026020526000908152604090205481565b60046020526000908152604090205481565b6040518060400160405280600381526020016244414960e81b81525081565b33600090815260208190526040902054600114610aa5576040805162461bcd60e51b815260206004820152601260248201527111185a4bdb9bdd0b585d5d1a1bdc9a5e995960721b604482015290519081900360640190fd5b6001600160a01b038116600081815260208190526040808220829055517f184450df2e323acec0ed3b5c7531b81f9b4cdef7914dfd4c0a4317416bb5251b9190a250565b6001600160a01b03821660009081526002602052604090205481811015610b52576040805162461bcd60e51b81526020600482015260186024820152774461692f696e73756666696369656e742d62616c616e636560401b604482015290519081900360640190fd5b6001600160a01b0383163314801590610b7b575033600090815260208190526040902054600114155b15610c2a576001600160a01b03831660009081526003602090815260408083203384529091529020546000198114610c285782811015610bff576040805162461bcd60e51b815260206004820152601a6024820152794461692f696e73756666696369656e742d616c6c6f77616e636560301b604482015290519081900360640190fd5b6001600160a01b0384166000908152600360209081526040808320338452909152902083820390555b505b6001600160a01b03831660008181526002602090815260408083208686039055600180548790039055805186815290519293926000805160206112c9833981519152929181900390910190a3505050565b3360009081526003602090815260408083206001600160a01b038616845290915281205482811015610cf1576040805162461bcd60e51b815260206004820152601a6024820152794461692f696e73756666696369656e742d616c6c6f77616e636560301b604482015290519081900360640190fd5b3360008181526003602090815260408083206001600160a01b038916808552908352928190209487900394859055805185815290519293926000805160206112e9833981519152929181900390910190a35060019392505050565b60006001600160a01b03831615801590610d6f57506001600160a01b0383163014155b610db6576040805162461bcd60e51b81526020600482015260136024820152724461692f696e76616c69642d6164647265737360681b604482015290519081900360640190fd5b3360009081526002602052604090205482811015610e16576040805162461bcd60e51b81526020600482015260186024820152774461692f696e73756666696369656e742d62616c616e636560401b604482015290519081900360640190fd5b33600081815260026020908152604080832087860390556001600160a01b03881680845292819020805488019055805187815290519293926000805160206112c9833981519152929181900390910190a35060019392505050565b60006020819052908152604090205481565b7f000000000000000000000000000000000000000000000000000000000000000081565b83421115610ef1576040805162461bcd60e51b815260206004820152601260248201527111185a4bdc195c9b5a5d0b595e1c1a5c995960721b604482015290519081900360640190fd5b4660007f00000000000000000000000000000000000000000000000000000000000000008214610f2957610f2482611140565b610f4b565b7f00000000000000000000000000000000000000000000000000000000000000005b6040518060526112258239604080519182900360520182206001600160a01b03808f166000818152600460209081529085902080546001810190915581870194909452858501829052918f166060860152608085018e905260a085019290925260c08085018d90528351808603909101815260e08501845280519082012061190160f01b6101008601526101028501969096526101228085019690965282518085039096018652610142909301909152835193909101929092209250501580159061108757506040805160008152602080820180845284905260ff8816828401526060820187905260808201869052915160019260a0808401939192601f1981019281900390910190855afa158015611068573d6000803e3d6000fd5b505050602060405103516001600160a01b0316896001600160a01b0316145b6110cd576040805162461bcd60e51b815260206004820152601260248201527111185a4bda5b9d985b1a590b5c195c9b5a5d60721b604482015290519081900360640190fd5b6001600160a01b03808a166000818152600360209081526040808320948d16808452948252918290208b905581518b815291516000805160206112e98339815191529281900390910190a3505050505050505050565b600360209081526000928352604080842090915290825290205481565b6000604051808061127760529139604080519182900360520182208282018252600e83526d2230b49029ba30b13632b1b7b4b760911b6020938401528151808301835260018152601960f91b908401528151808401919091527f0b1461ddc0c1d5ded79a1db0f74dae949050a7c0b28728c724b24958c27a328b818301527fad7c5bef027816a800da1736444fb58a807ef4c9603b7848673f7e3a68eb14a56060820152608081018690523060a0808301919091528251808303909101815260c09091019091528051910120915050919050565b8082018281101561052e57600080fdfe5065726d69742861646472657373206f776e65722c61646472657373207370656e6465722c75696e743235362076616c75652c75696e74323536206e6f6e63652c75696e7432353620646561646c696e6529454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c75696e7432353620636861696e49642c6164647265737320766572696679696e67436f6e747261637429ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925a2646970667358221220c10a8f863458f6eaf33751a084e6c9f731275ed9c3b4b35baeb97c5150f7db5264736f6c634300060b0033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c75696e7432353620636861696e49642c6164647265737320766572696679696e67436f6e747261637429

Loading