Contract 0xd9f223a36c2e398b0886f945a7e556b41ef91a3c 2

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x620a0a6e267b302d683e7dc6095f41494fd45279f66a46e0469e8ef17c5e8a620x6080604047043192022-01-16 17:50:34123 days 11 hrs ago0xb8f02248d53f7edfa38e79263e743e9390f81942 IN  Create: FuseFeeDistributorArbitrum0 ETH0.09814325317 ETH
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x41d2aae8de03a0240f82d51a20e5635c885a7f67d1b2fa8a56e1799b39b47c32125039802022-05-19 18:29:0110 hrs 45 mins ago 0xc7d021bd813f3b4bb801a4361fbcf3703ed61716 0xd9f223a36c2e398b0886f945a7e556b41ef91a3c0 ETH
0x41d2aae8de03a0240f82d51a20e5635c885a7f67d1b2fa8a56e1799b39b47c32125039802022-05-19 18:29:0110 hrs 45 mins ago 0xc7d021bd813f3b4bb801a4361fbcf3703ed61716 0xd9f223a36c2e398b0886f945a7e556b41ef91a3c0 ETH
0x41d2aae8de03a0240f82d51a20e5635c885a7f67d1b2fa8a56e1799b39b47c32125039802022-05-19 18:29:0110 hrs 45 mins ago 0xfd69b5ad5cfaef73f2c900a5af4dff1942f9a760 0xd9f223a36c2e398b0886f945a7e556b41ef91a3c0 ETH
0x41d2aae8de03a0240f82d51a20e5635c885a7f67d1b2fa8a56e1799b39b47c32125039802022-05-19 18:29:0110 hrs 45 mins ago 0xfd69b5ad5cfaef73f2c900a5af4dff1942f9a760 0xd9f223a36c2e398b0886f945a7e556b41ef91a3c0 ETH
0x41d2aae8de03a0240f82d51a20e5635c885a7f67d1b2fa8a56e1799b39b47c32125039802022-05-19 18:29:0110 hrs 45 mins ago 0xc7d021bd813f3b4bb801a4361fbcf3703ed61716 0xd9f223a36c2e398b0886f945a7e556b41ef91a3c0 ETH
0x41d2aae8de03a0240f82d51a20e5635c885a7f67d1b2fa8a56e1799b39b47c32125039802022-05-19 18:29:0110 hrs 45 mins ago 0xc7d021bd813f3b4bb801a4361fbcf3703ed61716 0xd9f223a36c2e398b0886f945a7e556b41ef91a3c0 ETH
0x41d2aae8de03a0240f82d51a20e5635c885a7f67d1b2fa8a56e1799b39b47c32125039802022-05-19 18:29:0110 hrs 45 mins ago 0xc7d021bd813f3b4bb801a4361fbcf3703ed61716 0xd9f223a36c2e398b0886f945a7e556b41ef91a3c0 ETH
0x41d2aae8de03a0240f82d51a20e5635c885a7f67d1b2fa8a56e1799b39b47c32125039802022-05-19 18:29:0110 hrs 45 mins ago 0xfd69b5ad5cfaef73f2c900a5af4dff1942f9a760 0xd9f223a36c2e398b0886f945a7e556b41ef91a3c0 ETH
0x41d2aae8de03a0240f82d51a20e5635c885a7f67d1b2fa8a56e1799b39b47c32125039802022-05-19 18:29:0110 hrs 45 mins ago 0xe0d7fb6039e4156a358cb0ead31a706b1caeff06 0xd9f223a36c2e398b0886f945a7e556b41ef91a3c0 ETH
0x41d2aae8de03a0240f82d51a20e5635c885a7f67d1b2fa8a56e1799b39b47c32125039802022-05-19 18:29:0110 hrs 45 mins ago 0xe0d7fb6039e4156a358cb0ead31a706b1caeff06 0xd9f223a36c2e398b0886f945a7e556b41ef91a3c0 ETH
0x41d2aae8de03a0240f82d51a20e5635c885a7f67d1b2fa8a56e1799b39b47c32125039802022-05-19 18:29:0110 hrs 45 mins ago 0xc7d021bd813f3b4bb801a4361fbcf3703ed61716 0xd9f223a36c2e398b0886f945a7e556b41ef91a3c0 ETH
0x41d2aae8de03a0240f82d51a20e5635c885a7f67d1b2fa8a56e1799b39b47c32125039802022-05-19 18:29:0110 hrs 45 mins ago 0xc7d021bd813f3b4bb801a4361fbcf3703ed61716 0xd9f223a36c2e398b0886f945a7e556b41ef91a3c0 ETH
0x41d2aae8de03a0240f82d51a20e5635c885a7f67d1b2fa8a56e1799b39b47c32125039802022-05-19 18:29:0110 hrs 45 mins ago 0xfd69b5ad5cfaef73f2c900a5af4dff1942f9a760 0xd9f223a36c2e398b0886f945a7e556b41ef91a3c0 ETH
0x41d2aae8de03a0240f82d51a20e5635c885a7f67d1b2fa8a56e1799b39b47c32125039802022-05-19 18:29:0110 hrs 45 mins ago 0xe0d7fb6039e4156a358cb0ead31a706b1caeff06 0xd9f223a36c2e398b0886f945a7e556b41ef91a3c0 ETH
0x41d2aae8de03a0240f82d51a20e5635c885a7f67d1b2fa8a56e1799b39b47c32125039802022-05-19 18:29:0110 hrs 45 mins ago 0xc7d021bd813f3b4bb801a4361fbcf3703ed61716 0xd9f223a36c2e398b0886f945a7e556b41ef91a3c0 ETH
0x41d2aae8de03a0240f82d51a20e5635c885a7f67d1b2fa8a56e1799b39b47c32125039802022-05-19 18:29:0110 hrs 45 mins ago 0xc7d021bd813f3b4bb801a4361fbcf3703ed61716 0xd9f223a36c2e398b0886f945a7e556b41ef91a3c0 ETH
0x41d2aae8de03a0240f82d51a20e5635c885a7f67d1b2fa8a56e1799b39b47c32125039802022-05-19 18:29:0110 hrs 45 mins ago 0xfd69b5ad5cfaef73f2c900a5af4dff1942f9a760 0xd9f223a36c2e398b0886f945a7e556b41ef91a3c0 ETH
0x41d2aae8de03a0240f82d51a20e5635c885a7f67d1b2fa8a56e1799b39b47c32125039802022-05-19 18:29:0110 hrs 45 mins ago 0xe0d7fb6039e4156a358cb0ead31a706b1caeff06 0xd9f223a36c2e398b0886f945a7e556b41ef91a3c0 ETH
0x41d2aae8de03a0240f82d51a20e5635c885a7f67d1b2fa8a56e1799b39b47c32125039802022-05-19 18:29:0110 hrs 45 mins ago 0xc7d021bd813f3b4bb801a4361fbcf3703ed61716 0xd9f223a36c2e398b0886f945a7e556b41ef91a3c0 ETH
0x41d2aae8de03a0240f82d51a20e5635c885a7f67d1b2fa8a56e1799b39b47c32125039802022-05-19 18:29:0110 hrs 45 mins ago 0xc7d021bd813f3b4bb801a4361fbcf3703ed61716 0xd9f223a36c2e398b0886f945a7e556b41ef91a3c0 ETH
0x41d2aae8de03a0240f82d51a20e5635c885a7f67d1b2fa8a56e1799b39b47c32125039802022-05-19 18:29:0110 hrs 45 mins ago 0xc7d021bd813f3b4bb801a4361fbcf3703ed61716 0xd9f223a36c2e398b0886f945a7e556b41ef91a3c0 ETH
0x41d2aae8de03a0240f82d51a20e5635c885a7f67d1b2fa8a56e1799b39b47c32125039802022-05-19 18:29:0110 hrs 45 mins ago 0xc7d021bd813f3b4bb801a4361fbcf3703ed61716 0xd9f223a36c2e398b0886f945a7e556b41ef91a3c0 ETH
0x41d2aae8de03a0240f82d51a20e5635c885a7f67d1b2fa8a56e1799b39b47c32125039802022-05-19 18:29:0110 hrs 45 mins ago 0xc7d021bd813f3b4bb801a4361fbcf3703ed61716 0xd9f223a36c2e398b0886f945a7e556b41ef91a3c0 ETH
0x41d2aae8de03a0240f82d51a20e5635c885a7f67d1b2fa8a56e1799b39b47c32125039802022-05-19 18:29:0110 hrs 45 mins ago 0xe0d7fb6039e4156a358cb0ead31a706b1caeff06 0xd9f223a36c2e398b0886f945a7e556b41ef91a3c0 ETH
0xe8a6be1e66963044d91dea4e52824da564478c37419b2c964804e6a851a0f962125039562022-05-19 18:29:0110 hrs 45 mins ago 0xc7d021bd813f3b4bb801a4361fbcf3703ed61716 0xd9f223a36c2e398b0886f945a7e556b41ef91a3c0 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FuseFeeDistributorArbitrum

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 9 : FuseFeeDistributorArbitrum.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;

import "../../FuseFeeDistributor.sol";

/**
 * @title FuseFeeDistributorArbitrum
 * @author David Lucid <[email protected]> (https://github.com/davidlucid)
 * @notice FuseFeeDistributorArbitrum controls and receives protocol fees from Fuse pools and relays admin actions to Fuse pools on Arbitrum.
 */
