ETH Price: $3,371.18 (-1.03%)

Contract

0x70C4F75ebaF99e24d775C91867b1a844da6eF6FD
 

Overview

ETH Balance

104.674800288714419584 ETH

Eth Value

$352,878.06 (@ $3,371.18/ETH)

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Redeem Underlyin...216623612025-01-20 1:17:3515 hrs ago1737335855IN
0x70C4F75e...4da6eF6FD
0 ETH0.0245640174.05514344
Borrow216525732025-01-18 16:28:592 days ago1737217739IN
0x70C4F75e...4da6eF6FD
0 ETH0.012069436.75561637
Borrow216451522025-01-17 15:37:353 days ago1737128255IN
0x70C4F75e...4da6eF6FD
0 ETH0.0072432723.1689102
Borrow216399912025-01-16 22:19:233 days ago1737065963IN
0x70C4F75e...4da6eF6FD
0 ETH0.001137934.64975548
Repay Borrow216169492025-01-13 17:06:596 days ago1736788019IN
0x70C4F75e...4da6eF6FD
0.5 ETH0.000882378.9
Repay Borrow215529812025-01-04 18:43:2315 days ago1736016203IN
0x70C4F75e...4da6eF6FD
0.34048118 ETH0.000989537.96960711
Borrow215487712025-01-04 4:37:1116 days ago1735965431IN
0x70C4F75e...4da6eF6FD
0 ETH0.001729845.20403139
Repay Borrow215456082025-01-03 18:00:2316 days ago1735927223IN
0x70C4F75e...4da6eF6FD
2.75368026 ETH0.0021724218.2
Borrow215225342024-12-31 12:44:1120 days ago1735649051IN
0x70C4F75e...4da6eF6FD
0 ETH0.0030733410.01895943
Repay Borrow215146972024-12-30 10:29:1121 days ago1735554551IN
0x70C4F75e...4da6eF6FD
0.48720075 ETH0.000490174.10653698
Mint215126792024-12-30 3:42:3521 days ago1735530155IN
0x70C4F75e...4da6eF6FD
0.9 ETH0.000331873.10888691
Mint215124782024-12-30 3:02:1121 days ago1735527731IN
0x70C4F75e...4da6eF6FD
2 ETH0.000329013.08216908
Mint215124722024-12-30 3:00:5921 days ago1735527659IN
0x70C4F75e...4da6eF6FD
2 ETH0.000370733.47300551
Mint215029642024-12-28 19:10:4722 days ago1735413047IN
0x70C4F75e...4da6eF6FD
1 ETH0.000566125.3033051
Mint215009772024-12-28 12:31:1123 days ago1735389071IN
0x70C4F75e...4da6eF6FD
8.9 ETH0.00055795.22634738
Mint215008612024-12-28 12:07:5923 days ago1735387679IN
0x70C4F75e...4da6eF6FD
10 ETH0.000529554.9607324
Mint215008192024-12-28 11:59:3523 days ago1735387175IN
0x70C4F75e...4da6eF6FD
10 ETH0.000839557.86471327
Mint215008062024-12-28 11:56:5923 days ago1735387019IN
0x70C4F75e...4da6eF6FD
0.57 ETH0.00058345.46523024
Mint214979612024-12-28 2:25:2323 days ago1735352723IN
0x70C4F75e...4da6eF6FD
5 ETH0.000396063.7102635
Mint214956022024-12-27 18:31:2323 days ago1735324283IN
0x70C4F75e...4da6eF6FD
1.1 ETH0.000875288.19944615
Repay Borrow214849182024-12-26 6:42:4725 days ago1735195367IN
0x70C4F75e...4da6eF6FD
0.131 ETH0.00047134.75383926
Repay Borrow214830202024-12-26 0:19:1125 days ago1735172351IN
0x70C4F75e...4da6eF6FD
1.45 ETH0.000882378.9
Borrow214815282024-12-25 19:18:5925 days ago1735154339IN
0x70C4F75e...4da6eF6FD
0 ETH0.001970716.33124131
Borrow214796932024-12-25 13:09:3526 days ago1735132175IN
0x70C4F75e...4da6eF6FD
0 ETH0.001048884.20822408
Mint214784162024-12-25 8:52:4726 days ago1735116767IN
0x70C4F75e...4da6eF6FD
5 ETH0.000478884.48607844
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
216623612025-01-20 1:17:3515 hrs ago1737335855
0x70C4F75e...4da6eF6FD
22 ETH
216525732025-01-18 16:28:592 days ago1737217739
0x70C4F75e...4da6eF6FD
1.5 ETH
216451522025-01-17 15:37:353 days ago1737128255
0x70C4F75e...4da6eF6FD
1 ETH
216399912025-01-16 22:19:233 days ago1737065963
0x70C4F75e...4da6eF6FD
0.065 ETH
215529812025-01-04 18:43:2315 days ago1736016203
0x70C4F75e...4da6eF6FD
0.00034013 ETH
215487712025-01-04 4:37:1116 days ago1735965431
0x70C4F75e...4da6eF6FD
2.7 ETH
215456082025-01-03 18:00:2316 days ago1735927223
0x70C4F75e...4da6eF6FD
0.00275089 ETH
215225342024-12-31 12:44:1120 days ago1735649051
0x70C4F75e...4da6eF6FD
0.2 ETH
215146972024-12-30 10:29:1121 days ago1735554551
0x70C4F75e...4da6eF6FD
0.0004867 ETH
214815282024-12-25 19:18:5925 days ago1735154339
0x70C4F75e...4da6eF6FD
4.2 ETH
214796932024-12-25 13:09:3526 days ago1735132175
0x70C4F75e...4da6eF6FD
0.13 ETH
214744392024-12-24 19:33:2326 days ago1735068803
0x70C4F75e...4da6eF6FD
0.4 ETH
214714552024-12-24 9:31:5927 days ago1735032719
0x70C4F75e...4da6eF6FD
0.541 ETH
214604412024-12-22 20:31:5928 days ago1734899519
0x70C4F75e...4da6eF6FD
0.00030057 ETH
214581122024-12-22 12:43:4729 days ago1734871427
0x70C4F75e...4da6eF6FD
1 ETH
214575862024-12-22 10:57:3529 days ago1734865055
0x70C4F75e...4da6eF6FD
6.25 ETH
214575762024-12-22 10:55:3529 days ago1734864935
0x70C4F75e...4da6eF6FD
7.78 ETH
214440602024-12-20 13:33:5931 days ago1734701639
0x70C4F75e...4da6eF6FD
0.00222482 ETH
214436402024-12-20 12:09:4731 days ago1734696587
0x70C4F75e...4da6eF6FD
0.00427301 ETH
214399712024-12-19 23:52:2331 days ago1734652343
0x70C4F75e...4da6eF6FD
6 ETH
214309092024-12-18 17:29:1132 days ago1734542951
0x70C4F75e...4da6eF6FD
1 ETH
214305852024-12-18 16:23:5933 days ago1734539039
0x70C4F75e...4da6eF6FD
2 ETH
214271482024-12-18 4:51:3533 days ago1734497495
0x70C4F75e...4da6eF6FD
14.00000242 ETH
214264682024-12-18 2:35:3533 days ago1734489335
0x70C4F75e...4da6eF6FD
15.00000719 ETH
214258612024-12-18 0:32:4733 days ago1734481967
0x70C4F75e...4da6eF6FD
0.22159427 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CEtherDelegator

Compiler Version
v0.8.23+commit.f704f362

Optimization Enabled:
Yes with 200 runs

Other Settings:
shanghai EvmVersion, BSD-3-Clause license
File 1 of 6 : CEtherDelegator.sol
// SPDX-License-Identifier: BSD-3-Clause
pragma solidity 0.8.23;

import "CTokenInterfaces.sol";

