ETH Price: $2,433.77 (+4.69%)

Contract

0xbB025D470162CC5eA24daF7d4566064EE7f5F111
 
Transaction Hash
Method
Block
From
To
Repay Borrow200330732024-06-06 13:25:47120 days ago1717680347IN
Fei Protocol: rariPool8Eth
0 ETH0.0026652620.22403198
Repay Borrow200330642024-06-06 13:23:59120 days ago1717680239IN
Fei Protocol: rariPool8Eth
0.00001164 ETH0.0026011219.04375293
Accrue Interest200330562024-06-06 13:22:23120 days ago1717680143IN
Fei Protocol: rariPool8Eth
0 ETH0.0016315919.25393172
Approve189329832024-01-04 9:10:11274 days ago1704359411IN
Fei Protocol: rariPool8Eth
0 ETH0.0009177517.87987357
Redeem Underlyin...179362292023-08-17 18:09:23413 days ago1692295763IN
Fei Protocol: rariPool8Eth
0 ETH0.0154861830.28329869
Repay Borrow174112912023-06-05 2:11:23487 days ago1685931083IN
Fei Protocol: rariPool8Eth
4.14654948 ETH0.0034819125.49227813
Approve172495632023-05-13 7:25:11510 days ago1683962711IN
Fei Protocol: rariPool8Eth
0 ETH0.0022581243.98281124
Redeem Underlyin...160965862022-12-02 10:40:11672 days ago1669977611IN
Fei Protocol: rariPool8Eth
0 ETH0.0022561311.98129052
Mint160965782022-12-02 10:38:35672 days ago1669977515IN
Fei Protocol: rariPool8Eth
0.00000111 ETH0.0023001412.27230106
Redeem Underlyin...160354162022-11-23 21:38:47680 days ago1669239527IN
Fei Protocol: rariPool8Eth
0 ETH0.0035793813.57868241
Approve158659232022-10-31 5:23:35704 days ago1667193815IN
Fei Protocol: rariPool8Eth
0 ETH0.00031026.04339244
Approve158368652022-10-27 3:56:35708 days ago1666842995IN
Fei Protocol: rariPool8Eth
0 ETH0.0005621910.9527083
Mint158367682022-10-27 3:37:11708 days ago1666841831IN
Fei Protocol: rariPool8Eth
0.0239002 ETH0.0017146711.39882218
Approve156149322022-09-26 3:42:35739 days ago1664163755IN
Fei Protocol: rariPool8Eth
0 ETH0.000181335.76956191
Approve156149292022-09-26 3:41:59739 days ago1664163719IN
Fei Protocol: rariPool8Eth
0 ETH0.000180435.7409955
Approve156149282022-09-26 3:41:47739 days ago1664163707IN
Fei Protocol: rariPool8Eth
0 ETH0.000191236.08474175
Approve156149272022-09-26 3:41:35739 days ago1664163695IN
Fei Protocol: rariPool8Eth
0 ETH0.000177655.65263496
Approve156148842022-09-26 3:32:47739 days ago1664163167IN
Fei Protocol: rariPool8Eth
0 ETH0.000299845.84167464
Approve155926202022-09-23 0:59:23742 days ago1663894763IN
Fei Protocol: rariPool8Eth
0 ETH0.000317666.18738181
Approve155861872022-09-22 3:25:11743 days ago1663817111IN
Fei Protocol: rariPool8Eth
0 ETH0.000293945.72659657
Approve155772792022-09-20 21:10:35744 days ago1663708235IN
Fei Protocol: rariPool8Eth
0 ETH0.0009865919.21660903
Approve155770682022-09-20 20:27:59744 days ago1663705679IN
Fei Protocol: rariPool8Eth
0 ETH0.0014998329.22001136
Approve155767162022-09-20 19:17:23744 days ago1663701443IN
Fei Protocol: rariPool8Eth
0 ETH0.0006333812.33682038
Repay Borrow155767142022-09-20 19:16:59744 days ago1663701419IN
Fei Protocol: rariPool8Eth
724 wei0.001727613.10905056
Approve155767132022-09-20 19:16:47744 days ago1663701407IN
Fei Protocol: rariPool8Eth
0 ETH0.0006725413.10257719
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
190720902024-01-23 21:38:23254 days ago1706045903
Fei Protocol: rariPool8Eth
0.21084804 ETH
182896152023-10-06 6:16:35364 days ago1696572995
Fei Protocol: rariPool8Eth
0.0786298 ETH
181083042023-09-10 20:17:59389 days ago1694377079
Fei Protocol: rariPool8Eth
0.11822453 ETH
180453342023-09-02 0:41:35398 days ago1693615295
Fei Protocol: rariPool8Eth
0.17477533 ETH
180453242023-09-02 0:39:35398 days ago1693615175
Fei Protocol: rariPool8Eth
0.26216276 ETH
180452762023-09-02 0:29:35398 days ago1693614575
Fei Protocol: rariPool8Eth
0.2009555 ETH
179362292023-08-17 18:09:23413 days ago1692295763
Fei Protocol: rariPool8Eth
0.144 ETH
175064972023-06-18 11:54:35474 days ago1687089275
Fei Protocol: rariPool8Eth
0.36820651 ETH
160965862022-12-02 10:40:11672 days ago1669977611
Fei Protocol: rariPool8Eth
0.00000111 ETH
160354162022-11-23 21:38:47680 days ago1669239527
Fei Protocol: rariPool8Eth
0.01004784 ETH
155827522022-09-21 15:51:23744 days ago1663775483
Fei Protocol: rariPool8Eth
0.00000001 ETH
155767032022-09-20 19:14:35744 days ago1663701275
Fei Protocol: rariPool8Eth
0.2001127 ETH
155767032022-09-20 19:14:35744 days ago1663701275
Fei Protocol: rariPool8Eth
0.33795911 ETH
154753472022-09-05 2:45:31760 days ago1662345931
Fei Protocol: rariPool8Eth
1.05981021 ETH
154753472022-09-05 2:45:31760 days ago1662345931
Fei Protocol: rariPool8Eth
0.30934743 ETH
153828242022-08-21 8:10:10775 days ago1661069410
Fei Protocol: rariPool8Eth
30.02447233 ETH
153828242022-08-21 8:10:10775 days ago1661069410
Fei Protocol: rariPool8Eth
0.36018688 ETH
152841502022-08-05 19:13:16790 days ago1659726796
Fei Protocol: rariPool8Eth
0.11261894 ETH
152841502022-08-05 19:13:16790 days ago1659726796
Fei Protocol: rariPool8Eth
0.13738105 ETH
152506152022-07-31 13:54:07796 days ago1659275647
Fei Protocol: rariPool8Eth
136.56211971 ETH
152506152022-07-31 13:54:07796 days ago1659275647
Fei Protocol: rariPool8Eth
2.59523477 ETH
152461812022-07-30 21:19:42796 days ago1659215982
Fei Protocol: rariPool8Eth
11.29000963 ETH
152353082022-07-29 4:39:02798 days ago1659069542
Fei Protocol: rariPool8Eth
0.47882668 ETH
152348562022-07-29 2:58:40798 days ago1659063520
Fei Protocol: rariPool8Eth
2.28133831 ETH
152331682022-07-28 20:36:18798 days ago1659040578
Fei Protocol: rariPool8Eth
0.00002509 ETH
View All Internal Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x97fE5406...485133552
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
CEtherDelegator

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, BSD-3-Clause license

