ETH Price: $2,433.15 (+0.02%)
Gas: 0.08 GWei

Contract

0x855CEA8626Fa7b42c13e7A688b179bf61e6c1e81

Overview

ETH Balance

Scroll LogoScroll LogoScroll Logo0 ETH

ETH Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Borrow100034952024-10-09 9:19:075 mins ago1728465547IN
0x855CEA86...61e6c1e81
0 ETH0.000049920.04136347
Redeem100032182024-10-09 9:06:0119 mins ago1728464761IN
0x855CEA86...61e6c1e81
0 ETH0.000032540.04176839
Redeem100031692024-10-09 9:03:4021 mins ago1728464620IN
0x855CEA86...61e6c1e81
0 ETH0.000074890.06666
Mint100030452024-10-09 8:57:4127 mins ago1728464261IN
0x855CEA86...61e6c1e81
0 ETH0.000017420.04112882
Mint100029442024-10-09 8:52:4732 mins ago1728463967IN
0x855CEA86...61e6c1e81
0 ETH0.000056320.071407
Borrow100029262024-10-09 8:51:5333 mins ago1728463913IN
0x855CEA86...61e6c1e81
0 ETH0.000051340.04125266
Mint100025742024-10-09 8:35:0649 mins ago1728462906IN
0x855CEA86...61e6c1e81
0 ETH0.000017260.04114094
Borrow100025282024-10-09 8:32:5052 mins ago1728462770IN
0x855CEA86...61e6c1e81
0 ETH0.000072530.06
Repay Borrow100022962024-10-09 8:21:341 hr ago1728462094IN
0x855CEA86...61e6c1e81
0 ETH0.000012060.04163293
Redeem100021282024-10-09 8:13:181 hr ago1728461598IN
0x855CEA86...61e6c1e81
0 ETH0.00005050.04150619
Repay Borrow100021152024-10-09 8:12:411 hr ago1728461561IN
0x855CEA86...61e6c1e81
0 ETH0.000012240.04177694
Borrow100021022024-10-09 8:12:021 hr ago1728461522IN
0x855CEA86...61e6c1e81
0 ETH0.000053790.04184621
Repay Borrow100020162024-10-09 8:07:491 hr ago1728461269IN
0x855CEA86...61e6c1e81
0 ETH0.000011460.04119131
Redeem100020042024-10-09 8:07:141 hr ago1728461234IN
0x855CEA86...61e6c1e81
0 ETH0.000048870.04107034
Repay Borrow100019982024-10-09 8:06:561 hr ago1728461216IN
0x855CEA86...61e6c1e81
0 ETH0.000010880.04121849
Redeem100019852024-10-09 8:06:171 hr ago1728461177IN
0x855CEA86...61e6c1e81
0 ETH0.00004990.04134506
Repay Borrow100019782024-10-09 8:05:561 hr ago1728461156IN
0x855CEA86...61e6c1e81
0 ETH0.000011030.04134517
Redeem100019652024-10-09 8:05:171 hr ago1728461117IN
0x855CEA86...61e6c1e81
0 ETH0.000049660.04128073
Repay Borrow100019572024-10-09 8:04:531 hr ago1728461093IN
0x855CEA86...61e6c1e81
0 ETH0.000010850.04128085
Redeem100019442024-10-09 8:04:141 hr ago1728461054IN
0x855CEA86...61e6c1e81
0 ETH0.000050080.04139421
Repay Borrow100019282024-10-09 8:03:271 hr ago1728461007IN
0x855CEA86...61e6c1e81
0 ETH0.000011170.04139421
Mint100014292024-10-09 7:39:151 hr ago1728459555IN
0x855CEA86...61e6c1e81
0 ETH0.000023280.07
Borrow100014082024-10-09 7:38:211 hr ago1728459501IN
0x855CEA86...61e6c1e81
0 ETH0.000050170.04095224
Mint100011462024-10-09 7:25:231 hr ago1728458723IN
0x855CEA86...61e6c1e81
0 ETH0.000016520.04556588
Redeem100006092024-10-09 6:59:192 hrs ago1728457159IN
0x855CEA86...61e6c1e81
0 ETH0.00005710.05
View all transactions

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RErc20Delegator

Compiler Version
v0.8.23+commit.f704f362

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 6 : RErc20Delegator.sol
// SPDX-License-Identifier: BSD-3-Clause
pragma solidity 0.8.23;

import "./RTokenInterfaces.sol";

/**
 * @title RErc20Delegator Contract
 * @notice RTokens which wrap an EIP-20 underlying and delegate to an implementation
 */