contract CEtherDelegator is CTokenInterface, CEtherInterface, CDelegatorInterface {
    error Unauthorized();
    
    /**
     * @notice Construct a new money market
     * @param comptroller_ The address of the Comptroller
     * @param interestRateModel_ The address of the interest rate model
     * @param initialExchangeRateMantissa_ The initial exchange rate, scaled by 1e18
     * @param name_ ERC-20 name of this token
     * @param symbol_ ERC-20 symbol of this token
     * @param decimals_ ERC-20 decimal precision of this token
     * @param admin_ Address of the administrator of this token
     * @param implementation_ The address of the implementation the contract delegates to
     * @param becomeImplementationData The encoded args for becomeImplementation
     */
    constructor(ComptrollerInterface comptroller_,
                InterestRateModel interestRateModel_,
                uint initialExchangeRateMantissa_,
                string memory name_,
                string memory symbol_,
                uint8 decimals_,
                address payable admin_,
                address implementation_,
                bytes memory becomeImplementationData) {
        // Creator of the contract is admin during initialization
        admin = payable(msg.sender);

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

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

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

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

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

        address oldImplementation = implementation;
        implementation = implementation_;

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

        emit NewImplementation(oldImplementation, implementation);
    }

    function weth() external view returns (address) {
        bytes memory data = delegateToViewImplementation(abi.encodeWithSignature("weth()"));
        return abi.decode(data, (address));
    }

    /**
     * @notice Sender supplies assets into the market and receives cTokens in exchange
     * @dev Reverts upon any failure
     */
    function mint() override external payable {
        delegateToImplementation(abi.encodeWithSignature("mint()"));
    }

    /**
     * @notice Sender redeems cTokens in exchange for the underlying asset
     * @dev Accrues interest whether or not the operation succeeds, unless reverted
     * @param redeemTokens The number of cTokens to redeem into underlying
     * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function redeem(uint redeemTokens) override external returns (uint) {
        bytes memory data = delegateToImplementation(abi.encodeWithSignature("redeem(uint256)", redeemTokens));
        return abi.decode(data, (uint));
    }

    /**
     * @notice Sender redeems cTokens in exchange for a specified amount of underlying asset
     * @dev Accrues interest whether or not the operation succeeds, unless reverted
     * @param redeemAmount The amount of underlying to redeem
     * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function redeemUnderlying(uint redeemAmount) override external returns (uint) {
        bytes memory data = delegateToImplementation(abi.encodeWithSignature("redeemUnderlying(uint256)", redeemAmount));
        return abi.decode(data, (uint));
    }

    /**
      * @notice Sender borrows assets from the protocol to their own address
      * @param borrowAmount The amount of the underlying asset to borrow
      * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
      */
    function borrow(uint borrowAmount) override external returns (uint) {
        bytes memory data = delegateToImplementation(abi.encodeWithSignature("borrow(uint256)", borrowAmount));
        return abi.decode(data, (uint));
    }

    /**
     * @notice Sender repays their own borrow
     * @dev Reverts upon any failure
     */
    function repayBorrow() override external payable {
        delegateToImplementation(abi.encodeWithSignature("repayBorrow()"));
    }

    /**
     * @notice Sender repays a borrow belonging to borrower
     * @dev Reverts upon any failure
     * @param borrower the account with the debt being payed off
     */
    function repayBorrowBehalf(address borrower) override external payable {
        delegateToImplementation(abi.encodeWithSignature("repayBorrowBehalf(address)", borrower));
    }

    /**
     * @notice The liquidator liquidates the borrowers collateral.
     *  This function can only be called by the Comptroller.
     * @param liquidator The liquidator who called Comptroller::batchLiquidateBorrow
     * @param borrower The borrower of this cToken to be liquidated
     * @param repayAmount The amount of the underlying borrowed asset to repay
     * @return uint The amount of the underlying borrowed asset that was actually repaid
     */
    function _liquidateBorrow(address liquidator, address borrower, uint repayAmount) override external returns (uint) {
        bytes memory data = delegateToImplementation(abi.encodeWithSignature("_liquidateBorrow(address,address,uint256)", liquidator, borrower, repayAmount));
        return abi.decode(data, (uint));
    }

    /**
     * @notice Transfer `amount` tokens from `msg.sender` to `dst`
     * @param dst The address of the destination account
     * @param amount The number of tokens to transfer
     * @return Whether or not the transfer succeeded
     */
    function transfer(address dst, uint amount) override external returns (bool) {
        bytes memory data = delegateToImplementation(abi.encodeWithSignature("transfer(address,uint256)", dst, amount));
        return abi.decode(data, (bool));
    }

    /**
     * @notice Transfer `amount` tokens from `src` to `dst`
     * @param src The address of the source account
     * @param dst The address of the destination account
     * @param amount The number of tokens to transfer
     * @return Whether or not the transfer succeeded
     */
    function transferFrom(address src, address dst, uint256 amount) override external returns (bool) {
        bytes memory data = delegateToImplementation(abi.encodeWithSignature("transferFrom(address,address,uint256)", src, dst, amount));
        return abi.decode(data, (bool));
    }

    /**
     * @notice Approve `spender` to transfer up to `amount` from `src`
     * @dev This will overwrite the approval amount for `spender`
     *  and is subject to issues noted [here](https://eips.ethereum.org/EIPS/eip-20#approve)
     * @param spender The address of the account which may transfer tokens
     * @param amount The number of tokens that are approved (-1 means infinite)
     * @return Whether or not the approval succeeded
     */
    function approve(address spender, uint256 amount) override external returns (bool) {
        bytes memory data = delegateToImplementation(abi.encodeWithSignature("approve(address,uint256)", spender, amount));
        return abi.decode(data, (bool));
    }

    /**
     * @notice Get the current allowance from `owner` for `spender`
     * @param owner The address of the account which owns the tokens to be spent
     * @param spender The address of the account which may transfer tokens
     * @return The number of tokens allowed to be spent (-1 means infinite)
     */
    function allowance(address owner, address spender) override external view returns (uint) {
        bytes memory data = delegateToViewImplementation(abi.encodeWithSignature("allowance(address,address)", owner, spender));
        return abi.decode(data, (uint));
    }

    /**
     * @notice Get the token balance of the `owner`
     * @param owner The address of the account to query
     * @return The number of tokens owned by `owner`
     */
    function balanceOf(address owner) override external view returns (uint) {
        bytes memory data = delegateToViewImplementation(abi.encodeWithSignature("balanceOf(address)", owner));
        return abi.decode(data, (uint));
    }

    /**
     * @notice Get the underlying balance of the `owner`
     * @dev This also accrues interest in a transaction
     * @param owner The address of the account to query
     * @return The amount of underlying owned by `owner`
     */
    function balanceOfUnderlying(address owner) override external returns (uint) {
        bytes memory data = delegateToImplementation(abi.encodeWithSignature("balanceOfUnderlying(address)", owner));
        return abi.decode(data, (uint));
    }

    /**
     * @notice Get a snapshot of the account's balances, and the cached exchange rate
     * @dev This is used by comptroller to more efficiently perform liquidity checks.
     * @param account Address of the account to snapshot
     * @return (possible error, token balance, borrow balance, exchange rate mantissa, borrow interest balance (always 0))
     */
    function getAccountSnapshot(address account) override external view returns (uint, uint, uint, uint, uint) {
        bytes memory data = delegateToViewImplementation(abi.encodeWithSignature("getAccountSnapshot(address)", account));
        return abi.decode(data, (uint, uint, uint, uint, uint));
    }

    /**
     * @notice Returns the current per-block borrow interest rate for this cToken
     * @return The borrow interest rate per block, scaled by 1e18
     */
    function borrowRatePerBlock() override external view returns (uint) {
        bytes memory data = delegateToViewImplementation(abi.encodeWithSignature("borrowRatePerBlock()"));
        return abi.decode(data, (uint));
    }

    /**
     * @notice Returns the current per-block supply interest rate for this cToken
     * @return The supply interest rate per block, scaled by 1e18
     */
    function supplyRatePerBlock() override external view returns (uint) {
        bytes memory data = delegateToViewImplementation(abi.encodeWithSignature("supplyRatePerBlock()"));
        return abi.decode(data, (uint));
    }

    /**
     * @notice Returns the current total borrows plus accrued interest
     * @return The total borrows with interest
     */
    function totalBorrowsCurrent() override external returns (uint) {
        bytes memory data = delegateToImplementation(abi.encodeWithSignature("totalBorrowsCurrent()"));
        return abi.decode(data, (uint));
    }

    /**
     * @notice Accrue interest to updated borrowIndex and then calculate account's borrow balance using the updated borrowIndex
     * @param account The address whose balance should be calculated after updating borrowIndex
     * @return The calculated balance
     */
    function borrowBalanceCurrent(address account) override external returns (uint) {
        bytes memory data = delegateToImplementation(abi.encodeWithSignature("borrowBalanceCurrent(address)", account));
        return abi.decode(data, (uint));
    }

    /**
     * @notice Return the borrow balance of account based on stored data
     * @param account The address whose balance should be calculated
     * @return The calculated balance
     */
    function borrowBalanceStored(address account) override public view returns (uint) {
        bytes memory data = delegateToViewImplementation(abi.encodeWithSignature("borrowBalanceStored(address)", account));
        return abi.decode(data, (uint));
    }

    /**
     * @notice Accrue interest then return the up-to-date exchange rate
     * @return Calculated exchange rate scaled by 1e18
     */
    function exchangeRateCurrent() override public returns (uint) {
        bytes memory data = delegateToImplementation(abi.encodeWithSignature("exchangeRateCurrent()"));
        return abi.decode(data, (uint));
    }

    /**
     * @notice Calculates the exchange rate from the underlying to the CToken
     * @dev This function does not accrue interest before calculating the exchange rate
     * @return Calculated exchange rate scaled by 1e18
     */
    function exchangeRateStored() override public view returns (uint) {
        bytes memory data = delegateToViewImplementation(abi.encodeWithSignature("exchangeRateStored()"));
        return abi.decode(data, (uint));
    }

    /**
     * @notice Get cash balance of this cToken in the underlying asset
     * @return The quantity of underlying asset owned by this contract
     */
    function getCash() override external view returns (uint) {
        bytes memory data = delegateToViewImplementation(abi.encodeWithSignature("getCash()"));
        return abi.decode(data, (uint));
    }

    /**
      * @notice Applies accrued interest to total borrows and reserves.
      * @dev This calculates interest accrued from the last checkpointed block
      *      up to the current block and writes new checkpoint to storage.
      */
    function accrueInterest() override public returns (uint) {
        bytes memory data = delegateToImplementation(abi.encodeWithSignature("accrueInterest()"));
        return abi.decode(data, (uint));
    }

    /**
     * @notice Transfers collateral tokens (this market) to the liquidator.
     *         This function can only be called by the Comptroller.
     * @param liquidator The account receiving seized collateral
     * @param borrower The account having collateral seized
     * @param seizeTokens The number of cTokens to seize
     * @return uint actual seizeTokens
     */
    function _seize(address liquidator, address borrower, uint seizeTokens) override external returns (uint) {
        bytes memory data = delegateToImplementation(abi.encodeWithSignature("_seize(address,address,uint256)", liquidator, borrower, seizeTokens));
        return abi.decode(data, (uint));
    }

    /**
     * @notice A public function to sweep accidental ERC-20 transfers to this contract. Tokens are sent to admin (timelock)
     * @param token The address of the ERC-20 token to sweep
     */
    function sweepToken(EIP20NonStandardInterface token) override external {
        delegateToImplementation(abi.encodeWithSignature("sweepToken(address)", token));
    }


    /*** Admin Functions ***/

    /**
      * @notice Begins transfer of admin rights. The newPendingAdmin must call `_acceptAdmin` to finalize the transfer.
      * @dev Admin function to begin change of admin. The newPendingAdmin must call `_acceptAdmin` to finalize the transfer.
      * @param newPendingAdmin New pending admin.
      * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
      */
    function _setPendingAdmin(address payable newPendingAdmin) override external returns (uint) {
        bytes memory data = delegateToImplementation(abi.encodeWithSignature("_setPendingAdmin(address)", newPendingAdmin));
        return abi.decode(data, (uint));
    }

    /**
      * @notice Sets a new comptroller for the market
      * @dev Admin function to set a new comptroller
      * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
      */
    function _setComptroller(ComptrollerInterface newComptroller) override public returns (uint) {
        bytes memory data = delegateToImplementation(abi.encodeWithSignature("_setComptroller(address)", newComptroller));
        return abi.decode(data, (uint));
    }

    /**
      * @notice Sets protocolSeizeShareMantissa
      * @dev Admin function to set protocolSeizeShareMantissa
      * @param newProtocolSeizeShareMantissa New protocolSeizeShareMantissa scaled by 1e18
      * @return uint 0=success, otherwise a failure. (See ErrorReporter for details)
      */
    function _setProtocolSeizeShare(uint newProtocolSeizeShareMantissa) override external returns (uint) {
        bytes memory data = delegateToImplementation(abi.encodeWithSignature("_setProtocolSeizeShare(uint256)", newProtocolSeizeShareMantissa));
        return abi.decode(data, (uint));
    }

    /**
      * @notice accrues interest and sets a new reserve factor for the protocol using _setReserveFactorFresh
      * @dev Admin function to accrue interest and set a new reserve factor
      * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
      */
    function _setReserveFactor(uint newReserveFactorMantissa) override external returns (uint) {
        bytes memory data = delegateToImplementation(abi.encodeWithSignature("_setReserveFactor(uint256)", newReserveFactorMantissa));
        return abi.decode(data, (uint));
    }

    /**
      * @notice Accepts transfer of admin rights. msg.sender must be pendingAdmin
      * @dev Admin function for pending admin to accept role and update admin
      * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
      */
    function _acceptAdmin() override external returns (uint) {
        bytes memory data = delegateToImplementation(abi.encodeWithSignature("_acceptAdmin()"));
        return abi.decode(data, (uint));
    }

    /**
     * @notice Accrues interest and adds reserves by transferring from admin
     * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function _addReserves() override external payable returns (uint) {
        bytes memory data = delegateToImplementation(abi.encodeWithSignature("_addReserves()"));
        return abi.decode(data, (uint));
    }

    /**
     * @notice Accrues interest and reduces reserves by transferring to admin
     * @param reduceAmount Amount of reduction to reserves
     * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function _reduceReserves(uint reduceAmount) override external returns (uint) {
        bytes memory data = delegateToImplementation(abi.encodeWithSignature("_reduceReserves(uint256)", reduceAmount));
        return abi.decode(data, (uint));
    }

    /**
     * @notice Accrues interest and updates the interest rate model using _setInterestRateModelFresh
     * @dev Admin function to accrue interest and update the interest rate model
     * @param newInterestRateModel the new interest rate model to use
     * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function _setInterestRateModel(InterestRateModel newInterestRateModel) override public returns (uint) {
        bytes memory data = delegateToImplementation(abi.encodeWithSignature("_setInterestRateModel(address)", newInterestRateModel));
        return abi.decode(data, (uint));
    }

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

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

    /**
     * @notice Delegates execution to an implementation contract
     * @dev It returns to the external caller whatever the implementation returns or forwards reverts
     *  There are an additional 2 prefix uints from the wrapper returndata, which we ignore since we make an extra hop.
     * @param data The raw data to delegatecall
     * @return The returned bytes from the delegatecall
     */
    function delegateToViewImplementation(bytes memory data) public view returns (bytes memory) {
        (bool success, bytes memory returnData) = address(this).staticcall(abi.encodeWithSignature("delegateToImplementation(bytes)", data));
        assembly {
            if eq(success, 0) {
                revert(add(returnData, 0x20), returndatasize())
            }
        }
        return abi.decode(returnData, (bytes));
    }

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

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

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

File 2 of 6 : CTokenInterfaces.sol
// SPDX-License-Identifier: BSD-3-Clause
pragma solidity 0.8.23;

import "ComptrollerInterface.sol";
import "InterestRateModel.sol";
import "EIP20NonStandardInterface.sol";
import "ErrorReporter.sol";

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

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

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

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

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

    // Maximum fraction of interest that can be set aside for reserves
    uint internal constant reserveFactorMaxMantissa = 1e18;

    // Maximum protocol seize share that can be set
    uint internal constant protocolSeizeShareMaxMantissa = 20e16;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @notice Share of seized collateral that is added to reserves
     */
    uint public protocolSeizeShareMantissa = 2.8e16; //2.8%

    /**
     * @notice MarketType enum
     */
    enum MarketType {
        UNDEFINED_MARKET,
        ERC20_MARKET,
        ERC721_MARKET,
        ERC20_INTEREST_MARKET
    }

    /**
     * @notice Indicates a token market type
     */
    MarketType public marketType;
}

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


    /*** Market Events ***/

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

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

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

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

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

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


    /*** Admin Events ***/

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

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

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

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

    /**
     * @notice Event emitted when the seize share is changed
     */
    event NewProtocolSeizeShare(uint oldProtocolSeizeShareMantissa, uint newProtocolSeizeShareMantissa);

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

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

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

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

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


    /*** User Interface ***/

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


    /*** Admin Functions ***/

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

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