contract FuseFeeDistributorArbitrum is FuseFeeDistributor {
    /**
     * @dev Deploys a `CEtherDelegator`.
     * @param constructorData `CEtherDelegator` ABI-encoded constructor data.
     */
    function deployCEther(bytes calldata constructorData) external override returns (address) {
        // ABI decode constructor data
        (address comptroller, , , , address implementation, , , ) = abi.decode(constructorData, (address, address, string, string, address, bytes, uint256, uint256));

        // Check implementation whitelist
        require(cEtherDelegateWhitelist[address(0)][implementation][false], "CEtherDelegate contract not whitelisted.");

        // Make sure comptroller == msg.sender
        require(comptroller == msg.sender, "Comptroller is not sender.");

        // Deploy Unitroller using msg.sender, underlying, and block.number as a salt
        bytes memory cEtherDelegatorCreationCode = hex"608060405234801561001057600080fd5b50604051610785380380610785833981810160405261010081101561003457600080fd5b8151602083015160408085018051915193959294830192918464010000000082111561005f57600080fd5b90830190602082018581111561007457600080fd5b825164010000000081118282018810171561008e57600080fd5b82525081516020918201929091019080838360005b838110156100bb5781810151838201526020016100a3565b50505050905090810190601f1680156100e85780820380516001836020036101000a031916815260200191505b506040526020018051604051939291908464010000000082111561010b57600080fd5b90830190602082018581111561012057600080fd5b825164010000000081118282018810171561013a57600080fd5b82525081516020918201929091019080838360005b8381101561016757818101518382015260200161014f565b50505050905090810190601f1680156101945780820380516001836020036101000a031916815260200191505b506040818152602083015192018051929491939192846401000000008211156101bc57600080fd5b9083019060208201858111156101d157600080fd5b82516401000000008111828201881017156101eb57600080fd5b82525081516020918201929091019080838360005b83811015610218578181015183820152602001610200565b50505050905090810190601f1680156102455780820380516001836020036101000a031916815260200191505b5060405260200180519060200190929190805190602001909291905050506103ba8489898989878760405160240180876001600160a01b03166001600160a01b03168152602001866001600160a01b03166001600160a01b031681526020018060200180602001858152602001848152602001838103835287818151815260200191508051906020019080838360005b838110156102ed5781810151838201526020016102d5565b50505050905090810190601f16801561031a5780820380516001836020036101000a031916815260200191505b50838103825286518152865160209182019188019080838360005b8381101561034d578181015183820152602001610335565b50505050905090810190601f16801561037a5780820380516001836020036101000a031916815260200191505b5060408051601f198184030181529190526020810180516001600160e01b03908116631e70b25560e21b1790915290995061049c16975050505050505050565b5061048e848560008660405160240180846001600160a01b03166001600160a01b031681526020018315151515815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561042557818101518382015260200161040d565b50505050905090810190601f1680156104525780820380516001836020036101000a031916815260200191505b5060408051601f198184030181529190526020810180516001600160e01b039081166350d85b7360e01b1790915290955061049c169350505050565b50505050505050505061055e565b606060006060846001600160a01b0316846040518082805190602001908083835b602083106104dc5780518252601f1990920191602091820191016104bd565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d806000811461053c576040519150601f19603f3d011682016040523d82523d6000602084013e610541565b606091505b50915091506000821415610556573d60208201fd5b949350505050565b6102188061056d6000396000f3fe60806040526004361061001e5760003560e01c80635c60da1b146100e1575b6000546040805160048152602481019091526020810180516001600160e01b031663076de25160e21b17905261005d916001600160a01b031690610112565b50600080546040516001600160a01b0390911690829036908083838082843760405192019450600093509091505080830381855af49150503d80600081146100c1576040519150601f19603f3d011682016040523d82523d6000602084013e6100c6565b606091505b505090506040513d6000823e8180156100dd573d82f35b3d82fd5b3480156100ed57600080fd5b506100f66101d4565b604080516001600160a01b039092168252519081900360200190f35b606060006060846001600160a01b0316846040518082805190602001908083835b602083106101525780518252601f199092019160209182019101610133565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d80600081146101b2576040519150601f19603f3d011682016040523d82523d6000602084013e6101b7565b606091505b509150915060008214156101cc573d60208201fd5b949350505050565b6000546001600160a01b03168156fea265627a7a7231582080d36dfc16f2b75d4da188aa983cd8c9d6d990a3dfadcda4c9afa32284ba80dc64736f6c63430005110032";
        cEtherDelegatorCreationCode = abi.encodePacked(cEtherDelegatorCreationCode, constructorData);
        bytes32 salt = keccak256(abi.encodePacked(msg.sender, address(0), block.number));
        address proxy;

        assembly {
            proxy := create2(0, add(cEtherDelegatorCreationCode, 32), mload(cEtherDelegatorCreationCode), salt)
            if iszero(extcodesize(proxy)) {
                revert(0, "Failed to deploy CEther.")
            }
        }

        return proxy;
    }

    /**
     * @dev Deploys a `CErc20Delegator`.
     * @param constructorData `CErc20Delegator` ABI-encoded constructor data.
     */
    function deployCErc20(bytes calldata constructorData) external override returns (address) {
        // ABI decode constructor data
        (address underlying, address comptroller, , , , address implementation, , , ) = abi.decode(constructorData, (address, address, address, string, string, address, bytes, uint256, uint256));

        // Check implementation whitelist
        require(cErc20DelegateWhitelist[address(0)][implementation][false], "CErc20Delegate contract not whitelisted.");

        // Make sure comptroller == msg.sender
        require(comptroller == msg.sender, "Comptroller is not sender.");

        // Deploy CErc20Delegator using msg.sender, underlying, and block.number as a salt
        bytes memory cErc20DelegatorCreationCode = hex"608060405234801561001057600080fd5b506040516107f53803806107f5833981810160405261012081101561003457600080fd5b81516020830151604080850151606086018051925194969395919493918201928464010000000082111561006757600080fd5b90830190602082018581111561007c57600080fd5b825164010000000081118282018810171561009657600080fd5b82525081516020918201929091019080838360005b838110156100c35781810151838201526020016100ab565b50505050905090810190601f1680156100f05780820380516001836020036101000a031916815260200191505b506040526020018051604051939291908464010000000082111561011357600080fd5b90830190602082018581111561012857600080fd5b825164010000000081118282018810171561014257600080fd5b82525081516020918201929091019080838360005b8381101561016f578181015183820152602001610157565b50505050905090810190601f16801561019c5780820380516001836020036101000a031916815260200191505b506040818152602083015192018051929491939192846401000000008211156101c457600080fd5b9083019060208201858111156101d957600080fd5b82516401000000008111828201881017156101f357600080fd5b82525081516020918201929091019080838360005b83811015610220578181015183820152602001610208565b50505050905090810190601f16801561024d5780820380516001836020036101000a031916815260200191505b50604081815260208381015193909101516001600160a01b03808e1660248501908152818e166044860152908c16606485015260c4840185905260e4840182905260e0608485019081528b516101048601528b519597509195506103b59489948f948f948f948f948f948d948d949260a4830192610124019189019080838360005b838110156102e75781810151838201526020016102cf565b50505050905090810190601f1680156103145780820380516001836020036101000a031916815260200191505b50838103825286518152865160209182019188019080838360005b8381101561034757818101518382015260200161032f565b50505050905090810190601f1680156103745780820380516001836020036101000a031916815260200191505b5060408051601f198184030181529190526020810180516001600160e01b0390811663a0b0d28960e01b17909152909a506104981698505050505050505050565b50610489848560008660405160240180846001600160a01b03166001600160a01b031681526020018315151515815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610420578181015183820152602001610408565b50505050905090810190601f16801561044d5780820380516001836020036101000a031916815260200191505b5060408051601f198184030181529190526020810180516001600160e01b039081166350d85b7360e01b17909152909550610498169350505050565b5050505050505050505061055a565b606060006060846001600160a01b0316846040518082805190602001908083835b602083106104d85780518252601f1990920191602091820191016104b9565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610538576040519150601f19603f3d011682016040523d82523d6000602084013e61053d565b606091505b50915091506000821415610552573d60208201fd5b949350505050565b61028c806105696000396000f3fe60806040526004361061001e5760003560e01c80635c60da1b1461011e575b341561005b5760405162461bcd60e51b81526004018080602001828103825260378152602001806102216037913960400191505060405180910390fd5b6000546040805160048152602481019091526020810180516001600160e01b031663076de25160e21b17905261009a916001600160a01b03169061014f565b50600080546040516001600160a01b0390911690829036908083838082843760405192019450600093509091505080830381855af49150503d80600081146100fe576040519150601f19603f3d011682016040523d82523d6000602084013e610103565b606091505b505090506040513d6000823e81801561011a573d82f35b3d82fd5b34801561012a57600080fd5b50610133610211565b604080516001600160a01b039092168252519081900360200190f35b606060006060846001600160a01b0316846040518082805190602001908083835b6020831061018f5780518252601f199092019160209182019101610170565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d80600081146101ef576040519150601f19603f3d011682016040523d82523d6000602084013e6101f4565b606091505b50915091506000821415610209573d60208201fd5b949350505050565b6000546001600160a01b03168156fe43457263323044656c656761746f723a66616c6c6261636b3a2063616e6e6f742073656e642076616c756520746f2066616c6c6261636ba265627a7a72315820fc5fcc16235ee4edd9b1c0ecaf05a926cd9474cdf4a7678b9c4f511421cf2ac364736f6c63430005110032";
        cErc20DelegatorCreationCode = abi.encodePacked(cErc20DelegatorCreationCode, constructorData);
        bytes32 salt = keccak256(abi.encodePacked(msg.sender, underlying, block.number));
        address proxy;

        assembly {
            proxy := create2(0, add(cErc20DelegatorCreationCode, 32), mload(cErc20DelegatorCreationCode), salt)
            if iszero(extcodesize(proxy)) {
                revert(0, "Failed to deploy CErc20.")
            }
        }

        return proxy;
    }
}

File 2 of 9 : FuseFeeDistributor.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;

import "@openzeppelin/contracts-upgradeable/proxy/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/SafeERC20Upgradeable.sol";