Contract Source Code (Solidity Multiple files format)

File 1 of 5: CEtherDelegator.sol
pragma solidity ^0.5.16;

import "./CTokenInterfaces.sol";

/**
 * @title Compound's CEtherDelegator Contract
 * @notice CTokens which wrap Ether and delegate to an implementation
 * @author Compound
 */
contract CEtherDelegator is CDelegatorInterface, CTokenAdminStorage {
    /**
     * @notice Construct a new CEther money market
     * @param comptroller_ The address of the Comptroller
     * @param interestRateModel_ The address of the interest rate model
     * @param initialExchangeRateMantissa_ The initial exchange rate, scaled by 1e18
     * @param name_ ERC-20 name of this token
     * @param symbol_ ERC-20 symbol of this token
     * @param decimals_ ERC-20 decimal precision of this token
     * @param admin_ Address of the administrator of this token
     * @param implementation_ The address of the implementation the contract delegates to
     * @param becomeImplementationData The encoded args for becomeImplementation
     */
    constructor(ComptrollerInterface comptroller_,
                InterestRateModel interestRateModel_,
                uint initialExchangeRateMantissa_,
                string memory name_,
                string memory symbol_,
                uint8 decimals_,
                address payable admin_,
                address implementation_,
                bytes memory becomeImplementationData,
                uint256 reserveFactorMantissa_,
                uint256 adminFeeMantissa_) public {
        // Creator of the contract is admin during initialization
        admin = msg.sender;

        // First delegate gets to initialize the delegator (i.e. storage contract)
        delegateTo(implementation_, abi.encodeWithSignature("initialize(address,address,uint256,string,string,uint8,uint256,uint256)",
                                                            comptroller_,
                                                            interestRateModel_,
                                                            initialExchangeRateMantissa_,
                                                            name_,
                                                            symbol_,
                                                            decimals_,
                                                            reserveFactorMantissa_,
                                                            adminFeeMantissa_));

        // New implementations always get set via the settor (post-initialize)
        _setImplementation(implementation_, false, becomeImplementationData);

        // Set the proper admin now that initialization is done
        admin = admin_;
    }

    /**
     * @notice Called by the admin to update the implementation of the delegator
     * @param implementation_ The address of the new implementation for delegation
     * @param allowResign Flag to indicate whether to call _resignImplementation on the old implementation
     * @param becomeImplementationData The encoded bytes data to be passed to _becomeImplementation
     */
    function _setImplementation(address implementation_, bool allowResign, bytes memory becomeImplementationData) public {
        require(hasAdminRights(), "CErc20Delegator::_setImplementation: Caller must be admin");

        if (allowResign) {
            delegateToImplementation(abi.encodeWithSignature("_resignImplementation()"));
        }

        address oldImplementation = implementation;
        implementation = implementation_;

        delegateToImplementation(abi.encodeWithSignature("_becomeImplementation(bytes)", becomeImplementationData));

        emit NewImplementation(oldImplementation, implementation);
    }

    /**
     * @notice Internal method to delegate execution to another contract
     * @dev It returns to the external caller whatever the implementation returns or forwards reverts
     * @param callee The contract to delegatecall
     * @param data The raw data to delegatecall
     * @return The returned bytes from the delegatecall
     */
    function delegateTo(address callee, bytes memory data) internal returns (bytes memory) {
        (bool success, bytes memory returnData) = callee.delegatecall(data);
        assembly {
            if eq(success, 0) {
                revert(add(returnData, 0x20), returndatasize)
            }
        }
        return returnData;
    }

    /**
     * @notice Delegates execution to the implementation contract
     * @dev It returns to the external caller whatever the implementation returns or forwards reverts
     * @param data The raw data to delegatecall
     * @return The returned bytes from the delegatecall
     */
    function delegateToImplementation(bytes memory data) public returns (bytes memory) {
        return delegateTo(implementation, data);
    }

    /**
     * @notice Delegates execution to an implementation contract
     * @dev It returns to the external caller whatever the implementation returns or forwards reverts
     */
    function () external payable {
        // delegate all other functions to current implementation
        (bool success, ) = implementation.delegatecall(msg.data);

        assembly {
            let free_mem_ptr := mload(0x40)
            returndatacopy(free_mem_ptr, 0, returndatasize)

            switch success
            case 0 { revert(free_mem_ptr, returndatasize) }
            default { return(free_mem_ptr, returndatasize) }
        }
    }
}