abstract contract CErc20Interface is CErc20Storage {

    /*** User Interface ***/

    function mint(uint mintAmount) virtual external returns (uint);
    function redeem(uint redeemTokens) virtual external returns (uint);
    function redeemUnderlying(uint redeemAmount) virtual external returns (uint);
    function borrow(uint borrowAmount) virtual external returns (uint);
    function repayBorrow(uint repayAmount) virtual external returns (uint);
    function repayBorrowBehalf(address borrower, uint repayAmount) virtual external returns (uint);
    function _liquidateBorrow(address liquidator, address borrower, uint repayAmount) virtual external returns (uint);

    /*** Admin Functions ***/

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

interface IWeth {
    function transferFrom(address src, address dst, uint wad) external;
    function withdraw(uint256 wad) external;
}

abstract contract CEtherInterface is CErc20Storage {

    /*** User Interface ***/

    function mint() virtual external payable;
    function redeem(uint redeemTokens) virtual external returns (uint);
    function redeemUnderlying(uint redeemAmount) virtual external returns (uint);
    function borrow(uint borrowAmount) virtual external returns (uint);
    function repayBorrow() virtual external payable;
    function repayBorrowBehalf(address borrower) virtual external payable;
    function _liquidateBorrow(address liquidator, address borrower, uint repayAmount) virtual external returns (uint);

    /*** Admin Functions ***/

    function _addReserves() virtual external payable returns (uint);
}

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

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

    error CannotReceiveValueGtZero();

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

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

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

File 3 of 6 : ComptrollerInterface.sol
// SPDX-License-Identifier: BSD-3-Clause
pragma solidity 0.8.23;

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

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

    function autoEnterMarkets(address account) virtual external;
    function autoExitMarkets(address account) virtual external;
    function enterMarkets(address[] calldata cTokens) virtual external returns (uint[] memory);
    function exitMarket(address cToken) virtual external returns (uint);
    function redeemAllInterest(address lender, address[] memory cTokens) virtual external returns (uint[] memory);

    /*** Policy Hooks ***/

    function mintAllowed(address cToken, address minter, uint mintAmount) virtual external returns (uint);

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

    function borrowAllowed(address cToken, address borrower, uint borrowAmount) virtual external returns (uint);

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

    function collectInterestAllowed(
        address cTokenInterestMarket,
        address cTokenSupplyMarket,
        address lender,
        uint interestAmount) virtual external returns (uint);

    function payInterestAllowed(
        address cTokenInterestMarket,
        address cTokenBorrowMarket,
        address payer,
        uint payTokens) virtual external returns (uint);

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

    function isListed(address cToken) virtual external view returns (bool);

    function getAssetsExchangeRate(address cTokenA, address cTokenB) virtual external view returns (uint);

    function _checkEoaOrWL(address msgSender) virtual external view returns (bool);

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

    struct Liquidatables {
        address cToken; // token to liquidate
        uint amount;    // non-NFT markets
        uint[] nftIds;  // NFT markets
    }

    function topUpInterestShortfall(address borrower, uint maxTopUpTokens, address cTokenCollateral) virtual external returns (uint[2] memory);

    function batchLiquidateBorrow(address borrower, Liquidatables[] memory liquidatables, address[] memory cTokenCollaterals, uint minSeizedValue) virtual external returns (uint[][2] memory results);

    function liquidateCalculateSeizeTokensNormed(address cTokenCollateral, uint normedRepayAmount) virtual public view returns (uint);

    function interestMarket() virtual external view returns (address);
}

File 4 of 6 : InterestRateModel.sol
// SPDX-License-Identifier: BSD-3-Clause
pragma solidity 0.8.23;

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

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

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

    /**
     * @notice Calculates the current borrow and supply rate per block
     * @param cash The amount of cash in the market
     * @param borrows The amount of borrows in the market
     * @param reserves The amount of reserves in the market
     * @param reserveFactorMantissa The current reserve factor for the market
     * @return (uint, uint) The borrow rate percentage per block as a mantissa (scaled by BASE),
     *         supply rate percentage per block as a mantissa (scaled by BASE)
     */
    function getMarketRates(uint cash, uint borrows, uint reserves, uint reserveFactorMantissa) virtual public view returns (uint, uint) {
      return (getBorrowRate(cash, borrows, reserves), getSupplyRate(cash, borrows, reserves, reserveFactorMantissa));
    }
}

File 5 of 6 : EIP20NonStandardInterface.sol
// SPDX-License-Identifier: BSD-3-Clause
pragma solidity 0.8.23;

/**
 * @title EIP20NonStandardInterface
 * @dev Version of ERC20 with no return values for `transfer` and `transferFrom`
 *  See https://medium.com/coinmonks/missing-return-value-bug-at-least-130-tokens-affected-d67bf08521ca
 */
interface EIP20NonStandardInterface {

    /**
     * @notice Get the total number of tokens in circulation
     * @return The supply of tokens
     */
    function totalSupply() external view returns (uint256);

    /**
     * @notice Gets the balance of the specified address
     * @param owner The address from which the balance will be retrieved
     * @return balance The balance
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    ///
    /// !!!!!!!!!!!!!!
    /// !!! NOTICE !!! `transfer` does not return a value, in violation of the ERC-20 specification
    /// !!!!!!!!!!!!!!
    ///

    /**
      * @notice Transfer `amount` tokens from `msg.sender` to `dst`
      * @param dst The address of the destination account
      * @param amount The number of tokens to transfer
      */
    function transfer(address dst, uint256 amount) external;