/**
 * @title FuseFeeDistributor
 * @author David Lucid <[email protected]> (https://github.com/davidlucid)
 * @notice FuseFeeDistributor controls and receives protocol fees from Fuse pools and relays admin actions to Fuse pools.
 */
contract FuseFeeDistributor is Initializable, OwnableUpgradeable {
    using AddressUpgradeable for address;
    using SafeERC20Upgradeable for IERC20Upgradeable;

    /**
     * @dev Initializer that sets initial values of state variables.
     * @param _defaultInterestFeeRate The default proportion of Fuse pool interest taken as a protocol fee (scaled by 1e18).
     */
    function initialize(uint256 _defaultInterestFeeRate) public initializer {
        require(_defaultInterestFeeRate <= 1e18, "Interest fee rate cannot be more than 100%.");
        __Ownable_init();
        defaultInterestFeeRate = _defaultInterestFeeRate;
        maxSupplyEth = uint256(-1);
        maxUtilizationRate = uint256(-1);
    }

    /**
     * @notice The proportion of Fuse pool interest taken as a protocol fee (scaled by 1e18).
     */
    uint256 public defaultInterestFeeRate;

    /**
     * @dev Sets the default proportion of Fuse pool interest taken as a protocol fee.
     * @param _defaultInterestFeeRate The default proportion of Fuse pool interest taken as a protocol fee (scaled by 1e18).
     */
    function _setDefaultInterestFeeRate(uint256 _defaultInterestFeeRate) external onlyOwner {
        require(_defaultInterestFeeRate <= 1e18, "Interest fee rate cannot be more than 100%.");
        defaultInterestFeeRate = _defaultInterestFeeRate;
    }

    /**
     * @dev Withdraws accrued fees on interest.
     * @param erc20Contract The ERC20 token address to withdraw. Set to the zero address to withdraw ETH.
     */
    function _withdrawAssets(address erc20Contract) external {
        if (erc20Contract == address(0)) {
            uint256 balance = address(this).balance;
            require(balance > 0, "No balance available to withdraw.");
            (bool success, ) = owner().call{value: balance}("");
            require(success, "Failed to transfer ETH balance to msg.sender.");
        } else {
            IERC20Upgradeable token = IERC20Upgradeable(erc20Contract);
            uint256 balance = token.balanceOf(address(this));
            require(balance > 0, "No token balance available to withdraw.");
            token.safeTransfer(owner(), balance);
        }
    }

    /**
     * @dev Minimum borrow balance (in ETH) per user per Fuse pool asset (only checked on new borrows, not redemptions).
     */
    uint256 public minBorrowEth;

    /**
     * @dev Maximum supply balance (in ETH) per user per Fuse pool asset.
     * No longer used as of `Rari-Capital/compound-protocol` version `fuse-v1.1.0`.
     */
    uint256 public maxSupplyEth;

    /**
     * @dev Maximum utilization rate (scaled by 1e18) for Fuse pool assets (only checked on new borrows, not redemptions).
     * No longer used as of `Rari-Capital/compound-protocol` version `fuse-v1.1.0`.
     */
    uint256 public maxUtilizationRate;

    /**
     * @dev Sets the proportion of Fuse pool interest taken as a protocol fee.
     * @param _minBorrowEth Minimum borrow balance (in ETH) per user per Fuse pool asset (only checked on new borrows, not redemptions).
     * @param _maxSupplyEth Maximum supply balance (in ETH) per user per Fuse pool asset.
     * @param _maxUtilizationRate Maximum utilization rate (scaled by 1e18) for Fuse pool assets (only checked on new borrows, not redemptions).
     */
    function _setPoolLimits(uint256 _minBorrowEth, uint256 _maxSupplyEth, uint256 _maxUtilizationRate) external onlyOwner {
        minBorrowEth = _minBorrowEth;
        maxSupplyEth = _maxSupplyEth;
        maxUtilizationRate = _maxUtilizationRate;
    }

    /**
     * @dev Receives ETH fees.
     */
    receive() external payable { }

    /**
     * @dev Sends data to a contract.
     * @param targets The contracts to which `data` will be sent.
     * @param data The data to be sent to each of `targets`.
     */
    function _callPool(address[] calldata targets, bytes[] calldata data) external onlyOwner {
        require(targets.length > 0 && targets.length == data.length, "Array lengths must be equal and greater than 0.");
        for (uint256 i = 0; i < targets.length; i++) targets[i].functionCall(data[i]);
    }

    /**
     * @dev Sends data to a contract.
     * @param targets The contracts to which `data` will be sent.
     * @param data The data to be sent to each of `targets`.
     */
    function _callPool(address[] calldata targets, bytes calldata data) external onlyOwner {
        require(targets.length > 0, "No target addresses specified.");
        for (uint256 i = 0; i < targets.length; i++) targets[i].functionCall(data);
    }

    /**
     * @dev Deploys a `CEtherDelegator`.
     * @param constructorData `CEtherDelegator` ABI-encoded constructor data.
     */
    function deployCEther(bytes calldata constructorData) external virtual returns (address) {
        // ABI decode constructor data
        (address comptroller, , , , address implementation, , , ) = abi.decode(constructorData, (address, address, string, string, address, bytes, uint256, uint256));

        // Check implementation whitelist
        require(cEtherDelegateWhitelist[address(0)][implementation][false], "CEtherDelegate contract not whitelisted.");

        // Make sure comptroller == msg.sender
        require(comptroller == msg.sender, "Comptroller is not sender.");

        // Deploy Unitroller using msg.sender, underlying, and block.number as a salt
        bytes memory cEtherDelegatorCreationCode = hex"608060405234801561001057600080fd5b50604051610785380380610785833981810160405261010081101561003457600080fd5b8151602083015160408085018051915193959294830192918464010000000082111561005f57600080fd5b90830190602082018581111561007457600080fd5b825164010000000081118282018810171561008e57600080fd5b82525081516020918201929091019080838360005b838110156100bb5781810151838201526020016100a3565b50505050905090810190601f1680156100e85780820380516001836020036101000a031916815260200191505b506040526020018051604051939291908464010000000082111561010b57600080fd5b90830190602082018581111561012057600080fd5b825164010000000081118282018810171561013a57600080fd5b82525081516020918201929091019080838360005b8381101561016757818101518382015260200161014f565b50505050905090810190601f1680156101945780820380516001836020036101000a031916815260200191505b506040818152602083015192018051929491939192846401000000008211156101bc57600080fd5b9083019060208201858111156101d157600080fd5b82516401000000008111828201881017156101eb57600080fd5b82525081516020918201929091019080838360005b83811015610218578181015183820152602001610200565b50505050905090810190601f1680156102455780820380516001836020036101000a031916815260200191505b5060405260200180519060200190929190805190602001909291905050506103ba8489898989878760405160240180876001600160a01b03166001600160a01b03168152602001866001600160a01b03166001600160a01b031681526020018060200180602001858152602001848152602001838103835287818151815260200191508051906020019080838360005b838110156102ed5781810151838201526020016102d5565b50505050905090810190601f16801561031a5780820380516001836020036101000a031916815260200191505b50838103825286518152865160209182019188019080838360005b8381101561034d578181015183820152602001610335565b50505050905090810190601f16801561037a5780820380516001836020036101000a031916815260200191505b5060408051601f198184030181529190526020810180516001600160e01b03908116631e70b25560e21b1790915290995061049c16975050505050505050565b5061048e848560008660405160240180846001600160a01b03166001600160a01b031681526020018315151515815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561042557818101518382015260200161040d565b50505050905090810190601f1680156104525780820380516001836020036101000a031916815260200191505b5060408051601f198184030181529190526020810180516001600160e01b039081166350d85b7360e01b1790915290955061049c169350505050565b50505050505050505061055e565b606060006060846001600160a01b0316846040518082805190602001908083835b602083106104dc5780518252601f1990920191602091820191016104bd565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d806000811461053c576040519150601f19603f3d011682016040523d82523d6000602084013e610541565b606091505b50915091506000821415610556573d60208201fd5b949350505050565b6102188061056d6000396000f3fe60806040526004361061001e5760003560e01c80635c60da1b146100e1575b6000546040805160048152602481019091526020810180516001600160e01b031663076de25160e21b17905261005d916001600160a01b031690610112565b50600080546040516001600160a01b0390911690829036908083838082843760405192019450600093509091505080830381855af49150503d80600081146100c1576040519150601f19603f3d011682016040523d82523d6000602084013e6100c6565b606091505b505090506040513d6000823e8180156100dd573d82f35b3d82fd5b3480156100ed57600080fd5b506100f66101d4565b604080516001600160a01b039092168252519081900360200190f35b606060006060846001600160a01b0316846040518082805190602001908083835b602083106101525780518252601f199092019160209182019101610133565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d80600081146101b2576040519150601f19603f3d011682016040523d82523d6000602084013e6101b7565b606091505b509150915060008214156101cc573d60208201fd5b949350505050565b6000546001600160a01b03168156fea265627a7a723158208e3e63485e5f7ae8cba3fa394e12885c029940469c7a173b8ff7745fabdad3b364736f6c63430005110032";
        cEtherDelegatorCreationCode = abi.encodePacked(cEtherDelegatorCreationCode, constructorData);
        bytes32 salt = keccak256(abi.encodePacked(msg.sender, address(0), block.number));
        address proxy;

        assembly {
            proxy := create2(0, add(cEtherDelegatorCreationCode, 32), mload(cEtherDelegatorCreationCode), salt)
            if iszero(extcodesize(proxy)) {
                revert(0, "Failed to deploy CEther.")
            }
        }

        return proxy;
    }

    /**
     * @dev Deploys a `CErc20Delegator`.
     * @param constructorData `CErc20Delegator` ABI-encoded constructor data.
     */
    function deployCErc20(bytes calldata constructorData) external virtual returns (address) {
        // ABI decode constructor data
        (address underlying, address comptroller, , , , address implementation, , , ) = abi.decode(constructorData, (address, address, address, string, string, address, bytes, uint256, uint256));

        // Check implementation whitelist
        require(cErc20DelegateWhitelist[address(0)][implementation][false], "CErc20Delegate contract not whitelisted.");

        // Make sure comptroller == msg.sender
        require(comptroller == msg.sender, "Comptroller is not sender.");

        // Deploy CErc20Delegator using msg.sender, underlying, and block.number as a salt
        bytes memory cErc20DelegatorCreationCode = hex"608060405234801561001057600080fd5b506040516107f53803806107f5833981810160405261012081101561003457600080fd5b81516020830151604080850151606086018051925194969395919493918201928464010000000082111561006757600080fd5b90830190602082018581111561007c57600080fd5b825164010000000081118282018810171561009657600080fd5b82525081516020918201929091019080838360005b838110156100c35781810151838201526020016100ab565b50505050905090810190601f1680156100f05780820380516001836020036101000a031916815260200191505b506040526020018051604051939291908464010000000082111561011357600080fd5b90830190602082018581111561012857600080fd5b825164010000000081118282018810171561014257600080fd5b82525081516020918201929091019080838360005b8381101561016f578181015183820152602001610157565b50505050905090810190601f16801561019c5780820380516001836020036101000a031916815260200191505b506040818152602083015192018051929491939192846401000000008211156101c457600080fd5b9083019060208201858111156101d957600080fd5b82516401000000008111828201881017156101f357600080fd5b82525081516020918201929091019080838360005b83811015610220578181015183820152602001610208565b50505050905090810190601f16801561024d5780820380516001836020036101000a031916815260200191505b50604081815260208381015193909101516001600160a01b03808e1660248501908152818e166044860152908c16606485015260c4840185905260e4840182905260e0608485019081528b516101048601528b519597509195506103b59489948f948f948f948f948f948d948d949260a4830192610124019189019080838360005b838110156102e75781810151838201526020016102cf565b50505050905090810190601f1680156103145780820380516001836020036101000a031916815260200191505b50838103825286518152865160209182019188019080838360005b8381101561034757818101518382015260200161032f565b50505050905090810190601f1680156103745780820380516001836020036101000a031916815260200191505b5060408051601f198184030181529190526020810180516001600160e01b0390811663a0b0d28960e01b17909152909a506104981698505050505050505050565b50610489848560008660405160240180846001600160a01b03166001600160a01b031681526020018315151515815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610420578181015183820152602001610408565b50505050905090810190601f16801561044d5780820380516001836020036101000a031916815260200191505b5060408051601f198184030181529190526020810180516001600160e01b039081166350d85b7360e01b17909152909550610498169350505050565b5050505050505050505061055a565b606060006060846001600160a01b0316846040518082805190602001908083835b602083106104d85780518252601f1990920191602091820191016104b9565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610538576040519150601f19603f3d011682016040523d82523d6000602084013e61053d565b606091505b50915091506000821415610552573d60208201fd5b949350505050565b61028c806105696000396000f3fe60806040526004361061001e5760003560e01c80635c60da1b1461011e575b341561005b5760405162461bcd60e51b81526004018080602001828103825260378152602001806102216037913960400191505060405180910390fd5b6000546040805160048152602481019091526020810180516001600160e01b031663076de25160e21b17905261009a916001600160a01b03169061014f565b50600080546040516001600160a01b0390911690829036908083838082843760405192019450600093509091505080830381855af49150503d80600081146100fe576040519150601f19603f3d011682016040523d82523d6000602084013e610103565b606091505b505090506040513d6000823e81801561011a573d82f35b3d82fd5b34801561012a57600080fd5b50610133610211565b604080516001600160a01b039092168252519081900360200190f35b606060006060846001600160a01b0316846040518082805190602001908083835b6020831061018f5780518252601f199092019160209182019101610170565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d80600081146101ef576040519150601f19603f3d011682016040523d82523d6000602084013e6101f4565b606091505b50915091506000821415610209573d60208201fd5b949350505050565b6000546001600160a01b03168156fe43457263323044656c656761746f723a66616c6c6261636b3a2063616e6e6f742073656e642076616c756520746f2066616c6c6261636ba265627a7a7231582005c7822f7294a2303680b0d2b051bee472cd65b928fd92bacf345e29e5b26c9f64736f6c63430005110032";
        cErc20DelegatorCreationCode = abi.encodePacked(cErc20DelegatorCreationCode, constructorData);
        bytes32 salt = keccak256(abi.encodePacked(msg.sender, underlying, block.number));
        address proxy;

        assembly {
            proxy := create2(0, add(cErc20DelegatorCreationCode, 32), mload(cErc20DelegatorCreationCode), salt)
            if iszero(extcodesize(proxy)) {
                revert(0, "Failed to deploy CErc20.")
            }
        }

        return proxy;
    }

    /**
     * @dev Whitelisted Comptroller implementation contract addresses for each existing implementation.
     */
    mapping(address => mapping(address => bool)) public comptrollerImplementationWhitelist;

    /**
     * @dev Adds/removes Comptroller implementations to the whitelist.
     * @param oldImplementations The old `Comptroller` implementation addresses to upgrade from for each `newImplementations` to upgrade to.
     * @param newImplementations Array of `Comptroller` implementations to be whitelisted/unwhitelisted.
     * @param statuses Array of whitelist statuses corresponding to `implementations`.
     */
    function _editComptrollerImplementationWhitelist(address[] calldata oldImplementations, address[] calldata newImplementations, bool[] calldata statuses) external onlyOwner {
        require(newImplementations.length > 0 && newImplementations.length == oldImplementations.length && newImplementations.length == statuses.length, "No Comptroller implementations supplied or array lengths not equal.");
        for (uint256 i = 0; i < newImplementations.length; i++) comptrollerImplementationWhitelist[oldImplementations[i]][newImplementations[i]] = statuses[i];
    }

    /**
     * @dev Whitelisted CErc20Delegate implementation contract addresses and `allowResign` values for each existing implementation.
     */
    mapping(address => mapping(address => mapping(bool => bool))) public cErc20DelegateWhitelist;

    /**
     * @dev Adds/removes CErc20Delegate implementations to the whitelist.
     * @param oldImplementations The old `CErc20Delegate` implementation addresses to upgrade from for each `newImplementations` to upgrade to.
     * @param newImplementations Array of `CErc20Delegate` implementations to be whitelisted/unwhitelisted.
     * @param allowResign Array of `allowResign` values corresponding to `newImplementations` to be whitelisted/unwhitelisted.
     * @param statuses Array of whitelist statuses corresponding to `newImplementations`.
     */
    function _editCErc20DelegateWhitelist(address[] calldata oldImplementations, address[] calldata newImplementations, bool[] calldata allowResign, bool[] calldata statuses) external onlyOwner {
        require(newImplementations.length > 0 && newImplementations.length == oldImplementations.length && newImplementations.length == allowResign.length && newImplementations.length == statuses.length, "No CErc20Delegate implementations supplied or array lengths not equal.");
        for (uint256 i = 0; i < newImplementations.length; i++) cErc20DelegateWhitelist[oldImplementations[i]][newImplementations[i]][allowResign[i]] = statuses[i];
    }

    /**
     * @dev Whitelisted CEtherDelegate implementation contract addresses and `allowResign` values for each existing implementation.
     */
    mapping(address => mapping(address => mapping(bool => bool))) public cEtherDelegateWhitelist;

    /**
     * @dev Adds/removes CEtherDelegate implementations to the whitelist.
     * @param oldImplementations The old `CEtherDelegate` implementation addresses to upgrade from for each `newImplementations` to upgrade to.
     * @param newImplementations Array of `CEtherDelegate` implementations to be whitelisted/unwhitelisted.
     * @param allowResign Array of `allowResign` values corresponding to `newImplementations` to be whitelisted/unwhitelisted.
     * @param statuses Array of whitelist statuses corresponding to `newImplementations`.
     */
    function _editCEtherDelegateWhitelist(address[] calldata oldImplementations, address[] calldata newImplementations, bool[] calldata allowResign, bool[] calldata statuses) external onlyOwner {
        require(newImplementations.length > 0 && newImplementations.length == oldImplementations.length && newImplementations.length == allowResign.length && newImplementations.length == statuses.length, "No CEtherDelegate implementations supplied or array lengths not equal.");
        for (uint256 i = 0; i < newImplementations.length; i++) cEtherDelegateWhitelist[oldImplementations[i]][newImplementations[i]][allowResign[i]] = statuses[i];
    }

    /**
     * @dev Latest Comptroller implementation for each existing implementation.
     */
    mapping(address => address) internal _latestComptrollerImplementation;

    /**
     * @dev Latest Comptroller implementation for each existing implementation.
     */
    function latestComptrollerImplementation(address oldImplementation) external view returns (address) {
        return _latestComptrollerImplementation[oldImplementation] != address(0) ? _latestComptrollerImplementation[oldImplementation] : oldImplementation;
    }

    /**
     * @dev Sets the latest `Comptroller` upgrade implementation address.
     * @param oldImplementation The old `Comptroller` implementation address to upgrade from.
     * @param newImplementation Latest `Comptroller` implementation address.
     */
    function _setLatestComptrollerImplementation(address oldImplementation, address newImplementation) external onlyOwner {
        _latestComptrollerImplementation[oldImplementation] = newImplementation;
    }

    struct CDelegateUpgradeData {
        address implementation;
        bool allowResign;
        bytes becomeImplementationData;
    }

    /**
     * @dev Latest CErc20Delegate implementation for each existing implementation.
     */
    mapping(address => CDelegateUpgradeData) public _latestCErc20Delegate;

    /**
     * @dev Latest CEtherDelegate implementation for each existing implementation.
     */
    mapping(address => CDelegateUpgradeData) public _latestCEtherDelegate;

    /**
     * @dev Latest CErc20Delegate implementation for each existing implementation.
     */
    function latestCErc20Delegate(address oldImplementation) external view returns (address, bool, bytes memory) {
        CDelegateUpgradeData memory data = _latestCErc20Delegate[oldImplementation];
        bytes memory emptyBytes;
        return data.implementation != address(0) ? (data.implementation, data.allowResign, data.becomeImplementationData) : (oldImplementation, false, emptyBytes);
    }

    /**
     * @dev Latest CEtherDelegate implementation for each existing implementation.
     */
    function latestCEtherDelegate(address oldImplementation) external view returns (address, bool, bytes memory) {
        CDelegateUpgradeData memory data = _latestCEtherDelegate[oldImplementation];
        bytes memory emptyBytes;
        return data.implementation != address(0) ? (data.implementation, data.allowResign, data.becomeImplementationData) : (oldImplementation, false, emptyBytes);
    }

    /**
     * @dev Sets the latest `CEtherDelegate` upgrade implementation address and data.
     * @param oldImplementation The old `CEtherDelegate` implementation address to upgrade from.
     * @param newImplementation Latest `CEtherDelegate` implementation address.
     * @param allowResign Whether or not `resignImplementation` should be called on the old implementation before upgrade.
     * @param becomeImplementationData Data passed to the new implementation via `becomeImplementation` after upgrade.
     */
    function _setLatestCEtherDelegate(address oldImplementation, address newImplementation, bool allowResign, bytes calldata becomeImplementationData) external onlyOwner {
        _latestCEtherDelegate[oldImplementation] = CDelegateUpgradeData(newImplementation, allowResign, becomeImplementationData);
    }

    /**
     * @dev Sets the latest `CErc20Delegate` upgrade implementation address and data.
     * @param oldImplementation The old `CErc20Delegate` implementation address to upgrade from.
     * @param newImplementation Latest `CErc20Delegate` implementation address.
     * @param allowResign Whether or not `resignImplementation` should be called on the old implementation before upgrade.
     * @param becomeImplementationData Data passed to the new implementation via `becomeImplementation` after upgrade.
     */
    function _setLatestCErc20Delegate(address oldImplementation, address newImplementation, bool allowResign, bytes calldata becomeImplementationData) external onlyOwner {
        _latestCErc20Delegate[oldImplementation] = CDelegateUpgradeData(newImplementation, allowResign, becomeImplementationData);
    }

    /**
     * @notice Maps Unitroller (Comptroller proxy) addresses to the proportion of Fuse pool interest taken as a protocol fee (scaled by 1e18).
     * @dev A value of 0 means unset whereas a negative value means 0.
     */
    mapping(address => int256) public customInterestFeeRates;

    /**
     * @notice Returns the proportion of Fuse pool interest taken as a protocol fee (scaled by 1e18).
     */
    function interestFeeRate() external view returns (uint256) {
        (bool success, bytes memory data) = msg.sender.staticcall(abi.encodeWithSignature("comptroller()"));

        if (success && data.length == 32) {
            (address comptroller) = abi.decode(data, (address));
            int256 customRate = customInterestFeeRates[comptroller];
            if (customRate > 0) return uint256(customRate);
            if (customRate < 0) return 0;
        }

        return defaultInterestFeeRate;
    }

    /**
     * @dev Sets the proportion of Fuse pool interest taken as a protocol fee.
     * @param comptroller The Unitroller (Comptroller proxy) address.
     * @param rate The proportion of Fuse pool interest taken as a protocol fee (scaled by 1e18).
     */
    function _setCustomInterestFeeRate(address comptroller, int256 rate) external onlyOwner {
        require(rate <= 1e18, "Interest fee rate cannot be more than 100%.");
        customInterestFeeRates[comptroller] = rate;
    }
}