contract RErc20Delegator is RTokenInterface, RErc20Interface, RDelegatorInterface {
    /**
     * @notice Construct a new money market
     * @param underlying_ The address of the underlying asset
     * @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(
        address underlying_,
        ComptrollerInterface comptroller_,
        InterestRateModel interestRateModel_,
        uint256 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,address,uint256,string,string,uint8)",
                underlying_,
                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)
        public
        override
    {
        require(msg.sender == admin, "RErc20Delegator::_setImplementation: Caller must be admin");

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

        address oldImplementation = implementation;
        implementation = implementation_;

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

        emit NewImplementation(oldImplementation, implementation);
    }

    /**
     * @notice Sender supplies assets into the market and receives rTokens in exchange
     * @dev Accrues interest whether or not the operation succeeds, unless reverted
     * @param mintAmount The amount of the underlying asset to supply
     * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function mint(uint256 mintAmount) external override returns (uint256) {
        bytes memory data = delegateToImplementation(abi.encodeWithSignature("mint(uint256)", mintAmount));
        return abi.decode(data, (uint256));
    }

    /**
     * @notice Supply assets but without a 2-step approval process, EIP-2612
     * @dev Simply calls the underlying token's `permit()` function and then assumes things worked
     * @param mintAmount The amount of the underlying asset to supply
     * @param deadline The amount of the underlying asset to supply
     * @param v ECDSA recovery id for the signature
     * @param r ECDSA r parameter for the signature
     * @param s ECDSA s parameter for the signature
     * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function mintWithPermit(uint256 mintAmount, uint256 deadline, uint8 v, bytes32 r, bytes32 s)
        external
        override
        returns (uint256)
    {
        bytes memory data = delegateToImplementation(
            abi.encodeWithSignature(
                "mintWithPermit(uint256,uint256,uint8,bytes32,bytes32)", mintAmount, deadline, v, r, s
            )
        );
        return abi.decode(data, (uint256));
    }

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

    /**
     * @notice Sender redeems rTokens 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(uint256 redeemAmount) external override returns (uint256) {
        bytes memory data = delegateToImplementation(abi.encodeWithSignature("redeemUnderlying(uint256)", redeemAmount));
        return abi.decode(data, (uint256));
    }

    /**
     * @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(uint256 borrowAmount) external override returns (uint256) {
        bytes memory data = delegateToImplementation(abi.encodeWithSignature("borrow(uint256)", borrowAmount));
        return abi.decode(data, (uint256));
    }

    /**
     * @notice Sender repays their own borrow
     * @param repayAmount The amount to repay, or uint.max for the full outstanding amount
     * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function repayBorrow(uint256 repayAmount) external override returns (uint256) {
        bytes memory data = delegateToImplementation(abi.encodeWithSignature("repayBorrow(uint256)", repayAmount));
        return abi.decode(data, (uint256));
    }

    /**
     * @notice Sender repays a borrow belonging to borrower
     * @param borrower the account with the debt being payed off
     * @param repayAmount The amount to repay, or uint.max for the full outstanding amount
     * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function repayBorrowBehalf(address borrower, uint256 repayAmount) external override returns (uint256) {
        bytes memory data = delegateToImplementation(
            abi.encodeWithSignature("repayBorrowBehalf(address,uint256)", borrower, repayAmount)
        );
        return abi.decode(data, (uint256));
    }

    /**
     * @notice The sender liquidates the borrowers collateral.
     *  The collateral seized is transferred to the liquidator.
     * @param borrower The borrower of this rToken to be liquidated
     * @param rTokenCollateral The market in which to seize collateral from the borrower
     * @param repayAmount The amount of the underlying borrowed asset to repay
     * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function liquidateBorrow(address borrower, uint256 repayAmount, RTokenInterface rTokenCollateral)
        external
        override
        returns (uint256)
    {
        bytes memory data = delegateToImplementation(
            abi.encodeWithSignature("liquidateBorrow(address,uint256,address)", borrower, repayAmount, rTokenCollateral)
        );
        return abi.decode(data, (uint256));
    }

    /**
     * @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, uint256 amount) external override 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) external override 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 (uint.max means infinite)
     * @return Whether or not the approval succeeded
     */
    function approve(address spender, uint256 amount) external override 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 (uint.max means infinite)
     */
    function allowance(address owner, address spender) external view override returns (uint256) {
        bytes memory data =
            delegateToViewImplementation(abi.encodeWithSignature("allowance(address,address)", owner, spender));
        return abi.decode(data, (uint256));
    }

    /**
     * @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) external view override returns (uint256) {
        bytes memory data = delegateToViewImplementation(abi.encodeWithSignature("balanceOf(address)", owner));
        return abi.decode(data, (uint256));
    }

    /**
     * @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) external override returns (uint256) {
        bytes memory data = delegateToImplementation(abi.encodeWithSignature("balanceOfUnderlying(address)", owner));
        return abi.decode(data, (uint256));
    }

    /**
     * @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)
     */
    function getAccountSnapshot(address account) external view override returns (uint256, uint256, uint256, uint256) {
        bytes memory data =
            delegateToViewImplementation(abi.encodeWithSignature("getAccountSnapshot(address)", account));
        return abi.decode(data, (uint256, uint256, uint256, uint256));
    }

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

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

    /// @notice Indicator that this is a ETH Derivative
    function isEthDerivative() public view virtual override returns (bool) {
        return false;
    }

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

    /**
     * @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) external override returns (uint256) {
        bytes memory data = delegateToImplementation(abi.encodeWithSignature("borrowBalanceCurrent(address)", account));
        return abi.decode(data, (uint256));
    }

    /**
     * @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) public view override returns (uint256) {
        bytes memory data =
            delegateToViewImplementation(abi.encodeWithSignature("borrowBalanceStored(address)", account));
        return abi.decode(data, (uint256));
    }

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

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

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

    /**
     * @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() public override returns (uint256) {
        bytes memory data = delegateToImplementation(abi.encodeWithSignature("accrueInterest()"));
        return abi.decode(data, (uint256));
    }

    /**
     * @notice Transfers collateral tokens (this market) to the liquidator.
     * @dev Will fail unless called by another rToken during the process of liquidation.
     *  Its absolutely critical to use msg.sender as the borrowed rToken and not a parameter.
     * @param liquidator The account receiving seized collateral
     * @param borrower The account having collateral seized
     * @param seizeTokens The number of rTokens to seize
     * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function seize(address liquidator, address borrower, uint256 seizeTokens) external override returns (uint256) {
        bytes memory data = delegateToImplementation(
            abi.encodeWithSignature("seize(address,address,uint256)", liquidator, borrower, seizeTokens)
        );
        return abi.decode(data, (uint256));
    }

    /**
     * @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) external override {
        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) external override returns (uint256) {
        bytes memory data =
            delegateToImplementation(abi.encodeWithSignature("_setPendingAdmin(address)", newPendingAdmin));
        return abi.decode(data, (uint256));
    }

    /**
     * @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) public override returns (uint256) {
        bytes memory data =
            delegateToImplementation(abi.encodeWithSignature("_setComptroller(address)", newComptroller));
        return abi.decode(data, (uint256));
    }

    /**
     * @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(uint256 newReserveFactorMantissa) external override returns (uint256) {
        bytes memory data =
            delegateToImplementation(abi.encodeWithSignature("_setReserveFactor(uint256)", newReserveFactorMantissa));
        return abi.decode(data, (uint256));
    }

    /**
     * @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() external override returns (uint256) {
        bytes memory data = delegateToImplementation(abi.encodeWithSignature("_acceptAdmin()"));
        return abi.decode(data, (uint256));
    }

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

    /**
     * @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(uint256 reduceAmount) external override returns (uint256) {
        bytes memory data = delegateToImplementation(abi.encodeWithSignature("_reduceReserves(uint256)", reduceAmount));
        return abi.decode(data, (uint256));
    }

    /**
     * @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) public override returns (uint256) {
        bytes memory data =
            delegateToImplementation(abi.encodeWithSignature("_setInterestRateModel(address)", newInterestRateModel));
        return abi.decode(data, (uint256));
    }

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

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

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

    /**
     * @notice Delegates execution to an implementation contract
     * @dev It returns to the external caller whatever the implementation returns or forwards reverts
     *  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
     *  msg.value will always be 0, but we leave the condition here for backwards compatibility.
     */
    fallback() external payable {
        require(msg.value == 0, "RErc20Delegator:fallback: cannot send value to fallback");

        // 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()) }
        }
    }

    /**
     * @notice Delegates execution to an implementation contract
     * @dev Does not support fallback with msg.value
     */
    receive() external payable {
        require(msg.value == 0, "RErc20Delegator:fallback: cannot send value to fallback");
    }
}

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

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

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

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

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

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

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

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

    // @notice Maximum fraction of redemption factor that can be set aside for reserves
    uint256 internal constant redemptionReserveFactorMaxMantissa = 0.05 ether;

    uint256 internal constant minRedemptionCashRequire = 1 wei;

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

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

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

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

    // @notice Initial exchange rate used when minting the first RTokens (used when totalSupply = 0)
    uint256 internal initialExchangeRateMantissa;

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

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

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

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

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

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

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

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

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

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

    /// @notice Share of seized collateral that is added to reserves
    uint256 public protocolSeizeShareMantissa;
}

abstract contract RTokenInterface is RTokenStorage {
    /// @notice Indicator that this is a RToken contract (for inspection)
    bool public constant isRToken = true;

    /**
     * Market Events **
     */

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

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

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

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

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

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

    /**
     * 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 reserve factor is changed
    event NewReserveFactor(uint256 oldReserveFactorMantissa, uint256 newReserveFactorMantissa);

    /// @notice Event emitted when the redemption reserve factor is changed
    event NewRedemptionReserveFactor(uint256 oldRedemptionReserveFactor, uint256 newRedemptionReserveFactor);

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

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

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

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

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

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

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

contract RErc20Storage {
    /// @notice Underlying asset for this RToken
    address public underlying;
}

abstract contract RErc20Interface is RErc20Storage {
    /**
     * User Interface **
     */
    function mint(uint256 mintAmount) external virtual returns (uint256);
    function mintWithPermit(uint256 mintAmount, uint256 deadline, uint8 v, bytes32 r, bytes32 s)
        external
        virtual
        returns (uint256);
    function redeem(uint256 redeemTokens) external virtual returns (uint256);
    function redeemUnderlying(uint256 redeemAmount) external virtual returns (uint256);
    function borrow(uint256 borrowAmount) external virtual returns (uint256);
    function repayBorrow(uint256 repayAmount) external virtual returns (uint256);
    function repayBorrowBehalf(address borrower, uint256 repayAmount) external virtual returns (uint256);
    function liquidateBorrow(address borrower, uint256 repayAmount, RTokenInterface rTokenCollateral)
        external
        virtual
        returns (uint256);
    function sweepToken(EIP20NonStandardInterface token) external virtual;

    /**
     * Admin Functions **
     */
    function _addReserves(uint256 addAmount) external virtual returns (uint256);
}

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

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

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