File 2 of 5: ComptrollerInterface.sol
pragma solidity ^0.5.16;

contract ComptrollerInterface {
    /// @notice Indicator that this is a Comptroller contract (for inspection)
    bool public constant isComptroller = true;

    /*** Assets You Are In ***/

    function enterMarkets(address[] calldata cTokens) external returns (uint[] memory);
    function exitMarket(address cToken) external returns (uint);

    /*** Policy Hooks ***/

    function mintAllowed(address cToken, address minter, uint mintAmount) external returns (uint);
    function mintWithinLimits(address cToken, uint exchangeRateMantissa, uint accountTokens, uint mintAmount) external returns (uint);
    function mintVerify(address cToken, address minter, uint mintAmount, uint mintTokens) external;

    function redeemAllowed(address cToken, address redeemer, uint redeemTokens) external returns (uint);
    function redeemVerify(address cToken, address redeemer, uint redeemAmount, uint redeemTokens) external;

    function borrowAllowed(address cToken, address borrower, uint borrowAmount) external returns (uint);
    function borrowWithinLimits(address cToken, uint accountBorrowsNew) external returns (uint);
    function borrowVerify(address cToken, address borrower, uint borrowAmount) external;

    function repayBorrowAllowed(
        address cToken,
        address payer,
        address borrower,
        uint repayAmount) external returns (uint);
    function repayBorrowVerify(
        address cToken,
        address payer,
        address borrower,
        uint repayAmount,
        uint borrowerIndex) external;

    function liquidateBorrowAllowed(
        address cTokenBorrowed,
        address cTokenCollateral,
        address liquidator,
        address borrower,
        uint repayAmount) external returns (uint);
    function liquidateBorrowVerify(
        address cTokenBorrowed,
        address cTokenCollateral,
        address liquidator,
        address borrower,
        uint repayAmount,
        uint seizeTokens) external;

    function seizeAllowed(
        address cTokenCollateral,
        address cTokenBorrowed,
        address liquidator,
        address borrower,
        uint seizeTokens) external returns (uint);
    function seizeVerify(
        address cTokenCollateral,
        address cTokenBorrowed,
        address liquidator,
        address borrower,
        uint seizeTokens) external;

    function transferAllowed(address cToken, address src, address dst, uint transferTokens) external returns (uint);
    function transferVerify(address cToken, address src, address dst, uint transferTokens) external;

    /*** Liquidity/Liquidation Calculations ***/

    function liquidateCalculateSeizeTokens(
        address cTokenBorrowed,
        address cTokenCollateral,
        uint repayAmount) external view returns (uint, uint);
}

