|
| 1 | +// SPDX-License-Identifier: UNLICENSED |
| 2 | +pragma solidity 0.6.10; |
| 3 | +pragma experimental ABIEncoderV2; |
| 4 | + |
| 5 | +interface ICErc20Delegator { |
| 6 | + function _acceptAdmin() external returns(uint256); |
| 7 | + function _addReserves(uint256 addAmount) external returns(uint256); |
| 8 | + function _reduceReserves(uint256 reduceAmount) external returns(uint256); |
| 9 | + function _renounceAdminRights() external returns(uint256); |
| 10 | + function _renounceFuseAdminRights() external returns(uint256); |
| 11 | + function _resignImplementation() external; |
| 12 | + function _setAdminFee(uint256 newAdminFeeMantissa) external returns(uint256); |
| 13 | + function _setComptroller(address newComptroller) external returns(uint256); |
| 14 | + function _setFuseFee() external returns(uint256); |
| 15 | + function _setInterestRateModel(address newInterestRateModel) external returns(uint256); |
| 16 | + function _setPendingAdmin(address newPendingAdmin) external returns(uint256); |
| 17 | + function _setReserveFactor(uint256 newReserveFactorMantissa) external returns(uint256); |
| 18 | + function _withdrawAdminFees(uint256 withdrawAmount) external returns(uint256); |
| 19 | + function _withdrawFuseFees(uint256 withdrawAmount) external returns(uint256); |
| 20 | + function accrualBlockNumber() external view returns(uint256); |
| 21 | + function accrueInterest() external returns(uint256); |
| 22 | + function admin() external view returns(address); |
| 23 | + function adminFeeMantissa() external view returns(uint256); |
| 24 | + function adminHasRights() external view returns(bool); |
| 25 | + function allowance(address owner, address spender) external view returns(uint256); |
| 26 | + function approve(address spender, uint256 amount) external returns(bool); |
| 27 | + function balanceOf(address owner) external view returns(uint256); |
| 28 | + function balanceOfUnderlying(address owner) external returns(uint256); |
| 29 | + function borrow(uint256 borrowAmount) external returns(uint256); |
| 30 | + function borrowBalanceCurrent(address account) external returns(uint256); |
| 31 | + function borrowBalanceStored(address account) external view returns(uint256); |
| 32 | + function borrowIndex() external view returns(uint256); |
| 33 | + function borrowRatePerBlock() external view returns(uint256); |
| 34 | + function comptroller() external view returns(address); |
| 35 | + function decimals() external view returns(uint8); |
| 36 | + function exchangeRateCurrent() external returns(uint256); |
| 37 | + function exchangeRateStored() external view returns(uint256); |
| 38 | + function fuseAdminHasRights() external view returns(bool); |
| 39 | + function fuseFeeMantissa() external view returns(uint256); |
| 40 | + function getAccountSnapshot(address account) external view returns(uint256, uint256, uint256, uint256); |
| 41 | + function getCash() external view returns(uint256); |
| 42 | + function implementation() external view returns(address); |
| 43 | + function initialize(address comptroller_, address interestRateModel_, uint256 initialExchangeRateMantissa_, string memory name_, string memory symbol_, uint8 decimals_, uint256 reserveFactorMantissa_, uint256 adminFeeMantissa_) external; |
| 44 | + function initialize(address underlying_, address comptroller_, address interestRateModel_, uint256 initialExchangeRateMantissa_, string memory name_, string memory symbol_, uint8 decimals_, uint256 reserveFactorMantissa_, uint256 adminFeeMantissa_) external; |
| 45 | + function interestRateModel() external view returns(address); |
| 46 | + function isCEther() external view returns(bool); |
| 47 | + function isCToken() external view returns(bool); |
| 48 | + function liquidateBorrow(address borrower, uint256 repayAmount, address cTokenCollateral) external returns(uint256); |
| 49 | + function mint(uint256 mintAmount) external returns(uint256); |
| 50 | + function name() external view returns(string memory); |
| 51 | + function pendingAdmin() external view returns(address); |
| 52 | + function redeem(uint256 redeemTokens) external returns(uint256); |
| 53 | + function redeemUnderlying(uint256 redeemAmount) external returns(uint256); |
| 54 | + function repayBorrow(uint256 repayAmount) external returns(uint256); |
| 55 | + function repayBorrowBehalf(address borrower, uint256 repayAmount) external returns(uint256); |
| 56 | + function reserveFactorMantissa() external view returns(uint256); |
| 57 | + function seize(address liquidator, address borrower, uint256 seizeTokens) external returns(uint256); |
| 58 | + function supplyRatePerBlock() external view returns(uint256); |
| 59 | + function symbol() external view returns(string memory); |
| 60 | + function totalAdminFees() external view returns(uint256); |
| 61 | + function totalBorrows() external view returns(uint256); |
| 62 | + function totalBorrowsCurrent() external returns(uint256); |
| 63 | + function totalFuseFees() external view returns(uint256); |
| 64 | + function totalReserves() external view returns(uint256); |
| 65 | + function totalSupply() external view returns(uint256); |
| 66 | + function transfer(address dst, uint256 amount) external returns(bool); |
| 67 | + function transferFrom(address src, address dst, uint256 amount) external returns(bool); |
| 68 | + function underlying() external view returns(address); |
| 69 | +} |
0 commit comments