abstract contract RDelegateInterface is RDelegationStorage {
    /**
     * @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) external virtual;

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

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 enterMarkets(address[] calldata rTokens) external virtual returns (uint256[] memory);
    function exitMarket(address rToken) external virtual returns (uint256);

    /**
     * Policy Hooks **
     */
    function mintAllowed(address rToken, address minter, uint256 mintAmount) external virtual returns (uint256);

    function redeemAllowed(address rToken, address redeemer, uint256 redeemTokens) external virtual returns (uint256);

    // Do not remove, still used by RToken
    function redeemVerify(address rToken, address redeemer, uint256 redeemAmount, uint256 redeemTokens)
        external
        pure
        virtual;

    function borrowAllowed(address rToken, address borrower, uint256 borrowAmount) external virtual returns (uint256);

    function enterAllMarkets(address account) external virtual returns (uint256[] memory);

    function repayBorrowAllowed(address rToken, address payer, address borrower, uint256 repayAmount)
        external
        virtual
        returns (uint256);

    function liquidateBorrowAllowed(
        address rTokenBorrowed,
        address rTokenCollateral,
        address liquidator,
        address borrower,
        uint256 repayAmount
    ) external view virtual returns (uint256);

    function seizeAllowed(
        address rTokenCollateral,
        address rTokenBorrowed,
        address liquidator,
        address borrower,
        uint256 seizeTokens
    ) external virtual returns (uint256);

    function transferAllowed(address rToken, address src, address dst, uint256 transferTokens)
        external
        virtual
        returns (uint256);

    /**
     * Liquidity/Liquidation Calculations **
     */
    function liquidateCalculateSeizeTokens(address rTokenBorrowed, address rTokenCollateral, uint256 repayAmount)
        external
        view
        virtual
        returns (uint256, uint256);
}

// The hooks that were patched out of the comptroller to make room for the supply caps, if we need them
abstract contract ComptrollerInterfaceWithAllVerificationHooks is ComptrollerInterface {
    function mintVerify(address rToken, address minter, uint256 mintAmount, uint256 mintTokens) external virtual;

    // Included in ComptrollerInterface already
    // function redeemVerify(address rToken, address redeemer, uint redeemAmount, uint redeemTokens) virtual external;

    function borrowVerify(address rToken, address borrower, uint256 borrowAmount) external virtual;

    function repayBorrowVerify(
        address rToken,
        address payer,
        address borrower,
        uint256 repayAmount,
        uint256 borrowerIndex
    ) external virtual;

    function liquidateBorrowVerify(
        address rTokenBorrowed,
        address rTokenCollateral,
        address liquidator,
        address borrower,
        uint256 repayAmount,
        uint256 seizeTokens
    ) external virtual;

    function seizeVerify(
        address rTokenCollateral,
        address rTokenBorrowed,
        address liquidator,
        address borrower,
        uint256 seizeTokens
    ) external virtual;

    function transferVerify(address rToken, address src, address dst, uint256 transferTokens) external virtual;
}

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