File 3 of 5: CTokenInterfaces.sol
pragma solidity ^0.5.16;

import "./IFuseFeeDistributor.sol";
import "./ComptrollerInterface.sol";
import "./InterestRateModel.sol";

contract CTokenAdminStorage {
    /**
     * @notice Administrator for Fuse
     */
    IFuseFeeDistributor internal constant fuseAdmin = IFuseFeeDistributor(0xa731585ab05fC9f83555cf9Bff8F58ee94e18F85);

    /**
     * @notice Administrator for this contract
     */
    address payable public admin;

    /**
     * @notice Whether or not the Fuse admin has admin rights
     */
    bool public fuseAdminHasRights = true;

    /**
     * @notice Whether or not the admin has admin rights
     */
    bool public adminHasRights = true;

    /**
     * @notice Returns a boolean indicating if the sender has admin rights
     */
    function hasAdminRights() internal view returns (bool) {
        return (msg.sender == admin && adminHasRights) || (msg.sender == address(fuseAdmin) && fuseAdminHasRights);
    }
}

contract CTokenStorage is CTokenAdminStorage {
    /**
     * @dev Guard variable for re-entrancy checks
     */
    bool internal _notEntered;

    /**
     * @notice EIP-20 token name for this token
     */
    string public name;

    /**
     * @notice EIP-20 token symbol for this token
     */
    string public symbol;

    /**
     * @notice EIP-20 token decimals for this token
     */
    uint8 public decimals;

    /**
     * @notice Maximum borrow rate that can ever be applied (.0005% / block)
     */
    uint internal constant borrowRateMaxMantissa = 0.0005e16;

    /**
     * @notice Maximum fraction of interest that can be set aside for reserves + fees
     */
    uint internal constant reserveFactorPlusFeesMaxMantissa = 1e18;

    /**
     * @notice Pending administrator for this contract
     */
    address payable public pendingAdmin;

    /**
     * @notice Contract which oversees inter-cToken operations
     */
    ComptrollerInterface public comptroller;

    /**
     * @notice Model which tells what the current interest rate should be
     */
    InterestRateModel public interestRateModel;

    /**
     * @notice Initial exchange rate used when minting the first CTokens (used when totalSupply = 0)
     */
    uint internal initialExchangeRateMantissa;

    /**
     * @notice Fraction of interest currently set aside for admin fees
     */
    uint public adminFeeMantissa;

    /**
     * @notice Fraction of interest currently set aside for Fuse fees
     */
    uint public fuseFeeMantissa;

    /**
     * @notice Fraction of interest currently set aside for reserves
     */
    uint public reserveFactorMantissa;

    /**
     * @notice Block number that interest was last accrued at
     */
    uint public accrualBlockNumber;

    /**
     * @notice Accumulator of the total earned interest rate since the opening of the market
     */
    uint public borrowIndex;

    /**
     * @notice Total amount of outstanding borrows of the underlying in this market
     */
    uint public totalBorrows;

    /**
     * @notice Total amount of reserves of the underlying held in this market
     */
    uint public totalReserves;

    /**
     * @notice Total amount of admin fees of the underlying held in this market
     */
    uint public totalAdminFees;

    /**
     * @notice Total amount of Fuse fees of the underlying held in this market
     */
    uint public totalFuseFees;

    /**
     * @notice Total number of tokens in circulation
     */
    uint public totalSupply;

    /**
     * @notice Official record of token balances for each account
     */
    mapping (address => uint) internal accountTokens;

    /**
     * @notice Approved token transfer amounts on behalf of others
     */
    mapping (address => mapping (address => uint)) internal transferAllowances;

    /**
     * @notice Container for borrow balance information
     * @member principal Total balance (with accrued interest), after applying the most recent balance-changing action
     * @member interestIndex Global borrowIndex as of the most recent balance-changing action
     */
    struct BorrowSnapshot {
        uint principal;
        uint interestIndex;
    }

    /**
     * @notice Mapping of account addresses to outstanding borrow balances
     */
    mapping(address => BorrowSnapshot) internal accountBorrows;
}

