├── .gitattributes
├── .gitignore
├── README.md
├── assets
├── CHAI
│ ├── DAI
│ │ ├── daiJoin.sol
│ │ ├── daiToken.sol
│ │ ├── pot.sol
│ │ └── vat.sol
│ └── chai.sol
├── HUSDFaucet.sol
├── PAX
│ ├── AdminUpgradeabilityProxy.sol
│ └── PAXImplementationV2.sol
├── TUSD
│ ├── OwnedUpgradeabilityProxy.sol
│ ├── TokenController.sol
│ ├── TrueUSD.sol
│ └── TrueUSDOriginal.sol
├── USDC
│ ├── FiatTokenProxy.sol
│ └── FiatTokenV1.sol
├── USDTFaucet.sol
├── USDxFaucet.sol
├── WBTCFaucet.sol
├── imBTCFaucet.sol
└── wethFaucet.sol
├── contracts
├── CarefulMath.sol
├── EIP20Interface.sol
├── EIP20NonStandardInterface.sol
├── ErrorReporter.sol
├── ExchangeRate.sol
├── Exponential.sol
├── InterestRateModel.sol
├── LiquidationChecker.sol
├── Liquidator.sol
├── MoneyMarket.sol
├── PriceOracle.sol
├── PriceOracleInterface.sol
├── PriceOracleProxy.sol
├── SafeToken.sol
├── StableCoinInterestRateModel.sol
├── StandardInterestRateModel.sol
├── USDTRateModel.sol
├── USDxInterestRateModel.sol
└── imBTCRateModel.sol
└── test
└── InterestModel
├── abi
└── testInterestModel.json
├── contract
└── testInterestModel.sol
└── testInterestModel.js
/.gitattributes:
--------------------------------------------------------------------------------
1 | *.sol linguist-language=Solidity
2 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | # Coverage directory
3 | coverage
4 | coverage.json
5 | coverageEnv
6 |
7 | # Dependency directory
8 | node_modules
9 |
10 | # Debug log from npm
11 | npm-debug.log
12 |
13 | # Local env variables
14 | .env
15 |
16 | # Truffle build directory
17 | build/
18 |
19 | # misc
20 | .DS_Store
21 | */.DS_Store
22 | .env
23 | .idea/
24 | .vscode/
25 |
26 | # Logs
27 | logs
28 | *.log
29 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ## Mainnet Contract Address(2020-03-14)
2 |
3 |
4 |
5 | Contract Name |
6 | Contract Address |
7 |
8 |
9 | MoneyMarket |
10 | 0x0eEe3E3828A45f7601D5F54bF49bB01d1A9dF5ea |
11 |
12 |
13 | Liquidator |
14 | 0x9893292300c4e530a14FB2526271732a2a9b3f05 |
15 |
16 |
17 | DSRToken |
18 | 0x06AF07097C9Eeb7fD685c692751D5C66dB49c215 |
19 |
20 |
21 | DSRTokenRateModel |
22 | 0x79BE3Be94b8D25F6628c616a99fA09094bcF3712 |
23 |
24 |
25 | HBTC |
26 | 0x0316EB71485b0Ab14103307bf65a021042c6d380 |
27 |
28 |
29 | HBTCRateModel |
30 | 0x5Dc95A046020880b93F15902540Dbfe86489FddA |
31 |
32 |
33 | HUSD |
34 | 0xdF574c24545E5FfEcb9a659c229253D4111d87e1 |
35 |
36 |
37 | HUSDRateModel |
38 | 0x79BE3Be94b8D25F6628c616a99fA09094bcF3712 |
39 |
40 |
41 | imBTC |
42 | 0x3212b29E33587A00FB1C83346f5dBFA69A458923 |
43 |
44 |
45 | imBTCRateModel |
46 | 0x9a18c4D9587344f2B15686Aa67EE7e5C4B00D549 |
47 |
48 |
49 | PAX |
50 | 0x8E870D67F660D95d5be530380D0eC0bd388289E1 |
51 |
52 |
53 | PAXRateModel |
54 | 0x79BE3Be94b8D25F6628c616a99fA09094bcF3712 |
55 |
56 |
57 | TUSD |
58 | 0x0000000000085d4780B73119b644AE5ecd22b376 |
59 |
60 |
61 | TUSDRateModel |
62 | 0x79BE3Be94b8D25F6628c616a99fA09094bcF3712 |
63 |
64 |
65 | USDC |
66 | 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 |
67 |
68 |
69 | USDCRateModel |
70 | 0x79BE3Be94b8D25F6628c616a99fA09094bcF3712 |
71 |
72 |
73 | USDT |
74 | 0xdAC17F958D2ee523a2206206994597C13D831ec7 |
75 |
76 |
77 | USDTRateModel |
78 | 0x79BE3Be94b8D25F6628c616a99fA09094bcF3712 |
79 |
80 |
81 | USDx |
82 | 0xeb269732ab75A6fD61Ea60b06fE994cD32a83549 |
83 |
84 |
85 | USDxRateModel |
86 | 0x83D5f6dc9d9750A137a744333C55b4Adf5F9A234 |
87 |
88 |
89 | WBTC |
90 | 0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599 |
91 |
92 |
93 | WBTCRateModel |
94 | 0x5Dc95A046020880b93F15902540Dbfe86489FddA |
95 |
96 |
97 | WETH |
98 | 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 |
99 |
100 |
101 | WETHRateModel |
102 | 0x5Dc95A046020880b93F15902540Dbfe86489FddA |
103 |
104 |
105 | PriceOracle |
106 | 0xE171D8c7e9EE0DDAe1A9bec0c7f35294e48c28d4 |
107 |
108 |
109 | PriceOracleProxy |
110 | 0xB620707637C5b2cc49843A03d90E28D9abbDa149 |
111 |
112 |
113 | DAI |
114 | 0x6B175474E89094C44Da98b954EedeAC495271d0F |
115 |
116 |
117 | ExchangeRate |
118 | 0x3eE954244629c9Bc6e53A50baCCC9A7B472f7D42 |
119 |
120 |
121 |
122 |
123 | ## Mainnet Test Contract Address(2020-03-14)
124 |
125 |
126 |
127 | Contract Name |
128 | Contract Address |
129 |
130 |
131 | MoneyMarket |
132 | 0xEDA3849869FD560B49daB8C110bE3a020F46c79E |
133 |
134 |
135 | Liquidator |
136 | 0xa116F88A1FF715206923f909585FEa35F52d540a |
137 |
138 |
139 | DSRToken |
140 | 0xfab8E55ae02826BF6e849E8eaE78c5b8FA4182F3 |
141 |
142 |
143 | DSRTokenRateModel |
144 | 0x1016B2c721A260E9908Ece0EE694F9fD10896C8D |
145 |
146 |
147 | HBTC |
148 | 0xa2C7088b08833a00dB49A0d564b5e1463A4B49cB |
149 |
150 |
151 | HBTCRateModel |
152 | 0xA4e7D12909FaD9cFc620c34cFA1b9DCC31f3BF43 |
153 |
154 |
155 | HUSD |
156 | 0x91Ca723288ecd5772e263e25F52D4014C493f5D0 |
157 |
158 |
159 | HUSDRateModel |
160 | 0x1016B2c721A260E9908Ece0EE694F9fD10896C8D |
161 |
162 |
163 | imBTC |
164 | 0x1141687E2a906722254e77241019c57496c0e83e |
165 |
166 |
167 | imBTCRateModel |
168 | 0x0ae2612845C3dDcc49f6d4F4F728f9de503AAbBf |
169 |
170 |
171 | PAX |
172 | 0x6CDd244AFFf8902cE285F02C39A2623Ecb461454 |
173 |
174 |
175 | PAXRateModel |
176 | 0x1016B2c721A260E9908Ece0EE694F9fD10896C8D |
177 |
178 |
179 | TUSD |
180 | 0xfd062D0EBC900EF504435DCe9347797d3b5e12Aa |
181 |
182 |
183 | TUSDRateModel |
184 | 0x1016B2c721A260E9908Ece0EE694F9fD10896C8D |
185 |
186 |
187 | USDC |
188 | 0x2cd68eCF48B0687c95EE6C06D33389688C3cbb8e |
189 |
190 |
191 | USDCRateModel |
192 | 0x1016B2c721A260E9908Ece0EE694F9fD10896C8D |
193 |
194 |
195 | USDT |
196 | 0x622B859cf4f1013642F6c177bA713d482fF5b483 |
197 |
198 |
199 | USDTRateModel |
200 | 0x1016B2c721A260E9908Ece0EE694F9fD10896C8D |
201 |
202 |
203 | USDx |
204 | 0x3A9E75AFcFFcD89613037989EA0ED6cEc44a4353 |
205 |
206 |
207 | USDxRateModel |
208 | 0xa79B3ea1729Bf43Be12A7C89BDffd1306dBFe647 |
209 |
210 |
211 | WBTC |
212 | 0xb699238e9Fc2724CBc7ca28AEF68b546Cd773612 |
213 |
214 |
215 | WBTCRateModel |
216 | 0xA4e7D12909FaD9cFc620c34cFA1b9DCC31f3BF43 |
217 |
218 |
219 | WETH |
220 | 0x06A1cd567e61b7Edda49c30D3D32e60F607fD646 |
221 |
222 |
223 | WETHRateModel |
224 | 0xA4e7D12909FaD9cFc620c34cFA1b9DCC31f3BF43 |
225 |
226 |
227 | PriceOracle |
228 | 0x54934a16e77445F45A37C52B70a43c3b4D011aD4 |
229 |
230 |
231 | PriceOracleProxy |
232 | 0x0388617179F1fabcBCf975507Ab424D8179cfF75 |
233 |
234 |
235 | DAI |
236 | 0x4Eab78e4C2acf2Ed41d56ce71b51c9D717782124 |
237 |
238 |
239 | ExchangeRate |
240 | 0xBe87C16290e554229E2364DeB46b78a4BFcae74a |
241 |
242 |
243 |
244 |
245 |
246 | ## Rinkeby Contract Address(2020-03-14)
247 |
248 |
249 |
250 | Contract Name |
251 | Contract Address |
252 |
253 |
254 | MoneyMarket |
255 | 0xDCfD113789Ef683f676435fFf90B953A0Cc76044 |
256 |
257 |
258 | Liquidator |
259 | 0x84E81B87D1736D2E2Be5dB591326E29F8458c63C |
260 |
261 |
262 | DSRToken |
263 | 0x8a5C1BD4D75e168a4f65eB902c289400B90FD980 |
264 |
265 |
266 | DSRTokenRateModel |
267 | 0x63b920386b3b4021d36EcFaB90F3F5b74Bc8b902 |
268 |
269 |
270 | HBTC |
271 | 0xcf07906CbCF9824D0caE475E8F958d48AcF1014C |
272 |
273 |
274 | HBTCRateModel |
275 | 0x0Ecc207Eb5E1d9476543D7e32D61A75e6bf767d3 |
276 |
277 |
278 | HUSD |
279 | 0x0D518472330FF1D943881BBBDda03b221A7F9F74 |
280 |
281 |
282 | HUSDRateModel |
283 | 0x63b920386b3b4021d36EcFaB90F3F5b74Bc8b902 |
284 |
285 |
286 | imBTC |
287 | 0x5Dc95A046020880b93F15902540Dbfe86489FddA |
288 |
289 |
290 | imBTCRateModel |
291 | 0xe7cF47e58829Dc4eD4FDB9638eC309A00a96D13a |
292 |
293 |
294 | PAX |
295 | 0x722E6238335d89393A42e2cA316A5fb1b8B2EB55 |
296 |
297 |
298 | PAXRateModel |
299 | 0x63b920386b3b4021d36EcFaB90F3F5b74Bc8b902 |
300 |
301 |
302 | TUSD |
303 | 0xe72a3181f69Eb21A19bd4Ce19Eb68FDb333d74c6 |
304 |
305 |
306 | TUSDRateModel |
307 | 0x63b920386b3b4021d36EcFaB90F3F5b74Bc8b902 |
308 |
309 |
310 | USDC |
311 | 0x4DBCdF9B62e891a7cec5A2568C3F4FAF9E8Abe2b |
312 |
313 |
314 | USDCRateModel |
315 | 0x63b920386b3b4021d36EcFaB90F3F5b74Bc8b902 |
316 |
317 |
318 | USDT |
319 | 0xaa74B62f737bbA1D2E520F9ec38Fc23b6E6817df |
320 |
321 |
322 | USDTRateModel |
323 | 0x63b920386b3b4021d36EcFaB90F3F5b74Bc8b902 |
324 |
325 |
326 | USDx |
327 | 0xD96cC7f80C1cb595eBcdC072531e1799B3a2436E |
328 |
329 |
330 | USDxRateModel |
331 | 0xe302E676E1Add419cc87e75fb5B73DAB24Ad1534 |
332 |
333 |
334 | WBTC |
335 | 0x7B65B937A0f3764a7a5e29fD696C391233218E91 |
336 |
337 |
338 | WBTCRateModel |
339 | 0x0Ecc207Eb5E1d9476543D7e32D61A75e6bf767d3 |
340 |
341 |
342 | WETH |
343 | 0x7A967421410019044aA829746D65575325082e99 |
344 |
345 |
346 | WETHRateModel |
347 | 0x0Ecc207Eb5E1d9476543D7e32D61A75e6bf767d3 |
348 |
349 |
350 | PriceOracle |
351 | 0xd75AF5Bc8e1f022002c47508C27455A20738b1F5 |
352 |
353 |
354 | PriceOracleProxy |
355 | 0x1ca246F23cb90c75B879fd58Cc02C64B52B01e99 |
356 |
357 |
358 | DAI |
359 | 0xA3A59273494BB5B8F0a8FAcf21B3f666A47d6140 |
360 |
361 |
362 | ExchangeRate |
363 | 0x0226953975D4948b417571Fb73A02358d25aFF1A |
364 |
365 |
366 |
--------------------------------------------------------------------------------
/assets/CHAI/DAI/daiJoin.sol:
--------------------------------------------------------------------------------
1 | /*
2 | ========================================================================
3 | !!!!!!!!!!!!!!
4 | !!! NOTICE !!!
5 | !!!!!!!!!!!!!!
6 | This is a test contract very similar to the formal contract.
7 | The actual code on the mainnet is at here:
8 | https://etherscan.io/address/0x9759a6ac90977b93b58547b4a71c78317f391a28#code
9 | ========================================================================
10 | */
11 |
12 | // hevm: flattened sources of /nix/store/8xb41r4qd0cjb63wcrxf1qmfg88p0961-dss-6fd7de0/src/join.sol
13 | pragma solidity =0.5.12;
14 |
15 | ////// /nix/store/8xb41r4qd0cjb63wcrxf1qmfg88p0961-dss-6fd7de0/src/lib.sol
16 | // This program is free software: you can redistribute it and/or modify
17 | // it under the terms of the GNU General Public License as published by
18 | // the Free Software Foundation, either version 3 of the License, or
19 | // (at your option) any later version.
20 |
21 | // This program is distributed in the hope that it will be useful,
22 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
23 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 | // GNU General Public License for more details.
25 |
26 | // You should have received a copy of the GNU General Public License
27 | // along with this program. If not, see