/**
 * @title InterestRateModel Interface
 */
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
    ) external view virtual 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
    ) external view virtual returns (uint);
}

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
    }

    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,
        SET_GAS_AMOUNT_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);

    /**
      * @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 {
    enum Error {
        NO_ERROR,
        UNAUTHORIZED,
        BAD_INPUT,
        COMPTROLLER_REJECTION,
        COMPTROLLER_CALCULATION_ERROR,
        INTEREST_RATE_MODEL_ERROR,
        INVALID_ACCOUNT_PAIR,
        INVALID_CLOSE_AMOUNT_REQUESTED,
        INVALID_COLLATERAL_FACTOR,
        MATH_ERROR,
        MARKET_NOT_FRESH,
        MARKET_NOT_LISTED,
        MARKET_LIQUIDITY_LOW,
        TOKEN_INSUFFICIENT_ALLOWANCE,
        TOKEN_INSUFFICIENT_BALANCE,
        TOKEN_INSUFFICIENT_CASH,
        TOKEN_TRANSFER_IN_FAILED,
        TOKEN_TRANSFER_OUT_FAILED
    }

    /*
     * Note: FailureInfo (but not Error) is kept in alphabetical order
     *       This is because FailureInfo grows significantly faster, and
     *       the order of Error has some meaning, while the order of FailureInfo
     *       is entirely arbitrary.
     */
    enum FailureInfo {
        ACCEPT_ADMIN_PENDING_ADMIN_CHECK,
        ACCRUE_INTEREST_ACCUMULATED_INTEREST_CALCULATION_FAILED,
        ACCRUE_INTEREST_BORROW_RATE_CALCULATION_FAILED,
        ACCRUE_INTEREST_NEW_BORROW_INDEX_CALCULATION_FAILED,
        ACCRUE_INTEREST_NEW_TOTAL_BORROWS_CALCULATION_FAILED,
        ACCRUE_INTEREST_NEW_TOTAL_RESERVES_CALCULATION_FAILED,
        ACCRUE_INTEREST_SIMPLE_INTEREST_FACTOR_CALCULATION_FAILED,
        BORROW_ACCUMULATED_BALANCE_CALCULATION_FAILED,
        BORROW_ACCRUE_INTEREST_FAILED,
        BORROW_CASH_NOT_AVAILABLE,
        BORROW_FRESHNESS_CHECK,
        BORROW_NEW_TOTAL_BALANCE_CALCULATION_FAILED,
        BORROW_NEW_ACCOUNT_BORROW_BALANCE_CALCULATION_FAILED,
        BORROW_MARKET_NOT_LISTED,
        BORROW_COMPTROLLER_REJECTION,
        LIQUIDATE_ACCRUE_BORROW_INTEREST_FAILED,
        LIQUIDATE_ACCRUE_COLLATERAL_INTEREST_FAILED,
        LIQUIDATE_COLLATERAL_FRESHNESS_CHECK,
        LIQUIDATE_COMPTROLLER_REJECTION,
        LIQUIDATE_COMPTROLLER_CALCULATE_AMOUNT_SEIZE_FAILED,
        LIQUIDATE_CLOSE_AMOUNT_IS_UINT_MAX,
        LIQUIDATE_CLOSE_AMOUNT_IS_ZERO,
        LIQUIDATE_FRESHNESS_CHECK,
        LIQUIDATE_LIQUIDATOR_IS_BORROWER,
        LIQUIDATE_REPAY_BORROW_FRESH_FAILED,
        LIQUIDATE_SEIZE_BALANCE_INCREMENT_FAILED,
        LIQUIDATE_SEIZE_BALANCE_DECREMENT_FAILED,
        LIQUIDATE_SEIZE_COMPTROLLER_REJECTION,
        LIQUIDATE_SEIZE_LIQUIDATOR_IS_BORROWER,
        LIQUIDATE_SEIZE_TOO_MUCH,
        MINT_ACCRUE_INTEREST_FAILED,
        MINT_COMPTROLLER_REJECTION,
        MINT_EXCHANGE_CALCULATION_FAILED,
        MINT_EXCHANGE_RATE_READ_FAILED,
        MINT_FRESHNESS_CHECK,
        MINT_NEW_ACCOUNT_BALANCE_CALCULATION_FAILED,
        MINT_NEW_TOTAL_SUPPLY_CALCULATION_FAILED,
        MINT_TRANSFER_IN_FAILED,
        MINT_TRANSFER_IN_NOT_POSSIBLE,

        REDEEM_MIN_BALANCE_NOT_MET,
        REDEEM_ACCRUE_INTEREST_FAILED,
        REDEEM_COMPTROLLER_REJECTION,
        REDEEM_EXCHANGE_TOKENS_CALCULATION_FAILED,
        REDEEM_EXCHANGE_AMOUNT_CALCULATION_FAILED,
        REDEEM_RESERVE_FEE_AMOUNT_CALCULATION_FAILED,


        REDEEM_EXCHANGE_RATE_READ_FAILED,
        REDEEM_FRESHNESS_CHECK,
        REDEEM_NEW_ACCOUNT_BALANCE_CALCULATION_FAILED,
        REDEEM_NEW_TOTAL_SUPPLY_CALCULATION_FAILED,
        REDEEM_TRANSFER_OUT_NOT_POSSIBLE,
        REDUCE_RESERVES_ACCRUE_INTEREST_FAILED,
        REDUCE_RESERVES_ADMIN_CHECK,
        REDUCE_RESERVES_CASH_NOT_AVAILABLE,
        REDUCE_RESERVES_FRESH_CHECK,
        REDUCE_RESERVES_VALIDATION,
        REPAY_BEHALF_ACCRUE_INTEREST_FAILED,
        REPAY_BORROW_ACCRUE_INTEREST_FAILED,
        REPAY_BORROW_ACCUMULATED_BALANCE_CALCULATION_FAILED,
        REPAY_BORROW_COMPTROLLER_REJECTION,
        REPAY_BORROW_FRESHNESS_CHECK,
        REPAY_BORROW_NEW_ACCOUNT_BORROW_BALANCE_CALCULATION_FAILED,
        REPAY_BORROW_NEW_TOTAL_BALANCE_CALCULATION_FAILED,
        REPAY_BORROW_TRANSFER_IN_NOT_POSSIBLE,
        SET_COLLATERAL_FACTOR_OWNER_CHECK,
        SET_COLLATERAL_FACTOR_VALIDATION,
        SET_COMPTROLLER_OWNER_CHECK,
        SET_INTEREST_RATE_MODEL_ACCRUE_INTEREST_FAILED,
        SET_INTEREST_RATE_MODEL_FRESH_CHECK,
        SET_INTEREST_RATE_MODEL_OWNER_CHECK,
        SET_MAX_ASSETS_OWNER_CHECK,
        SET_ORACLE_MARKET_NOT_LISTED,
        SET_PENDING_ADMIN_OWNER_CHECK,
        SET_RESERVE_FACTOR_ACCRUE_INTEREST_FAILED,
        SET_RESERVE_FACTOR_ADMIN_CHECK,
        SET_RESERVE_FACTOR_FRESH_CHECK,
        SET_RESERVE_FACTOR_BOUNDS_CHECK,

        SET_REDEMPTION_RESERVE_FACTOR_ADMIN_CHECK,
        SET_REDEMPTION_RESERVE_FACTOR_FRESH_CHECK,
        SET_REDEMPTION_RESERVE_FACTOR_BOUNDS_CHECK,

        TRANSFER_COMPTROLLER_REJECTION,
        TRANSFER_NOT_ALLOWED,
        TRANSFER_NOT_ENOUGH,
        TRANSFER_TOO_MUCH,
        ADD_RESERVES_ACCRUE_INTEREST_FAILED,
        ADD_RESERVES_FRESH_CHECK,
        ADD_RESERVES_TRANSFER_IN_NOT_POSSIBLE,
        SET_PROTOCOL_SEIZE_SHARE_ACCRUE_INTEREST_FAILED,
        SET_PROTOCOL_SEIZE_SHARE_OWNER_CHECK,
        SET_PROTOCOL_SEIZE_SHARE_FRESH_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);

    /**
      * @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);
    }
}

Settings
{
  "remappings": [
    "@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/",
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "ds-test/=lib/openzeppelin-contracts-upgradeable/lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "viaIR": true,
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"underlying_","type":"address"},{"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"},{"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"},{"indexed":false,"internalType":"address","name":"rTokenCollateral","type":"address"},{"indexed":false,"internalType":"uint256","name":"seizeTokens","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":"oldRedemptionReserveFactor","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newRedemptionReserveFactor","type":"uint256"}],"name":"NewRedemptionReserveFactor","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":[{"internalType":"uint256","name":"addAmount","type":"uint256"}],"name":"_addReserves","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":"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":"nonpayable","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"}],"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":"isEthDerivative","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"borrower","type":"address"},{"internalType":"uint256","name":"repayAmount","type":"uint256"},{"internalType":"contract RTokenInterface","name":"rTokenCollateral","type":"address"}],"name":"liquidateBorrow","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintAmount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintAmount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"mintWithPermit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","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":[{"internalType":"uint256","name":"repayAmount","type":"uint256"}],"name":"repayBorrow","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"borrower","type":"address"},{"internalType":"uint256","name":"repayAmount","type":"uint256"}],"name":"repayBorrowBehalf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserveFactorMantissa","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[],"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"},{"stateMutability":"payable","type":"receive"}]

60808060405234620000e85762001d0080380380916200001f8262000103565b83396101408183019112620000e8576200003862000166565b906200004362000177565b926200004e62000186565b60e051610100516001600160401b0396929190878111620000e8578562000077918601620001f6565b9061012051888111620000e8578662000092918701620001f6565b926200009d62000243565b94620000a862000195565b96620000b3620001a5565b986101a0519b8c11620000e857620000d89b620000d19201620001f6565b986200027c565b6040516117e490816200051c8239f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b6080601f91909101601f19168101906001600160401b038211908210176200012a57604052565b620000ed565b601f909101601f19168101906001600160401b038211908210176200012a57604052565b6001600160a01b03811603620000e857565b60805190620001758262000154565b565b60a05190620001758262000154565b60c05190620001758262000154565b6101605190620001758262000154565b6101805190620001758262000154565b6001600160401b0381116200012a57601f01601f191660200190565b60005b838110620001e55750506000910152565b8181015183820152602001620001d4565b81601f82011215620000e85780516200020f81620001b5565b926200021f604051948562000130565b81845260208284010111620000e857620002409160208085019101620001d1565b90565b610140519060ff82168203620000e857565b906020916200027081518092818552858086019101620001d1565b601f01601f1916010190565b60038054610100600160a81b0319163360081b610100600160a81b0316179055604051631a31d46560e01b60208201526001600160a01b0391821660248201529181166044830152919091166064820152608481019190915260e060a482015262000175969495620003499594909362000342936200033b928492909160ff916200032591620003129061010487019062000255565b8581036023190160c48701529062000255565b911660e483015203601f19810183528262000130565b8262000370565b50620003d9565b60038054610100600160a81b03191660089290921b610100600160a81b0316919091179055565b6000918291602082519201905af43d15620003bd573d906200039282620001b5565b91620003a2604051938462000130565b82523d6000602084013e5b15620003b65790565b60203d9101fd5b606090620003ad565b9060206200024092818152019062000255565b6003546001600160a01b039060081c81163303620004b057620004756200048e91620004847fd604de94d45953f9138079ec1b82d533cb2160c906d1076d1f7ed54befbca97a95620004586200043660135460018060a01b031690565b601380546001600160a01b0319166001600160a01b0390991698909817909755565b604051630adccee560e31b602082015293849160248301620003c6565b03601f19810184528362000130565b6013541662000370565b50601354604080516001600160a01b03938416815292909116602083015290a1565b60405162461bcd60e51b815260206004820152603960248201527f52457263323044656c656761746f723a3a5f736574496d706c656d656e74617460448201527f696f6e3a2043616c6c6572206d7573742062652061646d696e000000000000006064820152608490fdfe6080604052600436101561001d575b3661173f5761001b611733565b005b60003560e01c806306fdde031461038d5780630933c1ed14610388578063095ea7b3146103835780630e7527021461037e578063173b99041461037957806317bfdfbc1461037457806318160ddd1461036f578063182df0f51461036a5780631be195601461036557806323b872dd146103605780632608f8181461035b5780632678224714610356578063313ce567146103515780633630a6b51461034c5780633af9e669146103475780633b1d21a2146103425780633e9410101461033d5780634487152f146103385780634576b5db1461033357806347bd37181461032e578063555bcc40146103295780635c60da1b146103245780635fe3b5671461031f578063601a0bf11461031a5780636752e702146103155780636c540baf146103105780636f307dc31461030b57806370a082311461030657806373acee981461030157806383030846146102fc578063852a12e3146102f7578063895dabad146102f25780638f840ddd146102ed57806395d89b41146102e857806395dd9193146102e3578063a0712d68146102de578063a6afed95146102d9578063a9059cbb146102d4578063aa5af0fd146102cf578063ae9d70b0146102ca578063b2a02ff1146102c5578063b71d1a0c146102c0578063bd6d894d146102bb578063c37f68e2146102b6578063c5ebeaec146102b1578063d0248fb4146102ac578063db006a75146102a7578063dd62ed3e146102a2578063e9c714f21461029d578063f2b3abbd14610298578063f3fdb15a14610293578063f5e3c4621461028e578063f851a44014610289578063f8f9da28146102845763fca7820b0361000e57611502565b6114cd565b6114a0565b611431565b611408565b6113b4565b61137f565b61131a565b6112dd565b611252565b611215565b61117d565b611148565b6110f4565b6110a1565b61106c565b61104e565b610ff0565b610fbb565b610f7e565b610f2b565b610e65565b610e47565b610e2b565b610dee565b610db1565b610d7c565b610d29565b610d00565b610ce2565b610cc4565b610c87565b610c5e565b610c35565b610b18565b610af0565b610a9c565b610a88565b610a4b565b610a16565b6109c2565b6109a6565b610985565b61095c565b6108fe565b6108ab565b610830565b6107f6565b6107d8565b61077b565b61075d565b61070a565b610686565b61063c565b61049b565b634e487b7160e01b600052604160045260246000fd5b6060810190811067ffffffffffffffff8211176103c457604052565b610392565b6040810190811067ffffffffffffffff8211176103c457604052565b60e0810190811067ffffffffffffffff8211176103c457604052565b60a0810190811067ffffffffffffffff8211176103c457604052565b90601f8019910116810190811067ffffffffffffffff8211176103c457604052565b60005b8381106104525750506000910152565b8181015183820152602001610442565b9060209161047b8151809281855285808601910161043f565b601f01601f1916010190565b906020610498928181520190610462565b90565b346105a9576000806003193601126105a65760405190806001906001548060011c926001821692831561059c575b602092602086108514610588578588526020880194908115610567575060011461050e575b61050a876104fe8189038261041d565b60405191829182610487565b0390f35b600160005294509192917fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf65b83861061055657505050910190506104fe8261050a38806104ee565b80548587015294820194810161053a565b60ff191685525050505090151560051b0190506104fe8261050a38806104ee565b634e487b7160e01b82526022600452602482fd5b93607f16936104c9565b80fd5b600080fd5b67ffffffffffffffff81116103c457601f01601f191660200190565b81601f820112156105a9578035906105e1826105ae565b926105ef604051948561041d565b828452602083830101116105a957816000926020809301838601378301015290565b60206003198201126105a9576004359067ffffffffffffffff82116105a957610498916004016105ca565b346105a95761050a61066161065036610611565b6013546001600160a01b0316611788565b604051918291602083526020830190610462565b6001600160a01b038116036105a957565b346105a95760403660031901126105a95760206107006106f26106e46106506004356106b181610675565b60405163095ea7b360e01b878201526001600160a01b039091166024808301919091523560448201529182906064820190565b03601f19810183528261041d565b82808251830101910161153f565b6040519015158152f35b346105a95760203660031901126105a957602061075561074760405163073a938160e11b84820152600435602482015260248152610650816103a8565b828082518301019101611554565b604051908152f35b346105a95760003660031901126105a9576020600854604051908152f35b346105a95760203660031901126105a95760206107556107476004356107a081610675565b6040516305eff7ef60e21b858201526001600160a01b039182166024808301919091528152906107cf826103a8565b60135416611788565b346105a95760003660031901126105a9576020600d54604051908152f35b346105a95760003660031901126105a957602061075561074760405163182df0f560e01b848201526004815261082b816103c9565b611593565b346105a95760203660031901126105a95761001b60043561085081610675565b60405162df0cab60e51b60208201526001600160a01b039182166024808301919091528152906107cf826103a8565b60609060031901126105a95760043561089781610675565b906024356108a481610675565b9060443590565b346105a95760206107006106f26106e46106506108c73661087f565b6040516323b872dd60e01b898201526001600160a01b03938416602482015292909116604483015260648201529182906084820190565b346105a95760403660031901126105a95760206107556107476106e461065060043561092981610675565b6040516304c11f0360e31b878201526001600160a01b039091166024808301919091523560448201529182906064820190565b346105a95760003660031901126105a9576004546040516001600160a01b039091168152602090f35b346105a95760003660031901126105a957602060ff60035416604051908152f35b346105a95760003660031901126105a957602060405160018152f35b346105a95760203660031901126105a95760206107556107476004356109e781610675565b604051633af9e66960e01b858201526001600160a01b039182166024808301919091528152906107cf826103a8565b346105a95760003660031901126105a9576020610755610747604051631d8e90d160e11b848201526004815261082b816103c9565b346105a95760203660031901126105a95760206107556107476040516303e9410160e41b84820152600435602482015260248152610650816103a8565b346105a95761050a61066161082b36610611565b346105a95760203660031901126105a9576020610755610747600435610ac181610675565b604051634576b5db60e01b858201526001600160a01b039182166024808301919091528152906107cf826103a8565b346105a95760003660031901126105a9576020600b54604051908152f35b801515036105a957565b346105a95760603660031901126105a957600435610b3581610675565b60243590610b4282610b0e565b60443567ffffffffffffffff81116105a9576106e46106507fd604de94d45953f9138079ec1b82d533cb2160c906d1076d1f7ed54befbca97a94610b8d610bec9436906004016105ca565b600354909190610baa9060081c6001600160a01b0316331461164f565b610c0e575b601380546001600160a01b039687166001600160a01b0319821617909155604051630adccee560e31b602082015295169492839160248301610487565b50601354604080516001600160a01b03938416815292909116602083015290a1005b60405163153ab50560e01b602082015260048152610c2f90610650816103c9565b50610baf565b346105a95760003660031901126105a9576013546040516001600160a01b039091168152602090f35b346105a95760003660031901126105a9576005546040516001600160a01b039091168152602090f35b346105a95760203660031901126105a957602061075561074760405163601a0bf160e01b84820152600435602482015260248152610650816103a8565b346105a95760003660031901126105a9576020601154604051908152f35b346105a95760003660031901126105a9576020600954604051908152f35b346105a95760003660031901126105a9576012546040516001600160a01b039091168152602090f35b346105a95760203660031901126105a9576020610755610747600435610d4e81610675565b6040516370a0823160e01b858201526001600160a01b03909116602480830191909152815261082b816103a8565b346105a95760003660031901126105a9576020610755610747604051630e759dd360e31b8482015260048152610650816103c9565b346105a95760203660031901126105a9576020610755610747604051634181842360e11b84820152600435602482015260248152610650816103a8565b346105a95760203660031901126105a957602061075561074760405163852a12e360e01b84820152600435602482015260248152610650816103a8565b346105a95760003660031901126105a957602060405160008152f35b346105a95760003660031901126105a9576020600c54604051908152f35b346105a9576000806003193601126105a6576040519080600254906001918060011c9260018216928315610f21575b6020926020861085146105885785885260208801949081156105675750600114610ec85761050a876104fe8189038261041d565b600260005294509192917f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace5b838610610f1057505050910190506104fe8261050a38806104ee565b805485870152948201948101610ef4565b93607f1693610e94565b346105a95760203660031901126105a9576020610755610747600435610f5081610675565b6040516395dd919360e01b858201526001600160a01b03909116602480830191909152815261082b816103a8565b346105a95760203660031901126105a957602061075561074760405163140e25ad60e31b84820152600435602482015260248152610650816103a8565b346105a95760003660031901126105a957602061075561074760405163a6afed9560e01b8482015260048152610650816103c9565b346105a95760403660031901126105a95760206107006106f26106e461065060043561101b81610675565b60405163a9059cbb60e01b878201526001600160a01b039091166024808301919091523560448201529182906064820190565b346105a95760003660031901126105a9576020600a54604051908152f35b346105a95760003660031901126105a9576020610755610747604051630ae9d70b60e41b848201526004815261082b816103c9565b346105a95760206107556107476106e46106506110bd3661087f565b60405163b2a02ff160e01b898201526001600160a01b03938416602482015292909116604483015260648201529182906084820190565b346105a95760203660031901126105a957602061075561074760043561111981610675565b604051632dc7468360e21b858201526001600160a01b039182166024808301919091528152906107cf826103a8565b346105a95760003660031901126105a957602061075561074760405163bd6d894d60e01b8482015260048152610650816103c9565b346105a95760203660031901126105a9576111cc60043561119d81610675565b6040516361bfb47160e11b60208201526001600160a01b03909116602480830191909152815261082b816103a8565b6080818051810103126105a957602081015161050a6040830151926080606082015191015190604051948594859094939260609260808301968352602083015260408201520152565b346105a95760203660031901126105a957602061075561074760405163317afabb60e21b84820152600435602482015260248152610650816103a8565b346105a95760a03660031901126105a95760443560ff81168091036105a9576112cd6112be61050a926040519063340923ed60e21b6020830152600435602483015260243560448301526064820152606435608482015260843560a482015260a48152610650816103e5565b60208082518301019101611554565b6040519081529081906020820190565b346105a95760203660031901126105a957602061075561074760405163db006a7560e01b84820152600435602482015260248152610650816103a8565b346105a95760403660031901126105a957602061075561074760043561133f81610675565b61082b6024359161134f83610675565b604051636eb1769f60e11b878201526001600160a01b0391821660248201529216604483015281606481016106e4565b346105a95760003660031901126105a95760206107556107476040516374e38a7960e11b8482015260048152610650816103c9565b346105a95760203660031901126105a95760206107556107476004356113d981610675565b60405163f2b3abbd60e01b858201526001600160a01b039182166024808301919091528152906107cf826103a8565b346105a95760003660031901126105a9576006546040516001600160a01b039091168152602090f35b346105a95760603660031901126105a95761050a6112cd6112be60043561145781610675565b60443561146381610675565b60405191637af1e23160e11b602084015260018060a01b03918280921660248501526024356044850152166064830152606482526107cf82610401565b346105a95760003660031901126105a95760035460405160089190911c6001600160a01b03168152602090f35b346105a95760003660031901126105a9576020610755610747604051631f1f3b4560e31b848201526004815261082b816103c9565b346105a95760203660031901126105a957602061075561074760405163fca7820b60e01b84820152600435602482015260248152610650816103a8565b908160209103126105a9575161049881610b0e565b908160209103126105a9575190565b3d1561158e573d90611574826105ae565b91611582604051938461041d565b82523d6000602084013e565b606090565b604051906020916115b8816106e485820194630933c1ed60e01b865260248301610487565b6000809281925190305afa916115cc611563565b9215611648578251830192818181860195031261164057818101519067ffffffffffffffff821161164457019083603f83011215611640578082015192611612846105ae565b94611620604051968761041d565b848652604085850101116105a6575090604061049893928501910161043f565b8280fd5b8380fd5b90503d9101fd5b1561165657565b60405162461bcd60e51b815260206004820152603960248201527f52457263323044656c656761746f723a3a5f736574496d706c656d656e74617460448201527f696f6e3a2043616c6c6572206d7573742062652061646d696e000000000000006064820152608490fd5b156116c857565b60405162461bcd60e51b815260206004820152603760248201527f52457263323044656c656761746f723a66616c6c6261636b3a2063616e6e6f7460448201527f2073656e642076616c756520746f2066616c6c6261636b0000000000000000006064820152608490fd5b61173d34156116c1565b565b61174934156116c1565b60008060018060a01b0360135416604051368382378036810184815203915af4611771611563565b50604051903d6000833e15611784573d90f35b3d90fd5b6000918291602082519201905af461179e611563565b90156117a75790565b60203d9101fdfea264697066735822122041c381a100edeb21daa250f3bb2f314c3b3823fd82ebd63f87b2718af155437764736f6c63430008170033000000000000000000000000f55bec9cafdbe8730f096aa55dad6d22d44099df0000000000000000000000008a67ab98a291d1aea2e1eb0a79ae4ab7f2d7604100000000000000000000000013678b857c3d0ad732fa3fa2537008fa21e332a90000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000006000000000000000000000000e915d5943c71737d49e1c35dadd63022531cca7a000000000000000000000000282f1d0a09f5bbdbaff7154636262bfa4e9c3cea00000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000000a5465746865722055534400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000572555344540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436101561001d575b3661173f5761001b611733565b005b60003560e01c806306fdde031461038d5780630933c1ed14610388578063095ea7b3146103835780630e7527021461037e578063173b99041461037957806317bfdfbc1461037457806318160ddd1461036f578063182df0f51461036a5780631be195601461036557806323b872dd146103605780632608f8181461035b5780632678224714610356578063313ce567146103515780633630a6b51461034c5780633af9e669146103475780633b1d21a2146103425780633e9410101461033d5780634487152f146103385780634576b5db1461033357806347bd37181461032e578063555bcc40146103295780635c60da1b146103245780635fe3b5671461031f578063601a0bf11461031a5780636752e702146103155780636c540baf146103105780636f307dc31461030b57806370a082311461030657806373acee981461030157806383030846146102fc578063852a12e3146102f7578063895dabad146102f25780638f840ddd146102ed57806395d89b41146102e857806395dd9193146102e3578063a0712d68146102de578063a6afed95146102d9578063a9059cbb146102d4578063aa5af0fd146102cf578063ae9d70b0146102ca578063b2a02ff1146102c5578063b71d1a0c146102c0578063bd6d894d146102bb578063c37f68e2146102b6578063c5ebeaec146102b1578063d0248fb4146102ac578063db006a75146102a7578063dd62ed3e146102a2578063e9c714f21461029d578063f2b3abbd14610298578063f3fdb15a14610293578063f5e3c4621461028e578063f851a44014610289578063f8f9da28146102845763fca7820b0361000e57611502565b6114cd565b6114a0565b611431565b611408565b6113b4565b61137f565b61131a565b6112dd565b611252565b611215565b61117d565b611148565b6110f4565b6110a1565b61106c565b61104e565b610ff0565b610fbb565b610f7e565b610f2b565b610e65565b610e47565b610e2b565b610dee565b610db1565b610d7c565b610d29565b610d00565b610ce2565b610cc4565b610c87565b610c5e565b610c35565b610b18565b610af0565b610a9c565b610a88565b610a4b565b610a16565b6109c2565b6109a6565b610985565b61095c565b6108fe565b6108ab565b610830565b6107f6565b6107d8565b61077b565b61075d565b61070a565b610686565b61063c565b61049b565b634e487b7160e01b600052604160045260246000fd5b6060810190811067ffffffffffffffff8211176103c457604052565b610392565b6040810190811067ffffffffffffffff8211176103c457604052565b60e0810190811067ffffffffffffffff8211176103c457604052565b60a0810190811067ffffffffffffffff8211176103c457604052565b90601f8019910116810190811067ffffffffffffffff8211176103c457604052565b60005b8381106104525750506000910152565b8181015183820152602001610442565b9060209161047b8151809281855285808601910161043f565b601f01601f1916010190565b906020610498928181520190610462565b90565b346105a9576000806003193601126105a65760405190806001906001548060011c926001821692831561059c575b602092602086108514610588578588526020880194908115610567575060011461050e575b61050a876104fe8189038261041d565b60405191829182610487565b0390f35b600160005294509192917fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf65b83861061055657505050910190506104fe8261050a38806104ee565b80548587015294820194810161053a565b60ff191685525050505090151560051b0190506104fe8261050a38806104ee565b634e487b7160e01b82526022600452602482fd5b93607f16936104c9565b80fd5b600080fd5b67ffffffffffffffff81116103c457601f01601f191660200190565b81601f820112156105a9578035906105e1826105ae565b926105ef604051948561041d565b828452602083830101116105a957816000926020809301838601378301015290565b60206003198201126105a9576004359067ffffffffffffffff82116105a957610498916004016105ca565b346105a95761050a61066161065036610611565b6013546001600160a01b0316611788565b604051918291602083526020830190610462565b6001600160a01b038116036105a957565b346105a95760403660031901126105a95760206107006106f26106e46106506004356106b181610675565b60405163095ea7b360e01b878201526001600160a01b039091166024808301919091523560448201529182906064820190565b03601f19810183528261041d565b82808251830101910161153f565b6040519015158152f35b346105a95760203660031901126105a957602061075561074760405163073a938160e11b84820152600435602482015260248152610650816103a8565b828082518301019101611554565b604051908152f35b346105a95760003660031901126105a9576020600854604051908152f35b346105a95760203660031901126105a95760206107556107476004356107a081610675565b6040516305eff7ef60e21b858201526001600160a01b039182166024808301919091528152906107cf826103a8565b60135416611788565b346105a95760003660031901126105a9576020600d54604051908152f35b346105a95760003660031901126105a957602061075561074760405163182df0f560e01b848201526004815261082b816103c9565b611593565b346105a95760203660031901126105a95761001b60043561085081610675565b60405162df0cab60e51b60208201526001600160a01b039182166024808301919091528152906107cf826103a8565b60609060031901126105a95760043561089781610675565b906024356108a481610675565b9060443590565b346105a95760206107006106f26106e46106506108c73661087f565b6040516323b872dd60e01b898201526001600160a01b03938416602482015292909116604483015260648201529182906084820190565b346105a95760403660031901126105a95760206107556107476106e461065060043561092981610675565b6040516304c11f0360e31b878201526001600160a01b039091166024808301919091523560448201529182906064820190565b346105a95760003660031901126105a9576004546040516001600160a01b039091168152602090f35b346105a95760003660031901126105a957602060ff60035416604051908152f35b346105a95760003660031901126105a957602060405160018152f35b346105a95760203660031901126105a95760206107556107476004356109e781610675565b604051633af9e66960e01b858201526001600160a01b039182166024808301919091528152906107cf826103a8565b346105a95760003660031901126105a9576020610755610747604051631d8e90d160e11b848201526004815261082b816103c9565b346105a95760203660031901126105a95760206107556107476040516303e9410160e41b84820152600435602482015260248152610650816103a8565b346105a95761050a61066161082b36610611565b346105a95760203660031901126105a9576020610755610747600435610ac181610675565b604051634576b5db60e01b858201526001600160a01b039182166024808301919091528152906107cf826103a8565b346105a95760003660031901126105a9576020600b54604051908152f35b801515036105a957565b346105a95760603660031901126105a957600435610b3581610675565b60243590610b4282610b0e565b60443567ffffffffffffffff81116105a9576106e46106507fd604de94d45953f9138079ec1b82d533cb2160c906d1076d1f7ed54befbca97a94610b8d610bec9436906004016105ca565b600354909190610baa9060081c6001600160a01b0316331461164f565b610c0e575b601380546001600160a01b039687166001600160a01b0319821617909155604051630adccee560e31b602082015295169492839160248301610487565b50601354604080516001600160a01b03938416815292909116602083015290a1005b60405163153ab50560e01b602082015260048152610c2f90610650816103c9565b50610baf565b346105a95760003660031901126105a9576013546040516001600160a01b039091168152602090f35b346105a95760003660031901126105a9576005546040516001600160a01b039091168152602090f35b346105a95760203660031901126105a957602061075561074760405163601a0bf160e01b84820152600435602482015260248152610650816103a8565b346105a95760003660031901126105a9576020601154604051908152f35b346105a95760003660031901126105a9576020600954604051908152f35b346105a95760003660031901126105a9576012546040516001600160a01b039091168152602090f35b346105a95760203660031901126105a9576020610755610747600435610d4e81610675565b6040516370a0823160e01b858201526001600160a01b03909116602480830191909152815261082b816103a8565b346105a95760003660031901126105a9576020610755610747604051630e759dd360e31b8482015260048152610650816103c9565b346105a95760203660031901126105a9576020610755610747604051634181842360e11b84820152600435602482015260248152610650816103a8565b346105a95760203660031901126105a957602061075561074760405163852a12e360e01b84820152600435602482015260248152610650816103a8565b346105a95760003660031901126105a957602060405160008152f35b346105a95760003660031901126105a9576020600c54604051908152f35b346105a9576000806003193601126105a6576040519080600254906001918060011c9260018216928315610f21575b6020926020861085146105885785885260208801949081156105675750600114610ec85761050a876104fe8189038261041d565b600260005294509192917f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace5b838610610f1057505050910190506104fe8261050a38806104ee565b805485870152948201948101610ef4565b93607f1693610e94565b346105a95760203660031901126105a9576020610755610747600435610f5081610675565b6040516395dd919360e01b858201526001600160a01b03909116602480830191909152815261082b816103a8565b346105a95760203660031901126105a957602061075561074760405163140e25ad60e31b84820152600435602482015260248152610650816103a8565b346105a95760003660031901126105a957602061075561074760405163a6afed9560e01b8482015260048152610650816103c9565b346105a95760403660031901126105a95760206107006106f26106e461065060043561101b81610675565b60405163a9059cbb60e01b878201526001600160a01b039091166024808301919091523560448201529182906064820190565b346105a95760003660031901126105a9576020600a54604051908152f35b346105a95760003660031901126105a9576020610755610747604051630ae9d70b60e41b848201526004815261082b816103c9565b346105a95760206107556107476106e46106506110bd3661087f565b60405163b2a02ff160e01b898201526001600160a01b03938416602482015292909116604483015260648201529182906084820190565b346105a95760203660031901126105a957602061075561074760043561111981610675565b604051632dc7468360e21b858201526001600160a01b039182166024808301919091528152906107cf826103a8565b346105a95760003660031901126105a957602061075561074760405163bd6d894d60e01b8482015260048152610650816103c9565b346105a95760203660031901126105a9576111cc60043561119d81610675565b6040516361bfb47160e11b60208201526001600160a01b03909116602480830191909152815261082b816103a8565b6080818051810103126105a957602081015161050a6040830151926080606082015191015190604051948594859094939260609260808301968352602083015260408201520152565b346105a95760203660031901126105a957602061075561074760405163317afabb60e21b84820152600435602482015260248152610650816103a8565b346105a95760a03660031901126105a95760443560ff81168091036105a9576112cd6112be61050a926040519063340923ed60e21b6020830152600435602483015260243560448301526064820152606435608482015260843560a482015260a48152610650816103e5565b60208082518301019101611554565b6040519081529081906020820190565b346105a95760203660031901126105a957602061075561074760405163db006a7560e01b84820152600435602482015260248152610650816103a8565b346105a95760403660031901126105a957602061075561074760043561133f81610675565b61082b6024359161134f83610675565b604051636eb1769f60e11b878201526001600160a01b0391821660248201529216604483015281606481016106e4565b346105a95760003660031901126105a95760206107556107476040516374e38a7960e11b8482015260048152610650816103c9565b346105a95760203660031901126105a95760206107556107476004356113d981610675565b60405163f2b3abbd60e01b858201526001600160a01b039182166024808301919091528152906107cf826103a8565b346105a95760003660031901126105a9576006546040516001600160a01b039091168152602090f35b346105a95760603660031901126105a95761050a6112cd6112be60043561145781610675565b60443561146381610675565b60405191637af1e23160e11b602084015260018060a01b03918280921660248501526024356044850152166064830152606482526107cf82610401565b346105a95760003660031901126105a95760035460405160089190911c6001600160a01b03168152602090f35b346105a95760003660031901126105a9576020610755610747604051631f1f3b4560e31b848201526004815261082b816103c9565b346105a95760203660031901126105a957602061075561074760405163fca7820b60e01b84820152600435602482015260248152610650816103a8565b908160209103126105a9575161049881610b0e565b908160209103126105a9575190565b3d1561158e573d90611574826105ae565b91611582604051938461041d565b82523d6000602084013e565b606090565b604051906020916115b8816106e485820194630933c1ed60e01b865260248301610487565b6000809281925190305afa916115cc611563565b9215611648578251830192818181860195031261164057818101519067ffffffffffffffff821161164457019083603f83011215611640578082015192611612846105ae565b94611620604051968761041d565b848652604085850101116105a6575090604061049893928501910161043f565b8280fd5b8380fd5b90503d9101fd5b1561165657565b60405162461bcd60e51b815260206004820152603960248201527f52457263323044656c656761746f723a3a5f736574496d706c656d656e74617460448201527f696f6e3a2043616c6c6572206d7573742062652061646d696e000000000000006064820152608490fd5b156116c857565b60405162461bcd60e51b815260206004820152603760248201527f52457263323044656c656761746f723a66616c6c6261636b3a2063616e6e6f7460448201527f2073656e642076616c756520746f2066616c6c6261636b0000000000000000006064820152608490fd5b61173d34156116c1565b565b61174934156116c1565b60008060018060a01b0360135416604051368382378036810184815203915af4611771611563565b50604051903d6000833e15611784573d90f35b3d90fd5b6000918291602082519201905af461179e611563565b90156117a75790565b60203d9101fdfea264697066735822122041c381a100edeb21daa250f3bb2f314c3b3823fd82ebd63f87b2718af155437764736f6c63430008170033

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

000000000000000000000000f55bec9cafdbe8730f096aa55dad6d22d44099df0000000000000000000000008a67ab98a291d1aea2e1eb0a79ae4ab7f2d7604100000000000000000000000013678b857c3d0ad732fa3fa2537008fa21e332a90000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000006000000000000000000000000e915d5943c71737d49e1c35dadd63022531cca7a000000000000000000000000282f1d0a09f5bbdbaff7154636262bfa4e9c3cea00000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000000a5465746865722055534400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000572555344540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : underlying_ (address): 0xf55BEC9cafDbE8730f096Aa55dad6D22d44099Df
Arg [1] : comptroller_ (address): 0x8a67AB98A291d1AEA2E1eB0a79ae4ab7f2D76041
Arg [2] : interestRateModel_ (address): 0x13678b857C3D0ad732Fa3fa2537008FA21e332a9
Arg [3] : initialExchangeRateMantissa_ (uint256): 1000000000000000000
Arg [4] : name_ (string): Tether USD
Arg [5] : symbol_ (string): rUSDT
Arg [6] : decimals_ (uint8): 6
Arg [7] : admin_ (address): 0xe915d5943C71737d49e1c35dAdd63022531CcA7A
Arg [8] : implementation_ (address): 0x282F1d0a09f5BbDBAfF7154636262Bfa4e9c3cEA
Arg [9] : becomeImplementationData (bytes): 0x

-----Encoded View---------------
15 Constructor Arguments found :
Arg [0] : 000000000000000000000000f55bec9cafdbe8730f096aa55dad6d22d44099df
Arg [1] : 0000000000000000000000008a67ab98a291d1aea2e1eb0a79ae4ab7f2d76041
Arg [2] : 00000000000000000000000013678b857c3d0ad732fa3fa2537008fa21e332a9
Arg [3] : 0000000000000000000000000000000000000000000000000de0b6b3a7640000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [7] : 000000000000000000000000e915d5943c71737d49e1c35dadd63022531cca7a
Arg [8] : 000000000000000000000000282f1d0a09f5bbdbaff7154636262bfa4e9c3cea
Arg [9] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [10] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [11] : 5465746865722055534400000000000000000000000000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [13] : 7255534454000000000000000000000000000000000000000000000000000000
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000000


Block Transaction Gas Used Reward
view all blocks sequenced

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
[ 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.