contract CTokenInterface is CTokenStorage {
    /**
     * @notice Indicator that this is a CToken contract (for inspection)
     */
    bool public constant isCToken = true;

    /**
     * @notice Indicator that this is or is not a CEther contract (for inspection)
     */
    bool public constant isCEther = false;


    /*** Market Events ***/

    /**
     * @notice Event emitted when interest is accrued
     */
    event AccrueInterest(uint cashPrior, uint interestAccumulated, uint borrowIndex, uint totalBorrows);

    /**
     * @notice Event emitted when tokens are minted
     */
    event Mint(address minter, uint mintAmount, uint mintTokens);

    /**
     * @notice Event emitted when tokens are redeemed
     */
    event Redeem(address redeemer, uint redeemAmount, uint redeemTokens);

    /**
     * @notice Event emitted when underlying is borrowed
     */
    event Borrow(address borrower, uint borrowAmount, uint accountBorrows, uint totalBorrows);

    /**
     * @notice Event emitted when a borrow is repaid
     */
    event RepayBorrow(address payer, address borrower, uint repayAmount, uint accountBorrows, uint totalBorrows);

    /**
     * @notice Event emitted when a borrow is liquidated
     */
    event LiquidateBorrow(address liquidator, address borrower, uint repayAmount, address cTokenCollateral, uint seizeTokens);


    /*** Admin Events ***/

    /**
     * @notice Event emitted when the Fuse admin renounces their rights
     */
    event FuseAdminRightsRenounced();

    /**
     * @notice Event emitted when the admin renounces their rights
     */
    event AdminRightsRenounced();

    /**
     * @notice Event emitted when pendingAdmin is changed
     */
    event NewPendingAdmin(address oldPendingAdmin, address newPendingAdmin);

    /**
     * @notice Event emitted when pendingAdmin is accepted, which means admin is updated
     */
    event NewAdmin(address oldAdmin, address newAdmin);

    /**
     * @notice Event emitted when comptroller is changed
     */
    event NewComptroller(ComptrollerInterface oldComptroller, ComptrollerInterface newComptroller);

    /**
     * @notice Event emitted when interestRateModel is changed
     */
    event NewMarketInterestRateModel(InterestRateModel oldInterestRateModel, InterestRateModel newInterestRateModel);

    /**
     * @notice Event emitted when the reserve factor is changed
     */
    event NewReserveFactor(uint oldReserveFactorMantissa, uint newReserveFactorMantissa);

    /**
     * @notice Event emitted when the reserves are added
     */
    event ReservesAdded(address benefactor, uint addAmount, uint newTotalReserves);

    /**
     * @notice Event emitted when the reserves are reduced
     */
    event ReservesReduced(address admin, uint reduceAmount, uint newTotalReserves);

    /**
     * @notice Event emitted when the admin fee is changed
     */
    event NewAdminFee(uint oldAdminFeeMantissa, uint newAdminFeeMantissa);

    /**
     * @notice Event emitted when the Fuse fee is changed
     */
    event NewFuseFee(uint oldFuseFeeMantissa, uint newFuseFeeMantissa);

    /**
     * @notice EIP20 Transfer event
     */
    event Transfer(address indexed from, address indexed to, uint amount);

    /**
     * @notice EIP20 Approval event
     */
    event Approval(address indexed owner, address indexed spender, uint amount);

    /**
     * @notice Failure event
     */
    event Failure(uint error, uint info, uint detail);


    /*** User Interface ***/

    function transfer(address dst, uint amount) external returns (bool);
    function transferFrom(address src, address dst, uint amount) external returns (bool);
    function approve(address spender, uint amount) external returns (bool);
    function allowance(address owner, address spender) external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function balanceOfUnderlying(address owner) external returns (uint);
    function getAccountSnapshot(address account) external view returns (uint, uint, uint, uint);
    function borrowRatePerBlock() external view returns (uint);
    function supplyRatePerBlock() external view returns (uint);
    function totalBorrowsCurrent() external returns (uint);
    function borrowBalanceCurrent(address account) external returns (uint);
    function borrowBalanceStored(address account) public view returns (uint);
    function exchangeRateCurrent() public returns (uint);
    function exchangeRateStored() public view returns (uint);
    function getCash() external view returns (uint);
    function accrueInterest() public returns (uint);
    function seize(address liquidator, address borrower, uint seizeTokens) external returns (uint);


    /*** Admin Functions ***/

    function _setPendingAdmin(address payable newPendingAdmin) external returns (uint);
    function _acceptAdmin() external returns (uint);
    function _setComptroller(ComptrollerInterface newComptroller) public returns (uint);
    function _setReserveFactor(uint newReserveFactorMantissa) external returns (uint);
    function _reduceReserves(uint reduceAmount) external returns (uint);
    function _setInterestRateModel(InterestRateModel newInterestRateModel) public returns (uint);
}