    ///
    /// !!!!!!!!!!!!!!
    /// !!! NOTICE !!! `transferFrom` does not return a value, in violation of the ERC-20 specification
    /// !!!!!!!!!!!!!!
    ///

    /**
      * @notice Transfer `amount` tokens from `src` to `dst`
      * @param src The address of the source account
      * @param dst The address of the destination account
      * @param amount The number of tokens to transfer
      */
    function transferFrom(address src, address dst, uint256 amount) external;

    /**
      * @notice Approve `spender` to transfer up to `amount` from `src`
      * @dev This will overwrite the approval amount for `spender`
      *  and is subject to issues noted [here](https://eips.ethereum.org/EIPS/eip-20#approve)
      * @param spender The address of the account which may transfer tokens
      * @param amount The number of tokens that are approved
      * @return success Whether or not the approval succeeded
      */
    function approve(address spender, uint256 amount) external returns (bool success);

    /**
      * @notice Get the current allowance from `owner` for `spender`
      * @param owner The address of the account which owns the tokens to be spent
      * @param spender The address of the account which may transfer tokens
      * @return remaining The number of tokens allowed to be spent
      */
    function allowance(address owner, address spender) external view returns (uint256 remaining);

    event Transfer(address indexed from, address indexed to, uint256 amount);
    event Approval(address indexed owner, address indexed spender, uint256 amount);
}

File 6 of 6 : ErrorReporter.sol
// SPDX-License-Identifier: BSD-3-Clause
pragma solidity 0.8.23;

contract ComptrollerErrorReporter {
    enum Error {
        NO_ERROR,
        UNAUTHORIZED,
        COMPTROLLER_MISMATCH,
        INSUFFICIENT_SHORTFALL,
        INSUFFICIENT_LIQUIDITY,
        INVALID_CLOSE_FACTOR,
        INVALID_COLLATERAL_FACTOR,
        INVALID_LIQUIDATION_INCENTIVE,
        MARKET_NOT_ENTERED, // no longer possible
        MARKET_NOT_LISTED,
        MARKET_ALREADY_LISTED,
        MATH_ERROR,
        NONZERO_BORROW_BALANCE,
        PRICE_ERROR,
        REJECTION,
        SNAPSHOT_ERROR,
        TOO_MANY_ASSETS,
        TOO_MUCH_REPAY,
        INVALID_MARKET_TYPE,
        TOO_LITTLE_INTEREST_RESERVE,
        NONZERO_INTEREST_BALANCE,
        LIQUIDATE_SEIZE_TOO_LITTLE
    }

    enum FailureInfo {
        ACCEPT_ADMIN_PENDING_ADMIN_CHECK,
        ACCEPT_PENDING_IMPLEMENTATION_ADDRESS_CHECK,
        EXIT_MARKET_BALANCE_OWED,
        EXIT_MARKET_REJECTION,
        SET_CLOSE_FACTOR_OWNER_CHECK,
        SET_CLOSE_FACTOR_VALIDATION,
        SET_COLLATERAL_FACTOR_OWNER_CHECK,
        SET_COLLATERAL_FACTOR_NO_EXISTS,
        SET_COLLATERAL_FACTOR_VALIDATION,
        SET_COLLATERAL_FACTOR_WITHOUT_PRICE,
        SET_IMPLEMENTATION_OWNER_CHECK,
        SET_LIQUIDATION_INCENTIVE_OWNER_CHECK,
        SET_LIQUIDATION_INCENTIVE_VALIDATION,
        SET_MAX_ASSETS_OWNER_CHECK,
        SET_PENDING_ADMIN_OWNER_CHECK,
        SET_PENDING_IMPLEMENTATION_OWNER_CHECK,
        SET_PRICE_ORACLE_OWNER_CHECK,
        SUPPORT_MARKET_EXISTS,
        SUPPORT_MARKET_OWNER_CHECK,
        SET_PAUSE_GUARDIAN_OWNER_CHECK
    }

    /**
      * @dev `error` corresponds to enum Error; `info` corresponds to enum FailureInfo, and `detail` is an arbitrary
      * contract-specific code that enables us to report opaque error codes from upgradeable contracts.
      **/
    event Failure(uint error, uint info, uint detail);

    error Unauthorized();
    error InitializationFailed();

    error GetAccountSnapshotFailed(uint256 errorCode);

    error SeizePaused();
    error MintPaused();
    error BorrowPaused();
    error CollectInterestPaused();
    error PayInterestPaused();
    error TransferPaused();

    error InsufficientShortfall(uint errorCode, uint value);
    error InvalidTopUpLimit();
    error TopUpLimitExceeded();
    error TopUpZero();
    error SeizeFailed();
    error TopUpFailed();
    error LiquidateError();
    error LiquidateSeizeTooLittle();
    error LiquidateSeizeTooMuch();
    error LiquidateSeizeBellowMinValue(uint minSeizedValue, uint liquidatedValueTotal);
    error ExcessRefundFailed();
    error BorrowCapReached();
    error MarketAlreadyAdded();
    error InvalidInput();
    error OnlyAdminCanUnpause();
    error ChangeNotAuthorized();

    error MarketNotListed();
    error SameMarket();
    error WrongMarketType();
    error PriceError();
    error ComptrollerMismatch();
    error InvalidMarket();
    

    /**
      * @dev use this when reporting a known error from the money market or a non-upgradeable collaborator
      */
    function fail(Error err, FailureInfo info) internal returns (uint) {
        emit Failure(uint(err), uint(info), 0);

        return uint(err);
    }

    /**
      * @dev use this when reporting an opaque error from an upgradeable collaborator contract
      */
    function failOpaque(Error err, FailureInfo info, uint opaqueError) internal returns (uint) {
        emit Failure(uint(err), uint(info), opaqueError);

        return uint(err);
    }
}

contract TokenErrorReporter {
    uint public constant NO_ERROR = 0; // support legacy return codes

    error Unauthorized();
    error Unsupported();

    error AlreadyInitialized();
    error InitializeExchangeRateInvalid();
    error InitializeSetComptrollerFailed(uint256 errorCode);
    error InitializeSetInterestRateModelFailed(uint256 errorCode);
    error InitializeMarketTypeNotSet();
    error InitializeInvalidMarketType();
    error EnsureNonEmptyAmountTooSmall();

    error TransferComptrollerRejection(uint256 errorCode);
    error TransferNotAllowed();
    error TransferNotEnough();
    error TransferTooMuch();
    error TransferInvalidAmount();

    error TransferInFailed();
    error InsufficientBalanceAfterTransfer();
    error TransferOutFailed();

    error MintComptrollerRejection(uint256 errorCode);
    error MintFreshnessCheck();

    error RedeemComptrollerRejection(uint256 errorCode);
    error RedeemFreshnessCheck();
    error RedeemTransferOutNotPossible();
    error RedeemInvalidInputs();

    error BorrowComptrollerRejection(uint256 errorCode);
    error BorrowFreshnessCheck();
    error BorrowCashNotAvailable();

    error RepayBorrowComptrollerRejection(uint256 errorCode);
    error RepayBorrowFreshnessCheck();
    error RepayTooHigh();

    error LiquidateComptrollerRejection(uint256 errorCode);
    error LiquidateFreshnessCheck();
    error LiquidateCollateralFreshnessCheck();
    error LiquidateAccrueBorrowInterestFailed(uint256 errorCode);
    error LiquidateAccrueCollateralInterestFailed(uint256 errorCode);
    error LiquidateLiquidatorIsBorrower();
    error LiquidateCloseAmountIsZero();
    error LiquidateCloseAmountIsUintMax();
    error LiquidateRepayBorrowFreshFailed(uint256 errorCode);

    error LiquidateSeizeComptrollerRejection(uint256 errorCode);
    error LiquidateSeizeLiquidatorIsBorrower();

    error AcceptAdminPendingAdminCheck();

    error SetComptrollerOwnerCheck();
    error SetPendingAdminOwnerCheck();

    error SetReserveFactorAdminCheck();
    error SetReserveFactorFreshCheck();
    error SetReserveFactorBoundsCheck();

    error AddReservesFactorFreshCheck(uint256 actualAddAmount);

    error ReduceReservesAdminCheck();
    error ReduceReservesFreshCheck();
    error ReduceReservesCashNotAvailable();
    error ReduceReservesCashValidation();

    error SetInterestRateModelOwnerCheck();
    error SetInterestRateModelFreshCheck();

    error SetProtocolSeizeShareAdminCheck();
    error SetProtocolSeizeShareTooHigh();

    error BorrowRateIsAbsurdlyHigh(uint borrowRateMantissa);

    error InvalidComptrollerAddress(address comptrollerAddress);
    error InvalidRateModelAddress(address interestRateModelAddress);

    error Reentry();

    error CannotSweepUnderlying();

    error CollectInterestFailed();
    error CollectInterestNotAllowed();
    error PayInterestNotAllowed();
    error InsufficientBalance();
    error PayInterestError();

    error SenderMismatch();
    error ValueMismatch();

    error PriceError();
}

