UNPKG

13.8 kBJSONView Raw
1{
2 "_format": "hh-sol-artifact-1",
3 "contractName": "FyTokenInterface",
4 "sourceName": "contracts/FyTokenInterface.sol",
5 "abi": [
6 {
7 "anonymous": false,
8 "inputs": [
9 {
10 "indexed": true,
11 "internalType": "address",
12 "name": "owner",
13 "type": "address"
14 },
15 {
16 "indexed": true,
17 "internalType": "address",
18 "name": "spender",
19 "type": "address"
20 },
21 {
22 "indexed": false,
23 "internalType": "uint256",
24 "name": "amount",
25 "type": "uint256"
26 }
27 ],
28 "name": "Approval",
29 "type": "event"
30 },
31 {
32 "anonymous": false,
33 "inputs": [
34 {
35 "indexed": true,
36 "internalType": "address",
37 "name": "borrower",
38 "type": "address"
39 },
40 {
41 "indexed": false,
42 "internalType": "uint256",
43 "name": "borrowAmount",
44 "type": "uint256"
45 }
46 ],
47 "name": "Borrow",
48 "type": "event"
49 },
50 {
51 "anonymous": false,
52 "inputs": [
53 {
54 "indexed": true,
55 "internalType": "address",
56 "name": "holder",
57 "type": "address"
58 },
59 {
60 "indexed": false,
61 "internalType": "uint256",
62 "name": "burnAmount",
63 "type": "uint256"
64 }
65 ],
66 "name": "Burn",
67 "type": "event"
68 },
69 {
70 "anonymous": false,
71 "inputs": [
72 {
73 "indexed": true,
74 "internalType": "address",
75 "name": "liquidator",
76 "type": "address"
77 },
78 {
79 "indexed": true,
80 "internalType": "address",
81 "name": "borrower",
82 "type": "address"
83 },
84 {
85 "indexed": false,
86 "internalType": "uint256",
87 "name": "repayAmount",
88 "type": "uint256"
89 },
90 {
91 "indexed": false,
92 "internalType": "uint256",
93 "name": "clutchedCollateralAmount",
94 "type": "uint256"
95 }
96 ],
97 "name": "LiquidateBorrow",
98 "type": "event"
99 },
100 {
101 "anonymous": false,
102 "inputs": [
103 {
104 "indexed": true,
105 "internalType": "address",
106 "name": "beneficiary",
107 "type": "address"
108 },
109 {
110 "indexed": false,
111 "internalType": "uint256",
112 "name": "mintAmount",
113 "type": "uint256"
114 }
115 ],
116 "name": "Mint",
117 "type": "event"
118 },
119 {
120 "anonymous": false,
121 "inputs": [
122 {
123 "indexed": true,
124 "internalType": "address",
125 "name": "payer",
126 "type": "address"
127 },
128 {
129 "indexed": true,
130 "internalType": "address",
131 "name": "borrower",
132 "type": "address"
133 },
134 {
135 "indexed": false,
136 "internalType": "uint256",
137 "name": "repayAmount",
138 "type": "uint256"
139 },
140 {
141 "indexed": false,
142 "internalType": "uint256",
143 "name": "newDebt",
144 "type": "uint256"
145 }
146 ],
147 "name": "RepayBorrow",
148 "type": "event"
149 },
150 {
151 "anonymous": false,
152 "inputs": [
153 {
154 "indexed": true,
155 "internalType": "address",
156 "name": "admin",
157 "type": "address"
158 },
159 {
160 "indexed": false,
161 "internalType": "contract FintrollerInterface",
162 "name": "oldFintroller",
163 "type": "address"
164 },
165 {
166 "indexed": false,
167 "internalType": "contract FintrollerInterface",
168 "name": "newFintroller",
169 "type": "address"
170 }
171 ],
172 "name": "SetFintroller",
173 "type": "event"
174 },
175 {
176 "anonymous": false,
177 "inputs": [
178 {
179 "indexed": true,
180 "internalType": "address",
181 "name": "from",
182 "type": "address"
183 },
184 {
185 "indexed": true,
186 "internalType": "address",
187 "name": "to",
188 "type": "address"
189 },
190 {
191 "indexed": false,
192 "internalType": "uint256",
193 "name": "amount",
194 "type": "uint256"
195 }
196 ],
197 "name": "Transfer",
198 "type": "event"
199 },
200 {
201 "inputs": [
202 {
203 "internalType": "contract FintrollerInterface",
204 "name": "newFintroller",
205 "type": "address"
206 }
207 ],
208 "name": "_setFintroller",
209 "outputs": [
210 {
211 "internalType": "bool",
212 "name": "",
213 "type": "bool"
214 }
215 ],
216 "stateMutability": "nonpayable",
217 "type": "function"
218 },
219 {
220 "inputs": [
221 {
222 "internalType": "address",
223 "name": "owner",
224 "type": "address"
225 },
226 {
227 "internalType": "address",
228 "name": "spender",
229 "type": "address"
230 }
231 ],
232 "name": "allowance",
233 "outputs": [
234 {
235 "internalType": "uint256",
236 "name": "",
237 "type": "uint256"
238 }
239 ],
240 "stateMutability": "view",
241 "type": "function"
242 },
243 {
244 "inputs": [
245 {
246 "internalType": "address",
247 "name": "spender",
248 "type": "address"
249 },
250 {
251 "internalType": "uint256",
252 "name": "amount",
253 "type": "uint256"
254 }
255 ],
256 "name": "approve",
257 "outputs": [
258 {
259 "internalType": "bool",
260 "name": "",
261 "type": "bool"
262 }
263 ],
264 "stateMutability": "nonpayable",
265 "type": "function"
266 },
267 {
268 "inputs": [
269 {
270 "internalType": "address",
271 "name": "account",
272 "type": "address"
273 }
274 ],
275 "name": "balanceOf",
276 "outputs": [
277 {
278 "internalType": "uint256",
279 "name": "",
280 "type": "uint256"
281 }
282 ],
283 "stateMutability": "view",
284 "type": "function"
285 },
286 {
287 "inputs": [],
288 "name": "balanceSheet",
289 "outputs": [
290 {
291 "internalType": "contract BalanceSheetInterface",
292 "name": "",
293 "type": "address"
294 }
295 ],
296 "stateMutability": "view",
297 "type": "function"
298 },
299 {
300 "inputs": [
301 {
302 "internalType": "uint256",
303 "name": "borrowAmount",
304 "type": "uint256"
305 }
306 ],
307 "name": "borrow",
308 "outputs": [
309 {
310 "internalType": "bool",
311 "name": "",
312 "type": "bool"
313 }
314 ],
315 "stateMutability": "nonpayable",
316 "type": "function"
317 },
318 {
319 "inputs": [
320 {
321 "internalType": "address",
322 "name": "holder",
323 "type": "address"
324 },
325 {
326 "internalType": "uint256",
327 "name": "burnAmount",
328 "type": "uint256"
329 }
330 ],
331 "name": "burn",
332 "outputs": [
333 {
334 "internalType": "bool",
335 "name": "",
336 "type": "bool"
337 }
338 ],
339 "stateMutability": "nonpayable",
340 "type": "function"
341 },
342 {
343 "inputs": [],
344 "name": "collateral",
345 "outputs": [
346 {
347 "internalType": "contract Erc20Interface",
348 "name": "",
349 "type": "address"
350 }
351 ],
352 "stateMutability": "view",
353 "type": "function"
354 },
355 {
356 "inputs": [],
357 "name": "collateralPrecisionScalar",
358 "outputs": [
359 {
360 "internalType": "uint256",
361 "name": "",
362 "type": "uint256"
363 }
364 ],
365 "stateMutability": "view",
366 "type": "function"
367 },
368 {
369 "inputs": [],
370 "name": "decimals",
371 "outputs": [
372 {
373 "internalType": "uint8",
374 "name": "",
375 "type": "uint8"
376 }
377 ],
378 "stateMutability": "view",
379 "type": "function"
380 },
381 {
382 "inputs": [],
383 "name": "expirationTime",
384 "outputs": [
385 {
386 "internalType": "uint256",
387 "name": "",
388 "type": "uint256"
389 }
390 ],
391 "stateMutability": "view",
392 "type": "function"
393 },
394 {
395 "inputs": [],
396 "name": "fintroller",
397 "outputs": [
398 {
399 "internalType": "contract FintrollerInterface",
400 "name": "",
401 "type": "address"
402 }
403 ],
404 "stateMutability": "view",
405 "type": "function"
406 },
407 {
408 "inputs": [],
409 "name": "isFyToken",
410 "outputs": [
411 {
412 "internalType": "bool",
413 "name": "",
414 "type": "bool"
415 }
416 ],
417 "stateMutability": "view",
418 "type": "function"
419 },
420 {
421 "inputs": [],
422 "name": "isMatured",
423 "outputs": [
424 {
425 "internalType": "bool",
426 "name": "",
427 "type": "bool"
428 }
429 ],
430 "stateMutability": "view",
431 "type": "function"
432 },
433 {
434 "inputs": [
435 {
436 "internalType": "address",
437 "name": "borrower",
438 "type": "address"
439 },
440 {
441 "internalType": "uint256",
442 "name": "repayAmount",
443 "type": "uint256"
444 }
445 ],
446 "name": "liquidateBorrow",
447 "outputs": [
448 {
449 "internalType": "bool",
450 "name": "",
451 "type": "bool"
452 }
453 ],
454 "stateMutability": "nonpayable",
455 "type": "function"
456 },
457 {
458 "inputs": [
459 {
460 "internalType": "address",
461 "name": "beneficiary",
462 "type": "address"
463 },
464 {
465 "internalType": "uint256",
466 "name": "mintAmount",
467 "type": "uint256"
468 }
469 ],
470 "name": "mint",
471 "outputs": [
472 {
473 "internalType": "bool",
474 "name": "",
475 "type": "bool"
476 }
477 ],
478 "stateMutability": "nonpayable",
479 "type": "function"
480 },
481 {
482 "inputs": [],
483 "name": "name",
484 "outputs": [
485 {
486 "internalType": "string",
487 "name": "",
488 "type": "string"
489 }
490 ],
491 "stateMutability": "view",
492 "type": "function"
493 },
494 {
495 "inputs": [],
496 "name": "redemptionPool",
497 "outputs": [
498 {
499 "internalType": "contract RedemptionPoolInterface",
500 "name": "",
501 "type": "address"
502 }
503 ],
504 "stateMutability": "view",
505 "type": "function"
506 },
507 {
508 "inputs": [
509 {
510 "internalType": "uint256",
511 "name": "repayAmount",
512 "type": "uint256"
513 }
514 ],
515 "name": "repayBorrow",
516 "outputs": [
517 {
518 "internalType": "bool",
519 "name": "",
520 "type": "bool"
521 }
522 ],
523 "stateMutability": "nonpayable",
524 "type": "function"
525 },
526 {
527 "inputs": [
528 {
529 "internalType": "address",
530 "name": "borrower",
531 "type": "address"
532 },
533 {
534 "internalType": "uint256",
535 "name": "repayAmount",
536 "type": "uint256"
537 }
538 ],
539 "name": "repayBorrowBehalf",
540 "outputs": [
541 {
542 "internalType": "bool",
543 "name": "",
544 "type": "bool"
545 }
546 ],
547 "stateMutability": "nonpayable",
548 "type": "function"
549 },
550 {
551 "inputs": [],
552 "name": "symbol",
553 "outputs": [
554 {
555 "internalType": "string",
556 "name": "",
557 "type": "string"
558 }
559 ],
560 "stateMutability": "view",
561 "type": "function"
562 },
563 {
564 "inputs": [],
565 "name": "totalSupply",
566 "outputs": [
567 {
568 "internalType": "uint256",
569 "name": "",
570 "type": "uint256"
571 }
572 ],
573 "stateMutability": "view",
574 "type": "function"
575 },
576 {
577 "inputs": [
578 {
579 "internalType": "address",
580 "name": "recipient",
581 "type": "address"
582 },
583 {
584 "internalType": "uint256",
585 "name": "amount",
586 "type": "uint256"
587 }
588 ],
589 "name": "transfer",
590 "outputs": [
591 {
592 "internalType": "bool",
593 "name": "",
594 "type": "bool"
595 }
596 ],
597 "stateMutability": "nonpayable",
598 "type": "function"
599 },
600 {
601 "inputs": [
602 {
603 "internalType": "address",
604 "name": "sender",
605 "type": "address"
606 },
607 {
608 "internalType": "address",
609 "name": "recipient",
610 "type": "address"
611 },
612 {
613 "internalType": "uint256",
614 "name": "amount",
615 "type": "uint256"
616 }
617 ],
618 "name": "transferFrom",
619 "outputs": [
620 {
621 "internalType": "bool",
622 "name": "",
623 "type": "bool"
624 }
625 ],
626 "stateMutability": "nonpayable",
627 "type": "function"
628 },
629 {
630 "inputs": [],
631 "name": "underlying",
632 "outputs": [
633 {
634 "internalType": "contract Erc20Interface",
635 "name": "",
636 "type": "address"
637 }
638 ],
639 "stateMutability": "view",
640 "type": "function"
641 },
642 {
643 "inputs": [],
644 "name": "underlyingPrecisionScalar",
645 "outputs": [
646 {
647 "internalType": "uint256",
648 "name": "",
649 "type": "uint256"
650 }
651 ],
652 "stateMutability": "view",
653 "type": "function"
654 }
655 ],
656 "bytecode": "0x",
657 "deployedBytecode": "0x",
658 "linkReferences": {},
659 "deployedLinkReferences": {}
660}