contract CErc20Storage {
    /**
     * @notice Underlying asset for this CToken
     */
    address public underlying;
}

contract CErc20Interface is CErc20Storage {

    /*** User Interface ***/

    function mint(uint mintAmount) external returns (uint);
    function redeem(uint redeemTokens) external returns (uint);
    function redeemUnderlying(uint redeemAmount) external returns (uint);
    function borrow(uint borrowAmount) external returns (uint);
    function repayBorrow(uint repayAmount) external returns (uint);
    function repayBorrowBehalf(address borrower, uint repayAmount) external returns (uint);
    function liquidateBorrow(address borrower, uint repayAmount, CTokenInterface cTokenCollateral) external returns (uint);


    /*** Admin Functions ***/

    function _addReserves(uint addAmount) external returns (uint);
}

contract CEtherInterface is CErc20Storage {
    /**
     * @notice Indicator that this is a CEther contract (for inspection)
     */
    bool public constant isCEther = true;
}

contract CDelegationStorage {
    /**
     * @notice Implementation address for this contract
     */
    address public implementation;
}

contract CDelegatorInterface is CDelegationStorage {
    /**
     * @notice Emitted when implementation is changed
     */
    event NewImplementation(address oldImplementation, address newImplementation);

    /**
     * @notice Called by the admin to update the implementation of the delegator
     * @param implementation_ The address of the new implementation for delegation
     * @param allowResign Flag to indicate whether to call _resignImplementation on the old implementation
     * @param becomeImplementationData The encoded bytes data to be passed to _becomeImplementation
     */
    function _setImplementation(address implementation_, bool allowResign, bytes memory becomeImplementationData) public;
}

contract CDelegateInterface is CDelegationStorage {
    /**
     * @notice Called by the delegator on a delegate to initialize it for duty
     * @dev Should revert if any issues arise which make it unfit for delegation
     * @param data The encoded bytes data for any initialization
     */
    function _becomeImplementation(bytes memory data) public;

    /**
     * @notice Called by the delegator on a delegate to forfeit its responsibility
     */
    function _resignImplementation() public;
}

File 4 of 5: IFuseFeeDistributor.sol
pragma solidity ^0.5.16;

interface IFuseFeeDistributor {
    function minBorrowEth() external view returns (uint256);
    function maxSupplyEth() external view returns (uint256);
    function maxUtilizationRate() external view returns (uint256);
    function interestFeeRate() external view returns (uint256);
    function () external payable;
}

File 5 of 5: InterestRateModel.sol
pragma solidity ^0.5.16;

/**
  * @title Compound's InterestRateModel Interface
  * @author Compound
  */