Settings
{
  "evmVersion": "shanghai",
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "libraries": {
    "CEtherDelegator.sol": {}
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract ComptrollerInterface","name":"comptroller_","type":"address"},{"internalType":"contract InterestRateModel","name":"interestRateModel_","type":"address"},{"internalType":"uint256","name":"initialExchangeRateMantissa_","type":"uint256"},{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint8","name":"decimals_","type":"uint8"},{"internalType":"address payable","name":"admin_","type":"address"},{"internalType":"address","name":"implementation_","type":"address"},{"internalType":"bytes","name":"becomeImplementationData","type":"bytes"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"CannotReceiveValueGtZero","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"cashPrior","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"interestAccumulated","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"borrowIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalBorrows","type":"uint256"}],"name":"AccrueInterest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"borrower","type":"address"},{"indexed":false,"internalType":"uint256","name":"borrowAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"accountBorrows","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalBorrows","type":"uint256"}],"name":"Borrow","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"liquidator","type":"address"},{"indexed":false,"internalType":"address","name":"borrower","type":"address"},{"indexed":false,"internalType":"uint256","name":"repayAmount","type":"uint256"}],"name":"LiquidateBorrow","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"mintAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"mintTokens","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"NewAdmin","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract ComptrollerInterface","name":"oldComptroller","type":"address"},{"indexed":false,"internalType":"contract ComptrollerInterface","name":"newComptroller","type":"address"}],"name":"NewComptroller","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldImplementation","type":"address"},{"indexed":false,"internalType":"address","name":"newImplementation","type":"address"}],"name":"NewImplementation","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract InterestRateModel","name":"oldInterestRateModel","type":"address"},{"indexed":false,"internalType":"contract InterestRateModel","name":"newInterestRateModel","type":"address"}],"name":"NewMarketInterestRateModel","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldPendingAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newPendingAdmin","type":"address"}],"name":"NewPendingAdmin","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldProtocolSeizeShareMantissa","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newProtocolSeizeShareMantissa","type":"uint256"}],"name":"NewProtocolSeizeShare","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldReserveFactorMantissa","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newReserveFactorMantissa","type":"uint256"}],"name":"NewReserveFactor","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"redeemer","type":"address"},{"indexed":false,"internalType":"uint256","name":"redeemAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"redeemTokens","type":"uint256"}],"name":"Redeem","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"payer","type":"address"},{"indexed":false,"internalType":"address","name":"borrower","type":"address"},{"indexed":false,"internalType":"uint256","name":"repayAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"accountBorrows","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalBorrows","type":"uint256"}],"name":"RepayBorrow","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"benefactor","type":"address"},{"indexed":false,"internalType":"uint256","name":"addAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newTotalReserves","type":"uint256"}],"name":"ReservesAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"admin","type":"address"},{"indexed":false,"internalType":"uint256","name":"reduceAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newTotalReserves","type":"uint256"}],"name":"ReservesReduced","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Transfer","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"_acceptAdmin","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"_addReserves","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"liquidator","type":"address"},{"internalType":"address","name":"borrower","type":"address"},{"internalType":"uint256","name":"repayAmount","type":"uint256"}],"name":"_liquidateBorrow","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"reduceAmount","type":"uint256"}],"name":"_reduceReserves","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"liquidator","type":"address"},{"internalType":"address","name":"borrower","type":"address"},{"internalType":"uint256","name":"seizeTokens","type":"uint256"}],"name":"_seize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ComptrollerInterface","name":"newComptroller","type":"address"}],"name":"_setComptroller","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"implementation_","type":"address"},{"internalType":"bool","name":"allowResign","type":"bool"},{"internalType":"bytes","name":"becomeImplementationData","type":"bytes"}],"name":"_setImplementation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract InterestRateModel","name":"newInterestRateModel","type":"address"}],"name":"_setInterestRateModel","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"newPendingAdmin","type":"address"}],"name":"_setPendingAdmin","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newProtocolSeizeShareMantissa","type":"uint256"}],"name":"_setProtocolSeizeShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newReserveFactorMantissa","type":"uint256"}],"name":"_setReserveFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"accrualBlockNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"accrueInterest","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOfUnderlying","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"borrowAmount","type":"uint256"}],"name":"borrow","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"borrowBalanceCurrent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"borrowBalanceStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"borrowIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"borrowRatePerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"comptroller","outputs":[{"internalType":"contract ComptrollerInterface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"data","type":"bytes"}],"name":"delegateToImplementation","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes","name":"data","type":"bytes"}],"name":"delegateToViewImplementation","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"exchangeRateCurrent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"exchangeRateStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getAccountSnapshot","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCash","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"interestRateModel","outputs":[{"internalType":"contract InterestRateModel","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isCToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketType","outputs":[{"internalType":"enum CTokenStorage.MarketType","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingAdmin","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"protocolSeizeShareMantissa","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"redeemTokens","type":"uint256"}],"name":"redeem","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"redeemAmount","type":"uint256"}],"name":"redeemUnderlying","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"repayBorrow","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"borrower","type":"address"}],"name":"repayBorrowBehalf","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"reserveFactorMantissa","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"supplyRatePerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract EIP20NonStandardInterface","name":"token","type":"address"}],"name":"sweepToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBorrows","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBorrowsCurrent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalReserves","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"underlying","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

6080604052666379da05b600006011553480156200001b575f80fd5b50604051620020a3380380620020a38339810160408190526200003e91620003a9565b60038054610100600160a81b0319163361010002179055604051620000ad90839062000079908c908c908c908c908c908c90602401620004c7565b60408051601f198184030181529190526020810180516001600160e01b03908116632676306d60e21b17909152620000f016565b50620000bb825f8362000168565b5050600380546001600160a01b0390921661010002610100600160a81b0319909216919091179055506200055e945050505050565b60605f80846001600160a01b0316846040516200010e919062000526565b5f60405180830381855af49150503d805f811462000148576040519150601f19603f3d011682016040523d82523d5f602084013e6200014d565b606091505b5090925090508162000160573d60208201fd5b949350505050565b60035461010090046001600160a01b0316331462000198576040516282b42960e81b815260040160405180910390fd5b8115620001da576040805160048152602481019091526020810180516001600160e01b0390811663153ab50560e01b17909152620001d891906200029516565b505b601380546001600160a01b038581166001600160a01b031983161790925560405191169062000247906200021390849060240162000543565b60408051601f198184030181529190526020810180516001600160e01b03908116630adccee560e31b179091526200029516565b50601354604080516001600160a01b03808516825290921660208301527fd604de94d45953f9138079ec1b82d533cb2160c906d1076d1f7ed54befbca97a910160405180910390a150505050565b601354606090620002b0906001600160a01b031683620000f0565b92915050565b80516001600160a01b0381168114620002cd575f80fd5b919050565b634e487b7160e01b5f52604160045260245ffd5b5f5b8381101562000302578181015183820152602001620002e8565b50505f910152565b5f82601f8301126200031a575f80fd5b81516001600160401b0380821115620003375762000337620002d2565b604051601f8301601f19908116603f01168101908282118183101715620003625762000362620002d2565b816040528381528660208588010111156200037b575f80fd5b6200038e846020830160208901620002e6565b9695505050505050565b805160ff81168114620002cd575f80fd5b5f805f805f805f805f6101208a8c031215620003c3575f80fd5b620003ce8a620002b6565b9850620003de60208b01620002b6565b60408b015160608c015191995097506001600160401b038082111562000402575f80fd5b620004108d838e016200030a565b975060808c015191508082111562000426575f80fd5b620004348d838e016200030a565b96506200044460a08d0162000398565b95506200045460c08d01620002b6565b94506200046460e08d01620002b6565b93506101008c01519150808211156200047b575f80fd5b506200048a8c828d016200030a565b9150509295985092959850929598565b5f8151808452620004b3816020860160208601620002e6565b601f01601f19169290920160200192915050565b6001600160a01b038781168252861660208201526040810185905260c0606082018190525f90620004fb908301866200049a565b82810360808401526200050f81866200049a565b91505060ff831660a0830152979650505050505050565b5f825162000539818460208701620002e6565b9190910192915050565b602081525f6200055760208301846200049a565b9392505050565b611b37806200056c5f395ff3fe60806040526004361061034f575f3560e01c80636c540baf116101c5578063bd6d894d116100f6578063f2b3abbd11610094578063f8f9da281161006e578063f8f9da281461098b578063fca7820b1461099f578063fcb64147146109be578063fe9c44ae146109c65761034f565b8063f2b3abbd14610929578063f3fdb15a14610948578063f851a440146109675761034f565b8063db006a75116100d0578063db006a75146108c4578063dd62ed3e146108e3578063e597461914610902578063e9c714f2146109155761034f565b8063bd6d894d1461084a578063c37f68e21461085e578063c5ebeaec146108a55761034f565b806395d89b4111610163578063a9059cbb1161013d578063a9059cbb146107e3578063aa5af0fd14610802578063ae9d70b014610817578063b71d1a0c1461082b5761034f565b806395d89b411461079c57806395dd9193146107b0578063a6afed95146107cf5761034f565b806373acee981161019f57806373acee98146107355780638303084614610749578063852a12e3146107685780638f840ddd146107875761034f565b80636c540baf146106dd5780636f307dc3146106f257806370a08231146107165761034f565b80632e85fb411161029f57806347bd37181161023d5780635c60da1b116102175780635c60da1b1461066b5780635fe3b5671461068a578063601a0bf1146106a95780636752e702146106c85761034f565b806347bd37181461062f5780634e4d9fea14610644578063555bcc401461064c5761034f565b80633b1d21a2116102795780633b1d21a2146105c95780633fc8cef3146105dd5780634487152f146105f15780634576b5db146106105761034f565b80632e85fb4114610560578063313ce5671461057f5780633af9e669146105aa5761034f565b806318160ddd1161030c5780631be19560116102e65780631be19560146104c557806323b872dd146104e457806326782247146105035780632dd489091461053a5761034f565b806318160ddd1461047d578063182df0f51461049257806319d1b799146104a65761034f565b806306fdde03146103c75780630933c1ed146103f1578063095ea7b3146104045780631249c58b14610433578063173b99041461043b57806317bfdfbc1461045e575b6013546040515f916001600160a01b03169061036e90839036906116e8565b5f60405180830381855af49150503d805f81146103a6576040519150601f19603f3d011682016040523d82523d5f602084013e6103ab565b606091505b505090506040513d5f823e8180156103c1573d82f35b3d82fd5b005b3480156103d2575f80fd5b506103db6109da565b6040516103e89190611744565b60405180910390f35b6103db6103ff366004611814565b610a66565b34801561040f575f80fd5b5061042361041e36600461185a565b610a85565b60405190151581526020016103e8565b6103c5610af6565b348015610446575f80fd5b5061045060085481565b6040519081526020016103e8565b348015610469575f80fd5b50610450610478366004611884565b610b2b565b348015610488575f80fd5b50610450600d5481565b34801561049d575f80fd5b50610450610b94565b3480156104b1575f80fd5b506104506104c036600461189f565b610be6565b3480156104d0575f80fd5b506103c56104df366004611884565b610c60565b3480156104ef575f80fd5b506104236104fe36600461189f565b610cab565b34801561050e575f80fd5b50600454610522906001600160a01b031681565b6040516001600160a01b0390911681526020016103e8565b348015610545575f80fd5b506012546105539060ff1681565b6040516103e891906118dd565b34801561056b575f80fd5b5061045061057a36600461189f565b610d1c565b34801561058a575f80fd5b506003546105989060ff1681565b60405160ff90911681526020016103e8565b3480156105b5575f80fd5b506104506105c4366004611884565b610d77565b3480156105d4575f80fd5b50610450610dc3565b3480156105e8575f80fd5b50610522610df9565b3480156105fc575f80fd5b506103db61060b366004611814565b610e45565b34801561061b575f80fd5b5061045061062a366004611884565b610efc565b34801561063a575f80fd5b50610450600b5481565b6103c5610f48565b348015610657575f80fd5b506103c5610666366004611910565b610f7a565b348015610676575f80fd5b50601354610522906001600160a01b031681565b348015610695575f80fd5b50600554610522906001600160a01b031681565b3480156106b4575f80fd5b506104506106c336600461196e565b611096565b3480156106d3575f80fd5b5061045060115481565b3480156106e8575f80fd5b5061045060095481565b3480156106fd575f80fd5b506012546105229061010090046001600160a01b031681565b348015610721575f80fd5b50610450610730366004611884565b6110dd565b348015610740575f80fd5b50610450611129565b348015610754575f80fd5b5061045061076336600461196e565b61115f565b348015610773575f80fd5b5061045061078236600461196e565b6111a6565b348015610792575f80fd5b50610450600c5481565b3480156107a7575f80fd5b506103db6111ed565b3480156107bb575f80fd5b506104506107ca366004611884565b6111fa565b3480156107da575f80fd5b50610450611246565b3480156107ee575f80fd5b506104236107fd36600461185a565b61127c565b34801561080d575f80fd5b50610450600a5481565b348015610822575f80fd5b506104506112cf565b348015610836575f80fd5b50610450610845366004611884565b611305565b348015610855575f80fd5b50610450611351565b348015610869575f80fd5b5061087d610878366004611884565b611387565b604080519586526020860194909452928401919091526060830152608082015260a0016103e8565b3480156108b0575f80fd5b506104506108bf36600461196e565b611408565b3480156108cf575f80fd5b506104506108de36600461196e565b61144f565b3480156108ee575f80fd5b506104506108fd366004611985565b611496565b6103c5610910366004611884565b611500565b348015610920575f80fd5b50610450611548565b348015610934575f80fd5b50610450610943366004611884565b61157e565b348015610953575f80fd5b50600654610522906001600160a01b031681565b348015610972575f80fd5b506003546105229061010090046001600160a01b031681565b348015610996575f80fd5b506104506115ca565b3480156109aa575f80fd5b506104506109b936600461196e565b611600565b610450611647565b3480156109d1575f80fd5b50610423600181565b600180546109e7906119bc565b80601f0160208091040260200160405190810160405280929190818152602001828054610a13906119bc565b8015610a5e5780601f10610a3557610100808354040283529160200191610a5e565b820191905f5260205f20905b815481529060010190602001808311610a4157829003601f168201915b505050505081565b601354606090610a7f906001600160a01b03168361167d565b92915050565b6040516001600160a01b0383166024820152604481018290525f908190610ad89060640160408051601f198184030181529190526020810180516001600160e01b031663095ea7b360e01b179052610a66565b905080806020019051810190610aee91906119f4565b949350505050565b6040805160048152602481019091526020810180516001600160e01b0316631249c58b60e01b179052610b2890610a66565b50565b6040516001600160a01b03821660248201525f908190610b779060440160408051601f198184030181529190526020810180516001600160e01b03166305eff7ef60e21b179052610a66565b905080806020019051810190610b8d9190611a0f565b9392505050565b6040805160048152602481019091526020810180516001600160e01b031663182df0f560e01b1790525f908190610bca90610e45565b905080806020019051810190610be09190611a0f565b91505090565b6040516001600160a01b03808516602483015283166044820152606481018290525f908190610c419060840160408051601f198184030181529190526020810180516001600160e01b03166319d1b79960e01b179052610a66565b905080806020019051810190610c579190611a0f565b95945050505050565b6040516001600160a01b0382166024820152610ca79060440160408051601f198184030181529190526020810180516001600160e01b031662df0cab60e51b179052610a66565b5050565b6040516001600160a01b03808516602483015283166044820152606481018290525f908190610d069060840160408051601f198184030181529190526020810180516001600160e01b03166323b872dd60e01b179052610a66565b905080806020019051810190610c5791906119f4565b6040516001600160a01b03808516602483015283166044820152606481018290525f908190610c419060840160408051601f198184030181529190526020810180516001600160e01b0316632e85fb4160e01b179052610a66565b6040516001600160a01b03821660248201525f908190610b779060440160408051601f198184030181529190526020810180516001600160e01b0316633af9e66960e01b179052610a66565b6040805160048152602481019091526020810180516001600160e01b0316631d8e90d160e11b1790525f908190610bca90610e45565b6040805160048152602481019091526020810180516001600160e01b0316633fc8cef360e01b1790525f908190610e2f90610e45565b905080806020019051810190610be09190611a26565b60605f80306001600160a01b031684604051602401610e649190611744565b60408051601f198184030181529181526020820180516001600160e01b0316630933c1ed60e01b17905251610e999190611a41565b5f60405180830381855afa9150503d805f8114610ed1576040519150601f19603f3d011682016040523d82523d5f602084013e610ed6565b606091505b50909250905081610ee8573d60208201fd5b80806020019051810190610aee9190611a5c565b6040516001600160a01b03821660248201525f908190610b779060440160408051601f198184030181529190526020810180516001600160e01b0316634576b5db60e01b179052610a66565b6040805160048152602481019091526020810180516001600160e01b0316632726cff560e11b179052610b2890610a66565b60035461010090046001600160a01b03163314610fa9576040516282b42960e81b815260040160405180910390fd5b8115610fe3576040805160048152602481019091526020810180516001600160e01b031663153ab50560e01b179052610fe190610a66565b505b601380546001600160a01b038581166001600160a01b031983161790925560405191169061104890611019908490602401611744565b60408051601f198184030181529190526020810180516001600160e01b0316630adccee560e31b179052610a66565b50601354604080516001600160a01b03808516825290921660208301527fd604de94d45953f9138079ec1b82d533cb2160c906d1076d1f7ed54befbca97a910160405180910390a150505050565b5f80610b77836040516024016110ae91815260200190565b60408051601f198184030181529190526020810180516001600160e01b031663601a0bf160e01b179052610a66565b6040516001600160a01b03821660248201525f908190610b779060440160408051601f198184030181529190526020810180516001600160e01b03166370a0823160e01b179052610e45565b6040805160048152602481019091526020810180516001600160e01b0316630e759dd360e31b1790525f908190610bca90610a66565b5f80610b778360405160240161117791815260200190565b60408051601f198184030181529190526020810180516001600160e01b0316634181842360e11b179052610a66565b5f80610b77836040516024016111be91815260200190565b60408051601f198184030181529190526020810180516001600160e01b031663852a12e360e01b179052610a66565b600280546109e7906119bc565b6040516001600160a01b03821660248201525f908190610b779060440160408051601f198184030181529190526020810180516001600160e01b03166395dd919360e01b179052610e45565b6040805160048152602481019091526020810180516001600160e01b031663a6afed9560e01b1790525f908190610bca90610a66565b6040516001600160a01b0383166024820152604481018290525f908190610ad89060640160408051601f198184030181529190526020810180516001600160e01b031663a9059cbb60e01b179052610a66565b6040805160048152602481019091526020810180516001600160e01b0316630ae9d70b60e41b1790525f908190610bca90610e45565b6040516001600160a01b03821660248201525f908190610b779060440160408051601f198184030181529190526020810180516001600160e01b0316632dc7468360e21b179052610a66565b6040805160048152602481019091526020810180516001600160e01b031663bd6d894d60e01b1790525f908190610bca90610a66565b5f805f805f806113df876040516024016113b091906001600160a01b0391909116815260200190565b60408051601f198184030181529190526020810180516001600160e01b03166361bfb47160e11b179052610e45565b9050808060200190518101906113f59190611ac5565b939b929a50909850965090945092505050565b5f80610b778360405160240161142091815260200190565b60408051601f198184030181529190526020810180516001600160e01b031663317afabb60e21b179052610a66565b5f80610b778360405160240161146791815260200190565b60408051601f198184030181529190526020810180516001600160e01b031663db006a7560e01b179052610a66565b6040516001600160a01b038084166024830152821660448201525f9081906114ea9060640160408051601f198184030181529190526020810180516001600160e01b0316636eb1769f60e11b179052610e45565b905080806020019051810190610aee9190611a0f565b6040516001600160a01b0382166024820152610ca79060440160408051601f198184030181529190526020810180516001600160e01b031663e597461960e01b179052610a66565b6040805160048152602481019091526020810180516001600160e01b03166374e38a7960e11b1790525f908190610bca90610a66565b6040516001600160a01b03821660248201525f908190610b779060440160408051601f198184030181529190526020810180516001600160e01b031663f2b3abbd60e01b179052610a66565b6040805160048152602481019091526020810180516001600160e01b0316631f1f3b4560e31b1790525f908190610bca90610e45565b5f80610b778360405160240161161891815260200190565b60408051601f198184030181529190526020810180516001600160e01b031663fca7820b60e01b179052610a66565b6040805160048152602481019091526020810180516001600160e01b031663fcb6414760e01b1790525f908190610bca90610a66565b60605f80846001600160a01b0316846040516116999190611a41565b5f60405180830381855af49150503d805f81146116d1576040519150601f19603f3d011682016040523d82523d5f602084013e6116d6565b606091505b50909250905081610aee573d60208201fd5b818382375f9101908152919050565b5f5b838110156117115781810151838201526020016116f9565b50505f910152565b5f81518084526117308160208601602086016116f7565b601f01601f19169290920160200192915050565b602081525f610b8d6020830184611719565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561179357611793611756565b604052919050565b5f67ffffffffffffffff8211156117b4576117b4611756565b50601f01601f191660200190565b5f82601f8301126117d1575f80fd5b81356117e46117df8261179b565b61176a565b8181528460208386010111156117f8575f80fd5b816020850160208301375f918101602001919091529392505050565b5f60208284031215611824575f80fd5b813567ffffffffffffffff81111561183a575f80fd5b610aee848285016117c2565b6001600160a01b0381168114610b28575f80fd5b5f806040838503121561186b575f80fd5b823561187681611846565b946020939093013593505050565b5f60208284031215611894575f80fd5b8135610b8d81611846565b5f805f606084860312156118b1575f80fd5b83356118bc81611846565b925060208401356118cc81611846565b929592945050506040919091013590565b60208101600483106118fd57634e487b7160e01b5f52602160045260245ffd5b91905290565b8015158114610b28575f80fd5b5f805f60608486031215611922575f80fd5b833561192d81611846565b9250602084013561193d81611903565b9150604084013567ffffffffffffffff811115611958575f80fd5b611964868287016117c2565b9150509250925092565b5f6020828403121561197e575f80fd5b5035919050565b5f8060408385031215611996575f80fd5b82356119a181611846565b915060208301356119b181611846565b809150509250929050565b600181811c908216806119d057607f821691505b6020821081036119ee57634e487b7160e01b5f52602260045260245ffd5b50919050565b5f60208284031215611a04575f80fd5b8151610b8d81611903565b5f60208284031215611a1f575f80fd5b5051919050565b5f60208284031215611a36575f80fd5b8151610b8d81611846565b5f8251611a528184602087016116f7565b9190910192915050565b5f60208284031215611a6c575f80fd5b815167ffffffffffffffff811115611a82575f80fd5b8201601f81018413611a92575f80fd5b8051611aa06117df8261179b565b818152856020838501011115611ab4575f80fd5b610c578260208301602086016116f7565b5f805f805f60a08688031215611ad9575f80fd5b505083516020850151604086015160608701516080909701519298919750959450909250905056fea2646970667358221220a421cf47e06eeb05fa09d68b7b0d844df5ffb00dda49e04b4a77a231ce5edbb264736f6c63430008170033000000000000000000000000f9c70750bf615de83fe7ff62d30c7faacd8f8ba00000000000000000000000008cd2001327a919653b9e0e1adb9298772ed8d25c000000000000000000000000000000000000000000a56fa5b99019a5c800000000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000000800000000000000000000000043a314183c0033528827be7cf426523bac412780000000000000000000000000202bbcdce24e827c592d45cfde7626e5f5c9000e00000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000000d46756e67696679204574686572000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004664554480000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061034f575f3560e01c80636c540baf116101c5578063bd6d894d116100f6578063f2b3abbd11610094578063f8f9da281161006e578063f8f9da281461098b578063fca7820b1461099f578063fcb64147146109be578063fe9c44ae146109c65761034f565b8063f2b3abbd14610929578063f3fdb15a14610948578063f851a440146109675761034f565b8063db006a75116100d0578063db006a75146108c4578063dd62ed3e146108e3578063e597461914610902578063e9c714f2146109155761034f565b8063bd6d894d1461084a578063c37f68e21461085e578063c5ebeaec146108a55761034f565b806395d89b4111610163578063a9059cbb1161013d578063a9059cbb146107e3578063aa5af0fd14610802578063ae9d70b014610817578063b71d1a0c1461082b5761034f565b806395d89b411461079c57806395dd9193146107b0578063a6afed95146107cf5761034f565b806373acee981161019f57806373acee98146107355780638303084614610749578063852a12e3146107685780638f840ddd146107875761034f565b80636c540baf146106dd5780636f307dc3146106f257806370a08231146107165761034f565b80632e85fb411161029f57806347bd37181161023d5780635c60da1b116102175780635c60da1b1461066b5780635fe3b5671461068a578063601a0bf1146106a95780636752e702146106c85761034f565b806347bd37181461062f5780634e4d9fea14610644578063555bcc401461064c5761034f565b80633b1d21a2116102795780633b1d21a2146105c95780633fc8cef3146105dd5780634487152f146105f15780634576b5db146106105761034f565b80632e85fb4114610560578063313ce5671461057f5780633af9e669146105aa5761034f565b806318160ddd1161030c5780631be19560116102e65780631be19560146104c557806323b872dd146104e457806326782247146105035780632dd489091461053a5761034f565b806318160ddd1461047d578063182df0f51461049257806319d1b799146104a65761034f565b806306fdde03146103c75780630933c1ed146103f1578063095ea7b3146104045780631249c58b14610433578063173b99041461043b57806317bfdfbc1461045e575b6013546040515f916001600160a01b03169061036e90839036906116e8565b5f60405180830381855af49150503d805f81146103a6576040519150601f19603f3d011682016040523d82523d5f602084013e6103ab565b606091505b505090506040513d5f823e8180156103c1573d82f35b3d82fd5b005b3480156103d2575f80fd5b506103db6109da565b6040516103e89190611744565b60405180910390f35b6103db6103ff366004611814565b610a66565b34801561040f575f80fd5b5061042361041e36600461185a565b610a85565b60405190151581526020016103e8565b6103c5610af6565b348015610446575f80fd5b5061045060085481565b6040519081526020016103e8565b348015610469575f80fd5b50610450610478366004611884565b610b2b565b348015610488575f80fd5b50610450600d5481565b34801561049d575f80fd5b50610450610b94565b3480156104b1575f80fd5b506104506104c036600461189f565b610be6565b3480156104d0575f80fd5b506103c56104df366004611884565b610c60565b3480156104ef575f80fd5b506104236104fe36600461189f565b610cab565b34801561050e575f80fd5b50600454610522906001600160a01b031681565b6040516001600160a01b0390911681526020016103e8565b348015610545575f80fd5b506012546105539060ff1681565b6040516103e891906118dd565b34801561056b575f80fd5b5061045061057a36600461189f565b610d1c565b34801561058a575f80fd5b506003546105989060ff1681565b60405160ff90911681526020016103e8565b3480156105b5575f80fd5b506104506105c4366004611884565b610d77565b3480156105d4575f80fd5b50610450610dc3565b3480156105e8575f80fd5b50610522610df9565b3480156105fc575f80fd5b506103db61060b366004611814565b610e45565b34801561061b575f80fd5b5061045061062a366004611884565b610efc565b34801561063a575f80fd5b50610450600b5481565b6103c5610f48565b348015610657575f80fd5b506103c5610666366004611910565b610f7a565b348015610676575f80fd5b50601354610522906001600160a01b031681565b348015610695575f80fd5b50600554610522906001600160a01b031681565b3480156106b4575f80fd5b506104506106c336600461196e565b611096565b3480156106d3575f80fd5b5061045060115481565b3480156106e8575f80fd5b5061045060095481565b3480156106fd575f80fd5b506012546105229061010090046001600160a01b031681565b348015610721575f80fd5b50610450610730366004611884565b6110dd565b348015610740575f80fd5b50610450611129565b348015610754575f80fd5b5061045061076336600461196e565b61115f565b348015610773575f80fd5b5061045061078236600461196e565b6111a6565b348015610792575f80fd5b50610450600c5481565b3480156107a7575f80fd5b506103db6111ed565b3480156107bb575f80fd5b506104506107ca366004611884565b6111fa565b3480156107da575f80fd5b50610450611246565b3480156107ee575f80fd5b506104236107fd36600461185a565b61127c565b34801561080d575f80fd5b50610450600a5481565b348015610822575f80fd5b506104506112cf565b348015610836575f80fd5b50610450610845366004611884565b611305565b348015610855575f80fd5b50610450611351565b348015610869575f80fd5b5061087d610878366004611884565b611387565b604080519586526020860194909452928401919091526060830152608082015260a0016103e8565b3480156108b0575f80fd5b506104506108bf36600461196e565b611408565b3480156108cf575f80fd5b506104506108de36600461196e565b61144f565b3480156108ee575f80fd5b506104506108fd366004611985565b611496565b6103c5610910366004611884565b611500565b348015610920575f80fd5b50610450611548565b348015610934575f80fd5b50610450610943366004611884565b61157e565b348015610953575f80fd5b50600654610522906001600160a01b031681565b348015610972575f80fd5b506003546105229061010090046001600160a01b031681565b348015610996575f80fd5b506104506115ca565b3480156109aa575f80fd5b506104506109b936600461196e565b611600565b610450611647565b3480156109d1575f80fd5b50610423600181565b600180546109e7906119bc565b80601f0160208091040260200160405190810160405280929190818152602001828054610a13906119bc565b8015610a5e5780601f10610a3557610100808354040283529160200191610a5e565b820191905f5260205f20905b815481529060010190602001808311610a4157829003601f168201915b505050505081565b601354606090610a7f906001600160a01b03168361167d565b92915050565b6040516001600160a01b0383166024820152604481018290525f908190610ad89060640160408051601f198184030181529190526020810180516001600160e01b031663095ea7b360e01b179052610a66565b905080806020019051810190610aee91906119f4565b949350505050565b6040805160048152602481019091526020810180516001600160e01b0316631249c58b60e01b179052610b2890610a66565b50565b6040516001600160a01b03821660248201525f908190610b779060440160408051601f198184030181529190526020810180516001600160e01b03166305eff7ef60e21b179052610a66565b905080806020019051810190610b8d9190611a0f565b9392505050565b6040805160048152602481019091526020810180516001600160e01b031663182df0f560e01b1790525f908190610bca90610e45565b905080806020019051810190610be09190611a0f565b91505090565b6040516001600160a01b03808516602483015283166044820152606481018290525f908190610c419060840160408051601f198184030181529190526020810180516001600160e01b03166319d1b79960e01b179052610a66565b905080806020019051810190610c579190611a0f565b95945050505050565b6040516001600160a01b0382166024820152610ca79060440160408051601f198184030181529190526020810180516001600160e01b031662df0cab60e51b179052610a66565b5050565b6040516001600160a01b03808516602483015283166044820152606481018290525f908190610d069060840160408051601f198184030181529190526020810180516001600160e01b03166323b872dd60e01b179052610a66565b905080806020019051810190610c5791906119f4565b6040516001600160a01b03808516602483015283166044820152606481018290525f908190610c419060840160408051601f198184030181529190526020810180516001600160e01b0316632e85fb4160e01b179052610a66565b6040516001600160a01b03821660248201525f908190610b779060440160408051601f198184030181529190526020810180516001600160e01b0316633af9e66960e01b179052610a66565b6040805160048152602481019091526020810180516001600160e01b0316631d8e90d160e11b1790525f908190610bca90610e45565b6040805160048152602481019091526020810180516001600160e01b0316633fc8cef360e01b1790525f908190610e2f90610e45565b905080806020019051810190610be09190611a26565b60605f80306001600160a01b031684604051602401610e649190611744565b60408051601f198184030181529181526020820180516001600160e01b0316630933c1ed60e01b17905251610e999190611a41565b5f60405180830381855afa9150503d805f8114610ed1576040519150601f19603f3d011682016040523d82523d5f602084013e610ed6565b606091505b50909250905081610ee8573d60208201fd5b80806020019051810190610aee9190611a5c565b6040516001600160a01b03821660248201525f908190610b779060440160408051601f198184030181529190526020810180516001600160e01b0316634576b5db60e01b179052610a66565b6040805160048152602481019091526020810180516001600160e01b0316632726cff560e11b179052610b2890610a66565b60035461010090046001600160a01b03163314610fa9576040516282b42960e81b815260040160405180910390fd5b8115610fe3576040805160048152602481019091526020810180516001600160e01b031663153ab50560e01b179052610fe190610a66565b505b601380546001600160a01b038581166001600160a01b031983161790925560405191169061104890611019908490602401611744565b60408051601f198184030181529190526020810180516001600160e01b0316630adccee560e31b179052610a66565b50601354604080516001600160a01b03808516825290921660208301527fd604de94d45953f9138079ec1b82d533cb2160c906d1076d1f7ed54befbca97a910160405180910390a150505050565b5f80610b77836040516024016110ae91815260200190565b60408051601f198184030181529190526020810180516001600160e01b031663601a0bf160e01b179052610a66565b6040516001600160a01b03821660248201525f908190610b779060440160408051601f198184030181529190526020810180516001600160e01b03166370a0823160e01b179052610e45565b6040805160048152602481019091526020810180516001600160e01b0316630e759dd360e31b1790525f908190610bca90610a66565b5f80610b778360405160240161117791815260200190565b60408051601f198184030181529190526020810180516001600160e01b0316634181842360e11b179052610a66565b5f80610b77836040516024016111be91815260200190565b60408051601f198184030181529190526020810180516001600160e01b031663852a12e360e01b179052610a66565b600280546109e7906119bc565b6040516001600160a01b03821660248201525f908190610b779060440160408051601f198184030181529190526020810180516001600160e01b03166395dd919360e01b179052610e45565b6040805160048152602481019091526020810180516001600160e01b031663a6afed9560e01b1790525f908190610bca90610a66565b6040516001600160a01b0383166024820152604481018290525f908190610ad89060640160408051601f198184030181529190526020810180516001600160e01b031663a9059cbb60e01b179052610a66565b6040805160048152602481019091526020810180516001600160e01b0316630ae9d70b60e41b1790525f908190610bca90610e45565b6040516001600160a01b03821660248201525f908190610b779060440160408051601f198184030181529190526020810180516001600160e01b0316632dc7468360e21b179052610a66565b6040805160048152602481019091526020810180516001600160e01b031663bd6d894d60e01b1790525f908190610bca90610a66565b5f805f805f806113df876040516024016113b091906001600160a01b0391909116815260200190565b60408051601f198184030181529190526020810180516001600160e01b03166361bfb47160e11b179052610e45565b9050808060200190518101906113f59190611ac5565b939b929a50909850965090945092505050565b5f80610b778360405160240161142091815260200190565b60408051601f198184030181529190526020810180516001600160e01b031663317afabb60e21b179052610a66565b5f80610b778360405160240161146791815260200190565b60408051601f198184030181529190526020810180516001600160e01b031663db006a7560e01b179052610a66565b6040516001600160a01b038084166024830152821660448201525f9081906114ea9060640160408051601f198184030181529190526020810180516001600160e01b0316636eb1769f60e11b179052610e45565b905080806020019051810190610aee9190611a0f565b6040516001600160a01b0382166024820152610ca79060440160408051601f198184030181529190526020810180516001600160e01b031663e597461960e01b179052610a66565b6040805160048152602481019091526020810180516001600160e01b03166374e38a7960e11b1790525f908190610bca90610a66565b6040516001600160a01b03821660248201525f908190610b779060440160408051601f198184030181529190526020810180516001600160e01b031663f2b3abbd60e01b179052610a66565b6040805160048152602481019091526020810180516001600160e01b0316631f1f3b4560e31b1790525f908190610bca90610e45565b5f80610b778360405160240161161891815260200190565b60408051601f198184030181529190526020810180516001600160e01b031663fca7820b60e01b179052610a66565b6040805160048152602481019091526020810180516001600160e01b031663fcb6414760e01b1790525f908190610bca90610a66565b60605f80846001600160a01b0316846040516116999190611a41565b5f60405180830381855af49150503d805f81146116d1576040519150601f19603f3d011682016040523d82523d5f602084013e6116d6565b606091505b50909250905081610aee573d60208201fd5b818382375f9101908152919050565b5f5b838110156117115781810151838201526020016116f9565b50505f910152565b5f81518084526117308160208601602086016116f7565b601f01601f19169290920160200192915050565b602081525f610b8d6020830184611719565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561179357611793611756565b604052919050565b5f67ffffffffffffffff8211156117b4576117b4611756565b50601f01601f191660200190565b5f82601f8301126117d1575f80fd5b81356117e46117df8261179b565b61176a565b8181528460208386010111156117f8575f80fd5b816020850160208301375f918101602001919091529392505050565b5f60208284031215611824575f80fd5b813567ffffffffffffffff81111561183a575f80fd5b610aee848285016117c2565b6001600160a01b0381168114610b28575f80fd5b5f806040838503121561186b575f80fd5b823561187681611846565b946020939093013593505050565b5f60208284031215611894575f80fd5b8135610b8d81611846565b5f805f606084860312156118b1575f80fd5b83356118bc81611846565b925060208401356118cc81611846565b929592945050506040919091013590565b60208101600483106118fd57634e487b7160e01b5f52602160045260245ffd5b91905290565b8015158114610b28575f80fd5b5f805f60608486031215611922575f80fd5b833561192d81611846565b9250602084013561193d81611903565b9150604084013567ffffffffffffffff811115611958575f80fd5b611964868287016117c2565b9150509250925092565b5f6020828403121561197e575f80fd5b5035919050565b5f8060408385031215611996575f80fd5b82356119a181611846565b915060208301356119b181611846565b809150509250929050565b600181811c908216806119d057607f821691505b6020821081036119ee57634e487b7160e01b5f52602260045260245ffd5b50919050565b5f60208284031215611a04575f80fd5b8151610b8d81611903565b5f60208284031215611a1f575f80fd5b5051919050565b5f60208284031215611a36575f80fd5b8151610b8d81611846565b5f8251611a528184602087016116f7565b9190910192915050565b5f60208284031215611a6c575f80fd5b815167ffffffffffffffff811115611a82575f80fd5b8201601f81018413611a92575f80fd5b8051611aa06117df8261179b565b818152856020838501011115611ab4575f80fd5b610c578260208301602086016116f7565b5f805f805f60a08688031215611ad9575f80fd5b505083516020850151604086015160608701516080909701519298919750959450909250905056fea2646970667358221220a421cf47e06eeb05fa09d68b7b0d844df5ffb00dda49e04b4a77a231ce5edbb264736f6c63430008170033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000f9c70750bf615de83fe7ff62d30c7faacd8f8ba00000000000000000000000008cd2001327a919653b9e0e1adb9298772ed8d25c000000000000000000000000000000000000000000a56fa5b99019a5c800000000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000000800000000000000000000000043a314183c0033528827be7cf426523bac412780000000000000000000000000202bbcdce24e827c592d45cfde7626e5f5c9000e00000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000000d46756e67696679204574686572000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004664554480000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : comptroller_ (address): 0xf9c70750bF615dE83fE7FF62D30C7faACD8f8Ba0
Arg [1] : interestRateModel_ (address): 0x8cd2001327a919653B9E0E1ADB9298772eD8d25c
Arg [2] : initialExchangeRateMantissa_ (uint256): 200000000000000000000000000
Arg [3] : name_ (string): Fungify Ether
Arg [4] : symbol_ (string): fETH
Arg [5] : decimals_ (uint8): 8
Arg [6] : admin_ (address): 0x43A314183c0033528827Be7cF426523bAc412780
Arg [7] : implementation_ (address): 0x202BBCDCe24e827C592D45cfdE7626E5F5C9000E
Arg [8] : becomeImplementationData (bytes): 0x

-----Encoded View---------------
15 Constructor Arguments found :
Arg [0] : 000000000000000000000000f9c70750bf615de83fe7ff62d30c7faacd8f8ba0
Arg [1] : 0000000000000000000000008cd2001327a919653b9e0e1adb9298772ed8d25c
Arg [2] : 000000000000000000000000000000000000000000a56fa5b99019a5c8000000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [6] : 00000000000000000000000043a314183c0033528827be7cf426523bac412780
Arg [7] : 000000000000000000000000202bbcdce24e827c592d45cfde7626e5f5c9000e
Arg [8] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [9] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [10] : 46756e6769667920457468657200000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [12] : 6645544800000000000000000000000000000000000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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