File 3 of 9 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;
import "../proxy/Initializable.sol";

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract ContextUpgradeable is Initializable {
    function __Context_init() internal initializer {
        __Context_init_unchained();
    }

    function __Context_init_unchained() internal initializer {
    }
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
    uint256[50] private __gap;
}

File 4 of 9 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library AddressUpgradeable {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 5 of 9 : SafeERC20Upgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "./IERC20Upgradeable.sol";
import "../../math/SafeMathUpgradeable.sol";
import "../../utils/AddressUpgradeable.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20Upgradeable {
    using SafeMathUpgradeable for uint256;
    using AddressUpgradeable for address;

    function safeTransfer(IERC20Upgradeable token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20Upgradeable token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20Upgradeable token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20Upgradeable token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20Upgradeable token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20Upgradeable token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 6 of 9 : IERC20Upgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20Upgradeable {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 7 of 9 : Initializable.sol
// SPDX-License-Identifier: MIT

// solhint-disable-next-line compiler-version
pragma solidity >=0.4.24 <0.8.0;

import "../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {UpgradeableProxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 */
abstract contract Initializable {

    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        require(_initializing || _isConstructor() || !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

    /// @dev Returns true if and only if the function is running in the constructor
    function _isConstructor() private view returns (bool) {
        return !AddressUpgradeable.isContract(address(this));
    }
}

File 8 of 9 : SafeMathUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMathUpgradeable {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

File 9 of 9 : OwnableUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/Initializable.sol";
/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __Ownable_init() internal initializer {
        __Context_init_unchained();
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal initializer {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
    uint256[49] private __gap;
}

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

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address[]","name":"targets","type":"address[]"},{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"_callPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"targets","type":"address[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"_callPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"oldImplementations","type":"address[]"},{"internalType":"address[]","name":"newImplementations","type":"address[]"},{"internalType":"bool[]","name":"allowResign","type":"bool[]"},{"internalType":"bool[]","name":"statuses","type":"bool[]"}],"name":"_editCErc20DelegateWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"oldImplementations","type":"address[]"},{"internalType":"address[]","name":"newImplementations","type":"address[]"},{"internalType":"bool[]","name":"allowResign","type":"bool[]"},{"internalType":"bool[]","name":"statuses","type":"bool[]"}],"name":"_editCEtherDelegateWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"oldImplementations","type":"address[]"},{"internalType":"address[]","name":"newImplementations","type":"address[]"},{"internalType":"bool[]","name":"statuses","type":"bool[]"}],"name":"_editComptrollerImplementationWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_latestCErc20Delegate","outputs":[{"internalType":"address","name":"implementation","type":"address"},{"internalType":"bool","name":"allowResign","type":"bool"},{"internalType":"bytes","name":"becomeImplementationData","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_latestCEtherDelegate","outputs":[{"internalType":"address","name":"implementation","type":"address"},{"internalType":"bool","name":"allowResign","type":"bool"},{"internalType":"bytes","name":"becomeImplementationData","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"comptroller","type":"address"},{"internalType":"int256","name":"rate","type":"int256"}],"name":"_setCustomInterestFeeRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_defaultInterestFeeRate","type":"uint256"}],"name":"_setDefaultInterestFeeRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"oldImplementation","type":"address"},{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bool","name":"allowResign","type":"bool"},{"internalType":"bytes","name":"becomeImplementationData","type":"bytes"}],"name":"_setLatestCErc20Delegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"oldImplementation","type":"address"},{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bool","name":"allowResign","type":"bool"},{"internalType":"bytes","name":"becomeImplementationData","type":"bytes"}],"name":"_setLatestCEtherDelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"oldImplementation","type":"address"},{"internalType":"address","name":"newImplementation","type":"address"}],"name":"_setLatestComptrollerImplementation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minBorrowEth","type":"uint256"},{"internalType":"uint256","name":"_maxSupplyEth","type":"uint256"},{"internalType":"uint256","name":"_maxUtilizationRate","type":"uint256"}],"name":"_setPoolLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"erc20Contract","type":"address"}],"name":"_withdrawAssets","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"bool","name":"","type":"bool"}],"name":"cErc20DelegateWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"bool","name":"","type":"bool"}],"name":"cEtherDelegateWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"comptrollerImplementationWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"customInterestFeeRates","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultInterestFeeRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"constructorData","type":"bytes"}],"name":"deployCErc20","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"constructorData","type":"bytes"}],"name":"deployCEther","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_defaultInterestFeeRate","type":"uint256"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"interestFeeRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"oldImplementation","type":"address"}],"name":"latestCErc20Delegate","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"oldImplementation","type":"address"}],"name":"latestCEtherDelegate","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"oldImplementation","type":"address"}],"name":"latestComptrollerImplementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupplyEth","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxUtilizationRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minBorrowEth","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b50613d95806100206000396000f3fe6080604052600436106101e75760003560e01c8063930d243811610102578063c5232b4711610095578063e35a480111610064578063e35a480114610572578063f2fde38b14610592578063fdb25fb1146105b2578063fe4b84df146105c7576101ee565b8063c5232b4714610508578063d64517b214610528578063dd86fea114610548578063dfcb48bd1461055d576101ee565b8063a430e617116100d1578063a430e61714610488578063b01b86fd146104a8578063bbcdd6d3146104c8578063c11cd440146104e8576101ee565b8063930d2438146104135780639b86a9b5146104335780639c7be708146104535780639d244f9f14610468576101ee565b8063715018a61161017a5780638754e4fd116101495780638754e4fd146103915780638abe0b75146103be5780638d3bb8ef146103de5780638da5cb5b146103fe576101ee565b8063715018a61461030d57806371cd40e61461032257806375365b871461034f57806384651d731461036f576101ee565b80632acbff39116101b65780632acbff391461028d5780632f876d32146102ad5780633465b6e1146102cd57806345cc9705146102ed576101ee565b806301758fc2146101f35780630284db761461021557806306bc46111461024d578063183a3f721461026d576101ee565b366101ee57005b600080fd5b3480156101ff57600080fd5b5061021361020e366004612493565b6105e7565b005b34801561022157600080fd5b506102356102303660046120f2565b61077a565b6040516102449392919061279a565b60405180910390f35b34801561025957600080fd5b506102136102683660046123d2565b610838565b34801561027957600080fd5b506102356102883660046120f2565b6108bb565b34801561029957600080fd5b506102136102a8366004612552565b610944565b3480156102b957600080fd5b506102136102c83660046126c0565b610a50565b3480156102d957600080fd5b506102136102e83660046120f2565b610a9d565b3480156102f957600080fd5b506102356103083660046120f2565b610c18565b34801561031957600080fd5b50610213610d36565b34801561032e57600080fd5b5061034261033d36600461230e565b610dbf565b60405161024491906127e8565b34801561035b57600080fd5b5061021361036a366004612358565b610de5565b34801561037b57600080fd5b50610384610eea565b60405161024491906127f3565b34801561039d57600080fd5b506103b16103ac366004612650565b610ef0565b6040516102449190612786565b3480156103ca57600080fd5b506102356103d93660046120f2565b61105a565b3480156103ea57600080fd5b506102136103f93660046123fd565b611106565b34801561040a57600080fd5b506103b1611247565b34801561041f57600080fd5b5061021361042e3660046122d6565b611257565b34801561043f57600080fd5b506103b161044e366004612650565b6112c4565b34801561045f57600080fd5b50610384611427565b34801561047457600080fd5b506103426104833660046122d6565b61142d565b34801561049457600080fd5b506102136104a3366004612358565b61144d565b3480156104b457600080fd5b506102136104c33660046125bb565b611548565b3480156104d457600080fd5b506103b16104e33660046120f2565b611600565b3480156104f457600080fd5b5061034261050336600461230e565b611646565b34801561051457600080fd5b506103846105233660046120f2565b61166c565b34801561053457600080fd5b50610213610543366004612493565b61167e565b34801561055457600080fd5b506103846117fd565b34801561056957600080fd5b506103846118fa565b34801561057e57600080fd5b5061021361058d366004612690565b611900565b34801561059e57600080fd5b506102136105ad3660046120f2565b61196c565b3480156105be57600080fd5b50610384611a2d565b3480156105d357600080fd5b506102136105e2366004612690565b611a33565b6105ef611af7565b6001600160a01b0316610600611247565b6001600160a01b03161461062f5760405162461bcd60e51b815260040161062690612a8d565b60405180910390fd5b841580159061063d57508487145b801561064857508483145b801561065357508481145b61066f5760405162461bcd60e51b815260040161062690612909565b60005b8581101561076f5782828281811061068657fe5b905060200201602081019061069b9190612618565b606a60008b8b858181106106ab57fe5b90506020020160208101906106c091906120f2565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008989858181106106ee57fe5b905060200201602081019061070391906120f2565b6001600160a01b03166001600160a01b03168152602001908152602001600020600087878581811061073157fe5b90506020020160208101906107469190612618565b151581526020810191909152604001600020805460ff1916911515919091179055600101610672565b505050505050505050565b606e602090815260009182526040918290208054600180830180548651600261010094831615949094026000190190911692909204601f81018690048602830186019096528582526001600160a01b03831695600160a01b90930460ff16949192909183018282801561082e5780601f106108035761010080835404028352916020019161082e565b820191906000526020600020905b81548152906001019060200180831161081157829003601f168201915b5050505050905083565b610840611af7565b6001600160a01b0316610851611247565b6001600160a01b0316146108775760405162461bcd60e51b815260040161062690612a8d565b670de0b6b3a764000081131561089f5760405162461bcd60e51b81526004016106269061280f565b6001600160a01b039091166000908152606f6020526040902055565b606d602090815260009182526040918290208054600180830180548651600261010094831615949094026000190190911692909204601f81018690048602830186019096528582526001600160a01b03831695600160a01b90930460ff16949192909183018282801561082e5780601f106108035761010080835404028352916020019161082e565b61094c611af7565b6001600160a01b031661095d611247565b6001600160a01b0316146109835760405162461bcd60e51b815260040161062690612a8d565b821580159061099157508281145b6109ad5760405162461bcd60e51b815260040161062690612b4a565b60005b83811015610a4957610a408383838181106109c757fe5b90506020028101906109d99190612d4d565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250899250889150859050818110610a1c57fe5b9050602002016020810190610a3191906120f2565b6001600160a01b031690611afb565b506001016109b0565b5050505050565b610a58611af7565b6001600160a01b0316610a69611247565b6001600160a01b031614610a8f5760405162461bcd60e51b815260040161062690612a8d565b606692909255606755606855565b6001600160a01b038116610b53574780610ac95760405162461bcd60e51b815260040161062690612b09565b6000610ad3611247565b6001600160a01b031682604051610ae990611254565b60006040518083038185875af1925050503d8060008114610b26576040519150601f19603f3d011682016040523d82523d6000602084013e610b2b565b606091505b5050905080610b4c5760405162461bcd60e51b815260040161062690612a40565b5050610c15565b6040516370a0823160e01b815281906000906001600160a01b038316906370a0823190610b84903090600401612786565b60206040518083038186803b158015610b9c57600080fd5b505afa158015610bb0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bd491906126a8565b905060008111610bf65760405162461bcd60e51b815260040161062690612ac2565b610c12610c01611247565b6001600160a01b0384169083611b44565b50505b50565b6000806060610c25611f2e565b6001600160a01b038581166000908152606d6020908152604091829020825160608101845281549485168152600160a01b90940460ff16151584830152600180820180548551600261010094831615949094026000190190911692909204601f81018590048502830185018652808352929486019391929091830182828015610cef5780601f10610cc457610100808354040283529160200191610cef565b820191906000526020600020905b815481529060010190602001808311610cd257829003601f168201915b50505091909252505081519192506060916001600160a01b031615159050610d1a5785600082610d27565b8151602083015160408401515b94509450945050509193909250565b610d3e611af7565b6001600160a01b0316610d4f611247565b6001600160a01b031614610d755760405162461bcd60e51b815260040161062690612a8d565b6033546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3603380546001600160a01b0319169055565b606a60209081526000938452604080852082529284528284209052825290205460ff1681565b610ded611af7565b6001600160a01b0316610dfe611247565b6001600160a01b031614610e245760405162461bcd60e51b815260040161062690612a8d565b6040518060600160405280856001600160a01b03168152602001841515815260200183838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052509390945250506001600160a01b038089168252606d602090815260409283902085518154878401511515600160a01b0260ff60a01b19929095166001600160a01b03199091161716929092178255918401518051919350610ee0926001850192910190611f4d565b5050505050505050565b60655481565b6000808080610f018587018761212a565b5050506001600160a01b03811660009081527f6021fa82de881996a3e5fd2d032f74dfe72746b8a66c5510d4ab1a3cb7891507602090815260408083208380529091529020549598509396509294505060ff9092169150610f7690505760405162461bcd60e51b815260040161062690612b99565b6001600160a01b0382163314610f9e5760405162461bcd60e51b8152600401610626906129bb565b60606040518061082001604052806107f58152602001612de66107f591399050808787604051602001610fd393929190612761565b60405160208183030381529060405290506000338543604051602001610ffb93929190612717565b6040516020818303038152906040528051906020012090506000818351602085016000f59050803b61104c577f4661696c656420746f206465706c6f79204345726332302e00000000000000006000fd5b955050505050505b92915050565b6000806060611067611f2e565b6001600160a01b038581166000908152606e6020908152604091829020825160608101845281549485168152600160a01b90940460ff16151584830152600180820180548551600261010094831615949094026000190190911692909204601f81018590048502830185018652808352929486019391929091830182828015610cef5780601f10610cc457610100808354040283529160200191610cef565b61110e611af7565b6001600160a01b031661111f611247565b6001600160a01b0316146111455760405162461bcd60e51b815260040161062690612a8d565b821580159061115357508285145b801561115e57508281145b61117a5760405162461bcd60e51b81526004016106269061285a565b60005b8381101561123e5782828281811061119157fe5b90506020020160208101906111a69190612618565b606960008989858181106111b657fe5b90506020020160208101906111cb91906120f2565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008787858181106111f957fe5b905060200201602081019061120e91906120f2565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905560010161117d565b50505050505050565b6033546001600160a01b03165b90565b61125f611af7565b6001600160a01b0316611270611247565b6001600160a01b0316146112965760405162461bcd60e51b815260040161062690612a8d565b6001600160a01b039182166000908152606c6020526040902080546001600160a01b03191691909216179055565b600080806112d484860186612209565b5050506001600160a01b03811660009081527fc8cc8bda7ad4886bea3ebbdafa02e79d37c39bf4011696b26a31a0802fd9458b6020908152604080832083805290915290205494965094505060ff909216915061134590505760405162461bcd60e51b815260040161062690612d05565b6001600160a01b038216331461136d5760405162461bcd60e51b8152600401610626906129bb565b6060604051806107c0016040528061078581526020016135db610785913990508086866040516020016113a293929190612761565b60405160208183030381529060405290506000336000436040516020016113cb93929190612717565b6040516020818303038152906040528051906020012090506000818351602085016000f59050803b61141c577f4661696c656420746f206465706c6f79204345746865722e00000000000000006000fd5b979650505050505050565b60675481565b606960209081526000928352604080842090915290825290205460ff1681565b611455611af7565b6001600160a01b0316611466611247565b6001600160a01b03161461148c5760405162461bcd60e51b815260040161062690612a8d565b6040518060600160405280856001600160a01b03168152602001841515815260200183838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052509390945250506001600160a01b038089168252606e602090815260409283902085518154878401511515600160a01b0260ff60a01b19929095166001600160a01b03199091161716929092178255918401518051919350610ee0926001850192910190611f4d565b611550611af7565b6001600160a01b0316611561611247565b6001600160a01b0316146115875760405162461bcd60e51b815260040161062690612a8d565b826115a45760405162461bcd60e51b815260040161062690612c18565b60005b83811015610a49576115f783838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250899250889150859050818110610a1c57fe5b506001016115a7565b6001600160a01b038181166000908152606c60205260408120549091166116275781611054565b506001600160a01b039081166000908152606c60205260409020541690565b606b60209081526000938452604080852082529284528284209052825290205460ff1681565b606f6020526000908152604090205481565b611686611af7565b6001600160a01b0316611697611247565b6001600160a01b0316146116bd5760405162461bcd60e51b815260040161062690612a8d565b84158015906116cb57508487145b80156116d657508483145b80156116e157508481145b6116fd5760405162461bcd60e51b815260040161062690612c99565b60005b8581101561076f5782828281811061171457fe5b90506020020160208101906117299190612618565b606b60008b8b8581811061173957fe5b905060200201602081019061174e91906120f2565b6001600160a01b03166001600160a01b03168152602001908152602001600020600089898581811061177c57fe5b905060200201602081019061179191906120f2565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008787858181106117bf57fe5b90506020020160208101906117d49190612618565b151581526020810191909152604001600020805460ff1916911515919091179055600101611700565b60408051600481526024810182526020810180516001600160e01b0316635fe3b56760e01b17905290516000918291606091339161183b9190612745565b600060405180830381855afa9150503d8060008114611876576040519150601f19603f3d011682016040523d82523d6000602084013e61187b565b606091505b509150915081801561188e575080516020145b156118f0576000818060200190518101906118a9919061210e565b6001600160a01b0381166000908152606f60205260408120549192508113156118d757935061125492505050565b60008112156118ed576000945050505050611254565b50505b6065549250505090565b60685481565b611908611af7565b6001600160a01b0316611919611247565b6001600160a01b03161461193f5760405162461bcd60e51b815260040161062690612a8d565b670de0b6b3a76400008111156119675760405162461bcd60e51b81526004016106269061280f565b606555565b611974611af7565b6001600160a01b0316611985611247565b6001600160a01b0316146119ab5760405162461bcd60e51b815260040161062690612a8d565b6001600160a01b0381166119d15760405162461bcd60e51b8152600401610626906128c3565b6033546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3603380546001600160a01b0319166001600160a01b0392909216919091179055565b60665481565b600054610100900460ff1680611a4c5750611a4c611b9a565b80611a5a575060005460ff16155b611a765760405162461bcd60e51b8152600401610626906129f2565b600054610100900460ff16158015611aa1576000805460ff1961ff0019909116610100171660011790555b670de0b6b3a7640000821115611ac95760405162461bcd60e51b81526004016106269061280f565b611ad1611bab565b606582905560001960678190556068558015611af3576000805461ff00191690555b5050565b3390565b6060611b3d83836040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c65640000815250611c3d565b9392505050565b610c128363a9059cbb60e01b8484604051602401611b639291906127cf565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611c54565b6000611ba530611ce3565b15905090565b600054610100900460ff1680611bc45750611bc4611b9a565b80611bd2575060005460ff16155b611bee5760405162461bcd60e51b8152600401610626906129f2565b600054610100900460ff16158015611c19576000805460ff1961ff0019909116610100171660011790555b611c21611ce9565b611c29611d6a565b8015610c15576000805461ff001916905550565b6060611c4c8484600085611e44565b949350505050565b6060611ca9826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611c3d9092919063ffffffff16565b805190915015610c125780806020019051810190611cc79190612634565b610c125760405162461bcd60e51b815260040161062690612c4f565b3b151590565b600054610100900460ff1680611d025750611d02611b9a565b80611d10575060005460ff16155b611d2c5760405162461bcd60e51b8152600401610626906129f2565b600054610100900460ff16158015611c29576000805460ff1961ff0019909116610100171660011790558015610c15576000805461ff001916905550565b600054610100900460ff1680611d835750611d83611b9a565b80611d91575060005460ff16155b611dad5760405162461bcd60e51b8152600401610626906129f2565b600054610100900460ff16158015611dd8576000805460ff1961ff0019909116610100171660011790555b6000611de2611af7565b603380546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3508015610c15576000805461ff001916905550565b606082471015611e665760405162461bcd60e51b815260040161062690612975565b611e6f85611ce3565b611e8b5760405162461bcd60e51b815260040161062690612be1565b60006060866001600160a01b03168587604051611ea89190612745565b60006040518083038185875af1925050503d8060008114611ee5576040519150601f19603f3d011682016040523d82523d6000602084013e611eea565b606091505b509150915061141c82828660608315611f04575081611b3d565b825115611f145782518084602001fd5b8160405162461bcd60e51b815260040161062691906127fc565b6040805160608082018352600080835260208301529181019190915290565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10611f8e57805160ff1916838001178555611fbb565b82800160010185558215611fbb579182015b82811115611fbb578251825591602001919060010190611fa0565b50611fc7929150611fcb565b5090565b5b80821115611fc75760008155600101611fcc565b803561105481612dc2565b60008083601f840112611ffc578182fd5b50813567ffffffffffffffff811115612013578182fd5b602083019150836020808302850101111561202d57600080fd5b9250929050565b60008083601f840112612045578182fd5b50813567ffffffffffffffff81111561205c578182fd5b60208301915083602082850101111561202d57600080fd5b600082601f830112612084578081fd5b813567ffffffffffffffff8082111561209b578283fd5b604051601f8301601f1916810160200182811182821017156120bb578485fd5b6040528281529250828483016020018610156120d657600080fd5b8260208601602083013760006020848301015250505092915050565b600060208284031215612103578081fd5b8135611b3d81612dc2565b60006020828403121561211f578081fd5b8151611b3d81612dc2565b60008060008060008060008060006101208a8c031215612148578485fd5b6121528b8b611fe0565b98506121618b60208c01611fe0565b97506121708b60408c01611fe0565b965060608a013567ffffffffffffffff8082111561218c578687fd5b6121988d838e01612074565b975060808c01359150808211156121ad578687fd5b6121b98d838e01612074565b96506121c88d60a08e01611fe0565b955060c08c01359150808211156121dd578485fd5b506121ea8c828d01612074565b93505060e08a013591506101008a013590509295985092959850929598565b600080600080600080600080610100898b031215612225578384fd5b61222f8a8a611fe0565b975061223e8a60208b01611fe0565b9650604089013567ffffffffffffffff8082111561225a578586fd5b6122668c838d01612074565b975060608b013591508082111561227b578586fd5b6122878c838d01612074565b96506122968c60808d01611fe0565b955060a08b01359150808211156122ab578485fd5b506122b88b828c01612074565b93505060c0890135915060e089013590509295985092959890939650565b600080604083850312156122e8578182fd5b82356122f381612dc2565b9150602083013561230381612dc2565b809150509250929050565b600080600060608486031215612322578283fd5b833561232d81612dc2565b9250602084013561233d81612dc2565b9150604084013561234d81612dd7565b809150509250925092565b60008060008060006080868803121561236f578081fd5b853561237a81612dc2565b9450602086013561238a81612dc2565b9350604086013561239a81612dd7565b9250606086013567ffffffffffffffff8111156123b5578182fd5b6123c188828901612034565b969995985093965092949392505050565b600080604083850312156123e4578182fd5b82356123ef81612dc2565b946020939093013593505050565b60008060008060008060608789031215612415578384fd5b863567ffffffffffffffff8082111561242c578586fd5b6124388a838b01611feb565b90985096506020890135915080821115612450578586fd5b61245c8a838b01611feb565b90965094506040890135915080821115612474578384fd5b5061248189828a01611feb565b979a9699509497509295939492505050565b6000806000806000806000806080898b0312156124ae578182fd5b883567ffffffffffffffff808211156124c5578384fd5b6124d18c838d01611feb565b909a50985060208b01359150808211156124e9578384fd5b6124f58c838d01611feb565b909850965060408b013591508082111561250d578384fd5b6125198c838d01611feb565b909650945060608b0135915080821115612531578384fd5b5061253e8b828c01611feb565b999c989b5096995094979396929594505050565b60008060008060408587031215612567578182fd5b843567ffffffffffffffff8082111561257e578384fd5b61258a88838901611feb565b909650945060208701359150808211156125a2578384fd5b506125af87828801611feb565b95989497509550505050565b600080600080604085870312156125d0578182fd5b843567ffffffffffffffff808211156125e7578384fd5b6125f388838901611feb565b9096509450602087013591508082111561260b578384fd5b506125af87828801612034565b600060208284031215612629578081fd5b8135611b3d81612dd7565b600060208284031215612645578081fd5b8151611b3d81612dd7565b60008060208385031215612662578182fd5b823567ffffffffffffffff811115612678578283fd5b61268485828601612034565b90969095509350505050565b6000602082840312156126a1578081fd5b5035919050565b6000602082840312156126b9578081fd5b5051919050565b6000806000606084860312156126d4578081fd5b505081359360208301359350604090920135919050565b60008151808452612703816020860160208601612d92565b601f01601f19169290920160200192915050565b6bffffffffffffffffffffffff19606094851b811682529290931b9091166014830152602882015260480190565b60008251612757818460208701612d92565b9190910192915050565b60008451612773818460208901612d92565b8201838582379092019182525092915050565b6001600160a01b0391909116815260200190565b6001600160a01b038416815282151560208201526060604082018190526000906127c6908301846126eb565b95945050505050565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b90815260200190565b600060208252611b3d60208301846126eb565b6020808252602b908201527f496e7465726573742066656520726174652063616e6e6f74206265206d6f726560408201526a103a3430b710189818129760a91b606082015260800190565b60208082526043908201527f4e6f20436f6d7074726f6c6c657220696d706c656d656e746174696f6e73207360408201527f7570706c696564206f72206172726179206c656e67746873206e6f742065717560608201526230b61760e91b608082015260a00190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526046908201527f4e6f2043457263323044656c656761746520696d706c656d656e746174696f6e60408201527f7320737570706c696564206f72206172726179206c656e67746873206e6f742060608201526532b8bab0b61760d11b608082015260a00190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b6020808252601a908201527f436f6d7074726f6c6c6572206973206e6f742073656e6465722e000000000000604082015260600190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252602d908201527f4661696c656420746f207472616e73666572204554482062616c616e6365207460408201526c379036b9b39739b2b73232b91760991b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526027908201527f4e6f20746f6b656e2062616c616e636520617661696c61626c6520746f2077696040820152663a34323930bb9760c91b606082015260800190565b60208082526021908201527f4e6f2062616c616e636520617661696c61626c6520746f2077697468647261776040820152601760f91b606082015260800190565b6020808252602f908201527f4172726179206c656e67746873206d75737420626520657175616c20616e642060408201526e33b932b0ba32b9103a3430b710181760891b606082015260800190565b60208082526028908201527f43457263323044656c656761746520636f6e7472616374206e6f74207768697460408201526732b634b9ba32b21760c11b606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252601e908201527f4e6f2074617267657420616464726573736573207370656369666965642e0000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526046908201527f4e6f2043457468657244656c656761746520696d706c656d656e746174696f6e60408201527f7320737570706c696564206f72206172726179206c656e67746873206e6f742060608201526532b8bab0b61760d11b608082015260a00190565b60208082526028908201527f43457468657244656c656761746520636f6e7472616374206e6f74207768697460408201526732b634b9ba32b21760c11b606082015260800190565b6000808335601e19843603018112612d63578283fd5b83018035915067ffffffffffffffff821115612d7d578283fd5b60200191503681900382131561202d57600080fd5b60005b83811015612dad578181015183820152602001612d95565b83811115612dbc576000848401525b50505050565b6001600160a01b0381168114610c1557600080fd5b8015158114610c1557600080fdfe608060405234801561001057600080fd5b506040516107f53803806107f5833981810160405261012081101561003457600080fd5b81516020830151604080850151606086018051925194969395919493918201928464010000000082111561006757600080fd5b90830190602082018581111561007c57600080fd5b825164010000000081118282018810171561009657600080fd5b82525081516020918201929091019080838360005b838110156100c35781810151838201526020016100ab565b50505050905090810190601f1680156100f05780820380516001836020036101000a031916815260200191505b506040526020018051604051939291908464010000000082111561011357600080fd5b90830190602082018581111561012857600080fd5b825164010000000081118282018810171561014257600080fd5b82525081516020918201929091019080838360005b8381101561016f578181015183820152602001610157565b50505050905090810190601f16801561019c5780820380516001836020036101000a031916815260200191505b506040818152602083015192018051929491939192846401000000008211156101c457600080fd5b9083019060208201858111156101d957600080fd5b82516401000000008111828201881017156101f357600080fd5b82525081516020918201929091019080838360005b83811015610220578181015183820152602001610208565b50505050905090810190601f16801561024d5780820380516001836020036101000a031916815260200191505b50604081815260208381015193909101516001600160a01b03808e1660248501908152818e166044860152908c16606485015260c4840185905260e4840182905260e0608485019081528b516101048601528b519597509195506103b59489948f948f948f948f948f948d948d949260a4830192610124019189019080838360005b838110156102e75781810151838201526020016102cf565b50505050905090810190601f1680156103145780820380516001836020036101000a031916815260200191505b50838103825286518152865160209182019188019080838360005b8381101561034757818101518382015260200161032f565b50505050905090810190601f1680156103745780820380516001836020036101000a031916815260200191505b5060408051601f198184030181529190526020810180516001600160e01b0390811663a0b0d28960e01b17909152909a506104981698505050505050505050565b50610489848560008660405160240180846001600160a01b03166001600160a01b031681526020018315151515815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610420578181015183820152602001610408565b50505050905090810190601f16801561044d5780820380516001836020036101000a031916815260200191505b5060408051601f198184030181529190526020810180516001600160e01b039081166350d85b7360e01b17909152909550610498169350505050565b5050505050505050505061055a565b606060006060846001600160a01b0316846040518082805190602001908083835b602083106104d85780518252601f1990920191602091820191016104b9565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610538576040519150601f19603f3d011682016040523d82523d6000602084013e61053d565b606091505b50915091506000821415610552573d60208201fd5b949350505050565b61028c806105696000396000f3fe60806040526004361061001e5760003560e01c80635c60da1b1461011e575b341561005b5760405162461bcd60e51b81526004018080602001828103825260378152602001806102216037913960400191505060405180910390fd5b6000546040805160048152602481019091526020810180516001600160e01b031663076de25160e21b17905261009a916001600160a01b03169061014f565b50600080546040516001600160a01b0390911690829036908083838082843760405192019450600093509091505080830381855af49150503d80600081146100fe576040519150601f19603f3d011682016040523d82523d6000602084013e610103565b606091505b505090506040513d6000823e81801561011a573d82f35b3d82fd5b34801561012a57600080fd5b50610133610211565b604080516001600160a01b039092168252519081900360200190f35b606060006060846001600160a01b0316846040518082805190602001908083835b6020831061018f5780518252601f199092019160209182019101610170565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d80600081146101ef576040519150601f19603f3d011682016040523d82523d6000602084013e6101f4565b606091505b50915091506000821415610209573d60208201fd5b949350505050565b6000546001600160a01b03168156fe43457263323044656c656761746f723a66616c6c6261636b3a2063616e6e6f742073656e642076616c756520746f2066616c6c6261636ba265627a7a72315820fc5fcc16235ee4edd9b1c0ecaf05a926cd9474cdf4a7678b9c4f511421cf2ac364736f6c63430005110032608060405234801561001057600080fd5b50604051610785380380610785833981810160405261010081101561003457600080fd5b8151602083015160408085018051915193959294830192918464010000000082111561005f57600080fd5b90830190602082018581111561007457600080fd5b825164010000000081118282018810171561008e57600080fd5b82525081516020918201929091019080838360005b838110156100bb5781810151838201526020016100a3565b50505050905090810190601f1680156100e85780820380516001836020036101000a031916815260200191505b506040526020018051604051939291908464010000000082111561010b57600080fd5b90830190602082018581111561012057600080fd5b825164010000000081118282018810171561013a57600080fd5b82525081516020918201929091019080838360005b8381101561016757818101518382015260200161014f565b50505050905090810190601f1680156101945780820380516001836020036101000a031916815260200191505b506040818152602083015192018051929491939192846401000000008211156101bc57600080fd5b9083019060208201858111156101d157600080fd5b82516401000000008111828201881017156101eb57600080fd5b82525081516020918201929091019080838360005b83811015610218578181015183820152602001610200565b50505050905090810190601f1680156102455780820380516001836020036101000a031916815260200191505b5060405260200180519060200190929190805190602001909291905050506103ba8489898989878760405160240180876001600160a01b03166001600160a01b03168152602001866001600160a01b03166001600160a01b031681526020018060200180602001858152602001848152602001838103835287818151815260200191508051906020019080838360005b838110156102ed5781810151838201526020016102d5565b50505050905090810190601f16801561031a5780820380516001836020036101000a031916815260200191505b50838103825286518152865160209182019188019080838360005b8381101561034d578181015183820152602001610335565b50505050905090810190601f16801561037a5780820380516001836020036101000a031916815260200191505b5060408051601f198184030181529190526020810180516001600160e01b03908116631e70b25560e21b1790915290995061049c16975050505050505050565b5061048e848560008660405160240180846001600160a01b03166001600160a01b031681526020018315151515815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561042557818101518382015260200161040d565b50505050905090810190601f1680156104525780820380516001836020036101000a031916815260200191505b5060408051601f198184030181529190526020810180516001600160e01b039081166350d85b7360e01b1790915290955061049c169350505050565b50505050505050505061055e565b606060006060846001600160a01b0316846040518082805190602001908083835b602083106104dc5780518252601f1990920191602091820191016104bd565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d806000811461053c576040519150601f19603f3d011682016040523d82523d6000602084013e610541565b606091505b50915091506000821415610556573d60208201fd5b949350505050565b6102188061056d6000396000f3fe60806040526004361061001e5760003560e01c80635c60da1b146100e1575b6000546040805160048152602481019091526020810180516001600160e01b031663076de25160e21b17905261005d916001600160a01b031690610112565b50600080546040516001600160a01b0390911690829036908083838082843760405192019450600093509091505080830381855af49150503d80600081146100c1576040519150601f19603f3d011682016040523d82523d6000602084013e6100c6565b606091505b505090506040513d6000823e8180156100dd573d82f35b3d82fd5b3480156100ed57600080fd5b506100f66101d4565b604080516001600160a01b039092168252519081900360200190f35b606060006060846001600160a01b0316846040518082805190602001908083835b602083106101525780518252601f199092019160209182019101610133565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d80600081146101b2576040519150601f19603f3d011682016040523d82523d6000602084013e6101b7565b606091505b509150915060008214156101cc573d60208201fd5b949350505050565b6000546001600160a01b03168156fea265627a7a7231582080d36dfc16f2b75d4da188aa983cd8c9d6d990a3dfadcda4c9afa32284ba80dc64736f6c63430005110032a2646970667358221220bacc6da43286eb8e6767cfff6b55de64369048c6a83ecbd826d418938f1d6d1a64736f6c634300060c0033

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.