contract InterestRateModel {
    /// @notice Indicator that this is an InterestRateModel contract (for inspection)
    bool public constant isInterestRateModel = true;

    /**
      * @notice Calculates the current borrow interest rate per block
      * @param cash The total amount of cash the market has
      * @param borrows The total amount of borrows the market has outstanding
      * @param reserves The total amnount of reserves the market has
      * @return The borrow rate per block (as a percentage, and scaled by 1e18)
      */
    function getBorrowRate(uint cash, uint borrows, uint reserves) external view returns (uint);

    /**
      * @notice Calculates the current supply interest rate per block
      * @param cash The total amount of cash the market has
      * @param borrows The total amount of borrows the market has outstanding
      * @param reserves The total amnount of reserves the market has
      * @param reserveFactorMantissa The current reserve factor the market has
      * @return The supply rate per block (as a percentage, and scaled by 1e18)
      */
    function getSupplyRate(uint cash, uint borrows, uint reserves, uint reserveFactorMantissa) external view returns (uint);

}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract ComptrollerInterface","name":"comptroller_","type":"address"},{"internalType":"contract InterestRateModel","name":"interestRateModel_","type":"address"},{"internalType":"uint256","name":"initialExchangeRateMantissa_","type":"uint256"},{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint8","name":"decimals_","type":"uint8"},{"internalType":"address payable","name":"admin_","type":"address"},{"internalType":"address","name":"implementation_","type":"address"},{"internalType":"bytes","name":"becomeImplementationData","type":"bytes"},{"internalType":"uint256","name":"reserveFactorMantissa_","type":"uint256"},{"internalType":"uint256","name":"adminFeeMantissa_","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldImplementation","type":"address"},{"indexed":false,"internalType":"address","name":"newImplementation","type":"address"}],"name":"NewImplementation","type":"event"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"constant":false,"inputs":[{"internalType":"address","name":"implementation_","type":"address"},{"internalType":"bool","name":"allowResign","type":"bool"},{"internalType":"bytes","name":"becomeImplementationData","type":"bytes"}],"name":"_setImplementation","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"admin","outputs":[{"internalType":"address payable","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"adminHasRights","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes","name":"data","type":"bytes"}],"name":"delegateToImplementation","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"fuseAdminHasRights","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"}]

Deployed Bytecode

0x6080604052600436106100555760003560e01c80630933c1ed146100d85780630a755ec2146102005780632f1069ba14610229578063555bcc401461023e5780635c60da1b1461030a578063f851a4401461033b575b600080546040516001600160a01b0390911690829036908083838082843760405192019450600093509091505080830381855af49150503d80600081146100b8576040519150601f19603f3d011682016040523d82523d6000602084013e6100bd565b606091505b505090506040513d6000823e8180156100d4573d82f35b3d82fd5b3480156100e457600080fd5b5061018b600480360360208110156100fb57600080fd5b81019060208101813564010000000081111561011657600080fd5b82018360208201111561012857600080fd5b8035906020019184600183028401116401000000008311171561014a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610350945050505050565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101c55781810151838201526020016101ad565b50505050905090810190601f1680156101f25780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561020c57600080fd5b5061021561036f565b604080519115158252519081900360200190f35b34801561023557600080fd5b5061021561037f565b34801561024a57600080fd5b506103086004803603606081101561026157600080fd5b6001600160a01b0382351691602081013515159181019060608101604082013564010000000081111561029357600080fd5b8201836020820111156102a557600080fd5b803590602001918460018302840111640100000000831117156102c757600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061038f945050505050565b005b34801561031657600080fd5b5061031f610528565b604080516001600160a01b039092168252519081900360200190f35b34801561034757600080fd5b5061031f610537565b600054606090610369906001600160a01b031683610546565b92915050565b600154600160a81b900460ff1681565b600154600160a01b900460ff1681565b610397610608565b6103d25760405162461bcd60e51b81526004018080602001828103825260398152602001806106666039913960400191505060405180910390fd5b811561040c576040805160048152602481019091526020810180516001600160e01b031663153ab50560e01b17905261040a90610350565b505b600080546001600160a01b038581166001600160a01b0319831617835560405160206024820181815286516044840152865193909416946104d99487949093849360649091019290860191908190849084905b8381101561047757818101518382015260200161045f565b50505050905090810190601f1680156104a45780820380516001836020036101000a031916815260200191505b5060408051601f198184030181529190526020810180516001600160e01b0316630adccee560e31b1790529250610350915050565b50600054604080516001600160a01b038085168252909216602083015280517fd604de94d45953f9138079ec1b82d533cb2160c906d1076d1f7ed54befbca97a9281900390910190a150505050565b6000546001600160a01b031681565b6001546001600160a01b031681565b606060006060846001600160a01b0316846040518082805190602001908083835b602083106105865780518252601f199092019160209182019101610567565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d80600081146105e6576040519150601f19603f3d011682016040523d82523d6000602084013e6105eb565b606091505b50915091506000821415610600573d60208201fd5b949350505050565b6001546000906001600160a01b03163314801561062e5750600154600160a81b900460ff165b8061066057503373a731585ab05fc9f83555cf9bff8f58ee94e18f851480156106605750600154600160a01b900460ff165b90509056fe43457263323044656c656761746f723a3a5f736574496d706c656d656e746174696f6e3a2043616c6c6572206d7573742062652061646d696ea265627a7a72315820b99d1aafe9bb09558f3b40fd7492599b82ceb08f976edfc1123d08f376d91ebd64736f6c63430005110032

Deployed Bytecode Sourcemap

213:5321:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5176:12;5194:14;;:37;;-1:-1:-1;;;;;5194:14:0;;;;5176:12;;5222:8;;5194:37;5176:12;5222:8;;5176:12;5194:37;1:33:-1;5194:37:0;;45:16:-1;;;-1:-1;5194:37:0;;-1:-1:-1;5194:37:0;;-1:-1:-1;;5194:37:0;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;5175:56:0;;;5294:4;5288:11;5345:14;5342:1;5328:12;5313:47;5383:7;5404:47;;;;5496:14;5482:12;5475:36;5404:47;5434:14;5420:12;5413:36;4732:141;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4732:141:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;4732:141:0;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;4732:141:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;4732:141:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;4732:141:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;4732:141:0;;-1:-1:-1;4732:141:0;;-1:-1:-1;;;;;4732:141:0:i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;4732:141:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;660:33:1;;8:9:-1;5:2;;;30:1;27;20:12;5:2;660:33:1;;;:::i;:::-;;;;;;;;;;;;;;;;;;538:37;;8:9:-1;5:2;;;30:1;27;20:12;5:2;538:37:1;;;:::i;3085:642:0:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3085:642:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;3085:642:0;;;;;;;;;;;;;;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;3085:642:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;3085:642:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;3085:642:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;3085:642:0;;-1:-1:-1;3085:642:0;;-1:-1:-1;;;;;3085:642:0:i;:::-;;11036:29:1;;8:9:-1;5:2;;;30:1;27;20:12;5:2;11036:29:1;;;:::i;:::-;;;;-1:-1:-1;;;;;11036:29:1;;;;;;;;;;;;;;420:28;;8:9:-1;5:2;;;30:1;27;20:12;5:2;420:28:1;;;:::i;4732:141:0:-;4844:14;;4801:12;;4833:32;;-1:-1:-1;;;;;4844:14:0;4860:4;4833:10;:32::i;:::-;4826:39;4732:141;-1:-1:-1;;4732:141:0:o;660:33:1:-;;;-1:-1:-1;;;660:33:1;;;;;:::o;538:37::-;;;-1:-1:-1;;;538:37:1;;;;;:::o;3085:642:0:-;3221:16;:14;:16::i;:::-;3213:86;;;;-1:-1:-1;;;3213:86:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3316:11;3312:120;;;3369:50;;;22:32:-1;6:49;;3369:50:0;;;;;;49:4:-1;25:18;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;3344:76:0;;:24;:76::i;:::-;;3312:120;3444:25;3472:14;;-1:-1:-1;;;;;3497:32:0;;;-1:-1:-1;;;;;;3497:32:0;;;;;3567:81;;;;;;;;;;;;;;;;;3472:14;;;;;3542:107;;3623:24;;3567:81;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;3567:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3567:81:0;;;-1:-1:-1;;26:21;;;22:32;6:49;;3567:81:0;;;49:4:-1;25:18;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;3567:81:0;-1:-1:-1;3542:24:0;;-1:-1:-1;;3542:107:0:i;:::-;-1:-1:-1;3704:14:0;;3667:52;;;-1:-1:-1;;;;;3667:52:0;;;;;3704:14;;;3667:52;;;;;;;;;;;;;;;;3085:642;;;;:::o;11036:29:1:-;;;-1:-1:-1;;;;;11036:29:1;;:::o;420:28::-;;;-1:-1:-1;;;;;420:28:1;;:::o;4087:343:0:-;4160:12;4186;4200:23;4227:6;-1:-1:-1;;;;;4227:19:0;4247:4;4227:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;4227:25:0;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;4185:67:0;;;;4302:1;4293:7;4290:14;4287:2;;;4354:14;4347:4;4335:10;4331:21;4324:45;4287:2;4412:10;4087:343;-1:-1:-1;;;;4087:343:0:o;796:180:1:-;884:5;;845:4;;-1:-1:-1;;;;;884:5:1;870:10;:19;:37;;;;-1:-1:-1;893:14:1;;-1:-1:-1;;;893:14:1;;;;870:37;869:99;;;-1:-1:-1;913:10:1;302:42;913:32;:54;;;;-1:-1:-1;949:18:1;;-1:-1:-1;;;949:18:1;;;;913:54;862:106;;796:180;:::o

Swarm Source

bzzr://b99d1aafe9bb09558f3b40fd7492599b82ceb08f976edfc1123d08f376d91ebd

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.