Contract 0x094dad10e112299a384bc9dc18465c8701b0ca9b

Contract Overview

Balance:
0 Ether
Txn Hash Method
Block
From
To
Value
0xe257134c1099b0a86f76731df5e36b27fdcd238eafdde29b3b898e52fcd278770x610f6161237104242021-03-01 17:37:0078 days 2 hrs ago0x69bdb276a17dd90f9d3a545944ccb20e593ae8e3 IN  Contract Creation0 Ether0.01351534103514.959965017
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xeb070b334bc02a2d92e15865d9f96b505a97c8c93bb1ca482e2c38622bb5eb07248756502021-05-16 19:11:002 days 58 mins ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x094dad10e112299a384bc9dc18465c8701b0ca9b0 Ether
0xeb070b334bc02a2d92e15865d9f96b505a97c8c93bb1ca482e2c38622bb5eb07248756502021-05-16 19:11:002 days 58 mins ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x094dad10e112299a384bc9dc18465c8701b0ca9b0 Ether
0x7c018eaf834b3ee0bf9cdfb5c42c501b84c5369a74ef6d91103836ee027a9202246974212021-05-06 19:26:3212 days 43 mins ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x094dad10e112299a384bc9dc18465c8701b0ca9b0 Ether
0x902b11c487b8d60a96e93d8b45c506175b5055d26be6bdb2c3bacb73272ed5c9246973842021-05-06 19:24:0012 days 45 mins ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x094dad10e112299a384bc9dc18465c8701b0ca9b0 Ether
0xdb5723faab4e2c96614663c3f7431ba379bb384ca0c5da4cfe49983ad7bb042c246577422021-05-04 21:47:1613 days 22 hrs ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x094dad10e112299a384bc9dc18465c8701b0ca9b0 Ether
0x09e0dcad20fd5722cf10a4b6e7b2a730ad16a69c0d78f33b02a051ae6d1bff61245952812021-05-01 23:23:2416 days 20 hrs ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x094dad10e112299a384bc9dc18465c8701b0ca9b0 Ether
0x09e0dcad20fd5722cf10a4b6e7b2a730ad16a69c0d78f33b02a051ae6d1bff61245952812021-05-01 23:23:2416 days 20 hrs ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x094dad10e112299a384bc9dc18465c8701b0ca9b0 Ether
0xa2fadf05900a3140ae04f85c8ee8e4203f7475056f9f2257461f5d294fa93061245952692021-05-01 23:22:3616 days 20 hrs ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x094dad10e112299a384bc9dc18465c8701b0ca9b0 Ether
0xa2fadf05900a3140ae04f85c8ee8e4203f7475056f9f2257461f5d294fa93061245952692021-05-01 23:22:3616 days 20 hrs ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x094dad10e112299a384bc9dc18465c8701b0ca9b0 Ether
0x3f169b6a4942be202215721c1c7572fe63e9c342c9fce8fa5c188fe976fea10f245570972021-04-30 4:27:2018 days 15 hrs ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x094dad10e112299a384bc9dc18465c8701b0ca9b0 Ether
0xd5599049c21b66f02222c2bbdb35ddb5189727c86f87260f7daf9e9415d134bf245117092021-04-28 1:09:2820 days 19 hrs ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x094dad10e112299a384bc9dc18465c8701b0ca9b0 Ether
0xd5599049c21b66f02222c2bbdb35ddb5189727c86f87260f7daf9e9415d134bf245117092021-04-28 1:09:2820 days 19 hrs ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x094dad10e112299a384bc9dc18465c8701b0ca9b0 Ether
0xc31897ca1e7d9a5e7594d0b084ae788fed1154b3bb89796eada33ccde375ca9f245116852021-04-28 1:07:4420 days 19 hrs ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x094dad10e112299a384bc9dc18465c8701b0ca9b0 Ether
0xc31897ca1e7d9a5e7594d0b084ae788fed1154b3bb89796eada33ccde375ca9f245116852021-04-28 1:07:4420 days 19 hrs ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x094dad10e112299a384bc9dc18465c8701b0ca9b0 Ether
0xa1b9edca3737aa54aac905bee07860cff6173236fd0bfa45daf4baf9cb1f04fb245116562021-04-28 1:05:4420 days 19 hrs ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x094dad10e112299a384bc9dc18465c8701b0ca9b0 Ether
0xa1b9edca3737aa54aac905bee07860cff6173236fd0bfa45daf4baf9cb1f04fb245116562021-04-28 1:05:4420 days 19 hrs ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x094dad10e112299a384bc9dc18465c8701b0ca9b0 Ether
0x978286e56fbd07de33e4001f74b844a136f5d201c99017f9b11c52b8d8f72831245115492021-04-28 0:58:2420 days 19 hrs ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x094dad10e112299a384bc9dc18465c8701b0ca9b0 Ether
0xcab98d59eab9d7a6e6aa4012daf41fcac95aef7eb30f5d394825935cadf873e4245087662021-04-27 21:49:0020 days 22 hrs ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x094dad10e112299a384bc9dc18465c8701b0ca9b0 Ether
0xcab98d59eab9d7a6e6aa4012daf41fcac95aef7eb30f5d394825935cadf873e4245087662021-04-27 21:49:0020 days 22 hrs ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x094dad10e112299a384bc9dc18465c8701b0ca9b0 Ether
0xd15812c0c63c4be1ad4c17f21a2951a0180d734eb9741d947195f126951d99d9241866972021-04-07 16:49:5641 days 3 hrs ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x094dad10e112299a384bc9dc18465c8701b0ca9b0 Ether
0x0586b802449fb224d0a01fdd1b38d5a64613b4cb6fec76e4980994ef06868c91240622852021-03-26 16:22:5253 days 3 hrs ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x094dad10e112299a384bc9dc18465c8701b0ca9b0 Ether
0xad37321bca851ad2fd957db919f3f2a5fef3fc144b6d66e727850d67c3594359240582042021-03-26 7:15:2453 days 12 hrs ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x094dad10e112299a384bc9dc18465c8701b0ca9b0 Ether
0xb2761c475250acbe0e7529db60086e8d134e72129bfe23c493aef6d0e77d55bc240581972021-03-26 7:14:2853 days 12 hrs ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x094dad10e112299a384bc9dc18465c8701b0ca9b0 Ether
0x0d34e3a1fe12a64c308650b58cd8df7440dbb8ecbf01e8a8d026c344834b9549240581382021-03-26 7:06:3653 days 13 hrs ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x094dad10e112299a384bc9dc18465c8701b0ca9b0 Ether
0xd03a713b3811b1d103867b87e2ff77512a28036c3134c119f99290c29cb88602240581102021-03-26 7:02:5253 days 13 hrs ago 0x676c7b527c706801e64ad2108aa1f0ddc83807d0 0x094dad10e112299a384bc9dc18465c8701b0ca9b0 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Compound

Compiler Version
v0.6.10+commit.00c0fcaf

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, Apache-2.0 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-03-01
*/

// Dependency file: @openzeppelin/contracts/token/ERC20/IERC20.sol



// pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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


// Dependency file: contracts/interfaces/ISetToken.sol

/*
    Copyright 2020 Set Labs Inc.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.


*/
// pragma solidity 0.6.10;
pragma experimental "ABIEncoderV2";

// import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";

/**
 * @title ISetToken
 * @author Set Protocol
 *
 * Interface for operating with SetTokens.
 */
interface ISetToken is IERC20 {

    /* ============ Enums ============ */

    enum ModuleState {
        NONE,
        PENDING,
        INITIALIZED
    }

    /* ============ Structs ============ */
    /**
     * The base definition of a SetToken Position
     *
     * @param component           Address of token in the Position
     * @param module              If not in default state, the address of associated module
     * @param unit                Each unit is the # of components per 10^18 of a SetToken
     * @param positionState       Position ENUM. Default is 0; External is 1
     * @param data                Arbitrary data
     */
    struct Position {
        address component;
        address module;
        int256 unit;
        uint8 positionState;
        bytes data;
    }

    /**
     * A struct that stores a component's cash position details and external positions
     * This data structure allows O(1) access to a component's cash position units and 
     * virtual units.
     *
     * @param virtualUnit               Virtual value of a component's DEFAULT position. Stored as virtual for efficiency
     *                                  updating all units at once via the position multiplier. Virtual units are achieved
     *                                  by dividing a "real" value by the "positionMultiplier"
     * @param componentIndex            
     * @param externalPositionModules   List of external modules attached to each external position. Each module
     *                                  maps to an external position
     * @param externalPositions         Mapping of module => ExternalPosition struct for a given component
     */
    struct ComponentPosition {
      int256 virtualUnit;
      address[] externalPositionModules;
      mapping(address => ExternalPosition) externalPositions;
    }

    /**
     * A struct that stores a component's external position details including virtual unit and any
     * auxiliary data.
     *
     * @param virtualUnit       Virtual value of a component's EXTERNAL position.
     * @param data              Arbitrary data
     */
    struct ExternalPosition {
      int256 virtualUnit;
      bytes data;
    }


    /* ============ Functions ============ */
    
    function addComponent(address _component) external;
    function removeComponent(address _component) external;
    function editDefaultPositionUnit(address _component, int256 _realUnit) external;
    function addExternalPositionModule(address _component, address _positionModule) external;
    function removeExternalPositionModule(address _component, address _positionModule) external;
    function editExternalPositionUnit(address _component, address _positionModule, int256 _realUnit) external;
    function editExternalPositionData(address _component, address _positionModule, bytes calldata _data) external;

    function invoke(address _target, uint256 _value, bytes calldata _data) external returns(bytes memory);

    function editPositionMultiplier(int256 _newMultiplier) external;

    function mint(address _account, uint256 _quantity) external;
    function burn(address _account, uint256 _quantity) external;

    function lock() external;
    function unlock() external;

    function addModule(address _module) external;
    function removeModule(address _module) external;
    function initializeModule() external;

    function setManager(address _manager) external;

    function manager() external view returns (address);
    function moduleStates(address _module) external view returns (ModuleState);
    function getModules() external view returns (address[] memory);
    
    function getDefaultPositionRealUnit(address _component) external view returns(int256);
    function getExternalPositionRealUnit(address _component, address _positionModule) external view returns(int256);
    function getComponents() external view returns(address[] memory);
    function getExternalPositionModules(address _component) external view returns(address[] memory);
    function getExternalPositionData(address _component, address _positionModule) external view returns(bytes memory);
    function isExternalPositionModule(address _component, address _module) external view returns(bool);
    function isComponent(address _component) external view returns(bool);
    
    function positionMultiplier() external view returns (int256);
    function getPositions() external view returns (Position[] memory);
    function getTotalComponentRealUnits(address _component) external view returns(int256);

    function isInitializedModule(address _module) external view returns(bool);
    function isPendingModule(address _module) external view returns(bool);
    function isLocked() external view returns (bool);
}

// Dependency file: contracts/interfaces/external/ICErc20.sol

/*
    Copyright 2020 Set Labs Inc.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

// pragma solidity 0.6.10;

// import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";


/**
 * @title ICErc20
 * @author Set Protocol
 *
 * Interface for interacting with Compound cErc20 tokens (e.g. Dai, USDC)
 */
interface ICErc20 is IERC20 {

    function borrowBalanceCurrent(address _account) external returns (uint256);

    function borrowBalanceStored(address _account) external view returns (uint256);

    /**
     * Calculates the exchange rate from the underlying to the CToken
     *
     * @notice Accrue interest then return the up-to-date exchange rate
     * @return Calculated exchange rate scaled by 1e18
     */
    function exchangeRateCurrent() external returns (uint256);

    function exchangeRateStored() external view returns (uint256);

    function underlying() external returns (address);

    /**
     * Sender supplies assets into the market and receives cTokens in exchange
     *
     * @notice Accrues interest whether or not the operation succeeds, unless reverted
     * @param _mintAmount The amount of the underlying asset to supply
     * @return uint256 0=success, otherwise a failure
     */
    function mint(uint256 _mintAmount) external returns (uint256);

    /**
     * @notice Sender redeems cTokens in exchange for the underlying asset
     * @dev Accrues interest whether or not the operation succeeds, unless reverted
     * @param _redeemTokens The number of cTokens to redeem into underlying
     * @return uint256 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function redeem(uint256 _redeemTokens) external returns (uint256);

    /**
     * @notice Sender redeems cTokens in exchange for a specified amount of underlying asset
     * @dev Accrues interest whether or not the operation succeeds, unless reverted
     * @param _redeemAmount The amount of underlying to redeem
     * @return uint256 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function redeemUnderlying(uint256 _redeemAmount) external returns (uint256);

    /**
      * @notice Sender borrows assets from the protocol to their own address
      * @param _borrowAmount The amount of the underlying asset to borrow
      * @return uint256 0=success, otherwise a failure (see ErrorReporter.sol for details)
      */
    function borrow(uint256 _borrowAmount) external returns (uint256);

    /**
     * @notice Sender repays their own borrow
     * @param _repayAmount The amount to repay
     * @return uint256 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function repayBorrow(uint256 _repayAmount) external returns (uint256);
}

// Dependency file: contracts/interfaces/external/IComptroller.sol

/*
    Copyright 2021 Set Labs Inc.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

// pragma solidity 0.6.10;

// import { ICErc20 } from "contracts/interfaces/external/ICErc20.sol";


/**
 * @title IComptroller
 * @author Set Protocol
 *
 * Interface for interacting with Compound Comptroller
 */
interface IComptroller {

    /**
     * @notice Add assets to be included in account liquidity calculation
     * @param cTokens The list of addresses of the cToken markets to be enabled
     * @return Success indicator for whether each corresponding market was entered
     */
    function enterMarkets(address[] memory cTokens) external returns (uint[] memory);

    /**
     * @notice Removes asset from sender's account liquidity calculation
     * @dev Sender must not have an outstanding borrow balance in the asset,
     *  or be providing neccessary collateral for an outstanding borrow.
     * @param cTokenAddress The address of the asset to be removed
     * @return Whether or not the account successfully exited the market
     */
    function exitMarket(address cTokenAddress) external returns (uint);

    function getAllMarkets() external view returns (ICErc20[] memory);

    function claimComp(address holder) external;
}

// Root file: contracts/protocol/integration/lib/Compound.sol

/*
    Copyright 2020 Set Labs Inc.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.


*/

pragma solidity 0.6.10;

// import { ISetToken } from "contracts/interfaces/ISetToken.sol";
// import { ICErc20 } from "contracts/interfaces/external/ICErc20.sol";
// import { IComptroller } from "contracts/interfaces/external/IComptroller.sol";

/**
 * @title Compound
 * @author Set Protocol
 *
 * Collection of helper functions for interacting with Compound integrations
 */
library Compound {
    /* ============ External ============ */

    /**
     * Get enter markets calldata from SetToken
     */
    function getEnterMarketsCalldata(
        ICErc20 _cToken,
        IComptroller _comptroller
    )
        public
        pure
        returns (address, uint256, bytes memory)
    {
        address[] memory marketsToEnter = new address[](1);
        marketsToEnter[0] = address(_cToken);

        // Compound's enter market function signature is: enterMarkets(address[] _cTokens)
        bytes memory callData = abi.encodeWithSignature("enterMarkets(address[])", marketsToEnter);

        return (address(_comptroller), 0, callData);
    }

    /**
     * Invoke enter markets from SetToken
     */
    function invokeEnterMarkets(ISetToken _setToken, ICErc20 _cToken, IComptroller _comptroller) external {
        ( , , bytes memory enterMarketsCalldata) = getEnterMarketsCalldata(_cToken, _comptroller);

        uint256[] memory returnValues = abi.decode(_setToken.invoke(address(_comptroller), 0, enterMarketsCalldata), (uint256[]));
        require(returnValues[0] == 0, "Entering failed");
    }

    /**
     * Get exit market calldata from SetToken
     */
    function getExitMarketCalldata(
        ICErc20 _cToken,
        IComptroller _comptroller
    )
        public
        pure
        returns (address, uint256, bytes memory)
    {
        // Compound's exit market function signature is: exitMarket(address _cToken)
        bytes memory callData = abi.encodeWithSignature("exitMarket(address)", address(_cToken));

        return (address(_comptroller), 0, callData);
    }

    /**
     * Invoke exit market from SetToken
     */
    function invokeExitMarket(ISetToken _setToken, ICErc20 _cToken, IComptroller _comptroller) external {
        ( , , bytes memory exitMarketCalldata) = getExitMarketCalldata(_cToken, _comptroller);
        require(
            abi.decode(_setToken.invoke(address(_comptroller), 0, exitMarketCalldata), (uint256)) == 0,
            "Exiting failed"
        );
    }

    /**
     * Get mint cEther calldata from SetToken
     */
    function getMintCEtherCalldata(
       ICErc20 _cEther,
       uint256 _mintNotional
    )
        public
        pure
        returns (address, uint256, bytes memory)
    {
        // Compound's mint cEther function signature is: mint(). No return, reverts on error.
        bytes memory callData = abi.encodeWithSignature("mint()");

        return (address(_cEther), _mintNotional, callData);
    }

    /**
     * Invoke mint cEther from the SetToken
     */
    function invokeMintCEther(ISetToken _setToken, ICErc20 _cEther, uint256 _mintNotional) external {
        ( , , bytes memory mintCEtherCalldata) = getMintCEtherCalldata(_cEther, _mintNotional);

        _setToken.invoke(address(_cEther), _mintNotional, mintCEtherCalldata);
    }

    /**
     * Get mint cToken calldata from SetToken
     */
    function getMintCTokenCalldata(
       ICErc20 _cToken,
       uint256 _mintNotional
    )
        public
        pure
        returns (address, uint256, bytes memory)
    {
        // Compound's mint cToken function signature is: mint(uint256 _mintAmount). Returns 0 if success
        bytes memory callData = abi.encodeWithSignature("mint(uint256)", _mintNotional);

        return (address(_cToken), _mintNotional, callData);
    }

    /**
     * Invoke mint from the SetToken. Mints the specified cToken from the underlying of the specified notional quantity
     */
    function invokeMintCToken(ISetToken _setToken, ICErc20 _cToken, uint256 _mintNotional) external {
        ( , , bytes memory mintCTokenCalldata) = getMintCTokenCalldata(_cToken, _mintNotional);

        require(
            abi.decode(_setToken.invoke(address(_cToken), 0, mintCTokenCalldata), (uint256)) == 0,
            "Mint failed"
        );
    }

    /**
     * Get redeem calldata
     */
    function getRedeemUnderlyingCalldata(
       ICErc20 _cToken,
       uint256 _redeemNotional
    )
        public
        pure
        returns (address, uint256, bytes memory)
    {
        // Compound's redeem function signature is: redeemUnderlying(uint256 _underlyingAmount)
        bytes memory callData = abi.encodeWithSignature("redeemUnderlying(uint256)", _redeemNotional);

        return (address(_cToken), _redeemNotional, callData);
    }

    /**
     * Invoke redeem underlying from the SetToken
     */
    function invokeRedeemUnderlying(ISetToken _setToken, ICErc20 _cToken, uint256 _redeemNotional) external {
        ( , , bytes memory redeemUnderlyingCalldata) = getRedeemUnderlyingCalldata(_cToken, _redeemNotional);
        
        require(
            abi.decode(_setToken.invoke(address(_cToken), 0, redeemUnderlyingCalldata), (uint256)) == 0,
            "Redeem failed"
        );
    }

    /**
     * Get repay borrow calldata
     */
    function getRepayBorrowCEtherCalldata(
       ICErc20 _cToken,
       uint256 _repayNotional
    )
        public
        pure
        returns (address, uint256, bytes memory)
    {
        // Compound's repay ETH function signature is: repayBorrow(). No return, revert on fail
        bytes memory callData = abi.encodeWithSignature("repayBorrow()");

        return (address(_cToken), _repayNotional, callData);
    }

    /**
     * Invoke repay cEther from the SetToken
     */
    function invokeRepayBorrowCEther(ISetToken _setToken, ICErc20 _cEther, uint256 _repayNotional) external {
        ( , , bytes memory repayBorrowCalldata) = getRepayBorrowCEtherCalldata(_cEther, _repayNotional);
        _setToken.invoke(address(_cEther), _repayNotional, repayBorrowCalldata);
    }

    /**
     * Get repay borrow calldata
     */
    function getRepayBorrowCTokenCalldata(
       ICErc20 _cToken,
       uint256 _repayNotional
    )
        public
        pure
        returns (address, uint256, bytes memory)
    {
        // Compound's repay asset function signature is: repayBorrow(uint256 _repayAmount)
        bytes memory callData = abi.encodeWithSignature("repayBorrow(uint256)", _repayNotional);

        return (address(_cToken), _repayNotional, callData);
    }

    /**
     * Invoke repay cToken from the SetToken
     */
    function invokeRepayBorrowCToken(ISetToken _setToken, ICErc20 _cToken, uint256 _repayNotional) external {
        ( , , bytes memory repayBorrowCalldata) = getRepayBorrowCTokenCalldata(_cToken, _repayNotional);
        require(
            abi.decode(_setToken.invoke(address(_cToken), 0, repayBorrowCalldata), (uint256)) == 0,
            "Repay failed"
        );
    }

    /**
     * Get borrow calldata
     */
    function getBorrowCalldata(
       ICErc20 _cToken,
       uint256 _notionalBorrowQuantity
    )
        public
        pure
        returns (address, uint256, bytes memory)
    {
        // Compound's borrow function signature is: borrow(uint256 _borrowAmount). Note: Notional borrow quantity is in units of underlying asset
        bytes memory callData = abi.encodeWithSignature("borrow(uint256)", _notionalBorrowQuantity);

        return (address(_cToken), 0, callData);
    }

    /**
     * Invoke the SetToken to interact with the specified cToken to borrow the cToken's underlying of the specified borrowQuantity.
     */
    function invokeBorrow(ISetToken _setToken, ICErc20 _cToken, uint256 _notionalBorrowQuantity) external {
        ( , , bytes memory borrowCalldata) = getBorrowCalldata(_cToken, _notionalBorrowQuantity);
        require(
            abi.decode(_setToken.invoke(address(_cToken), 0, borrowCalldata), (uint256)) == 0,
            "Borrow failed"
        );
    }
}

Contract ABI

[{"inputs":[{"internalType":"contract ICErc20","name":"_cToken","type":"ICErc20"},{"internalType":"uint256","name":"_notionalBorrowQuantity","type":"uint256"}],"name":"getBorrowCalldata","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"contract ICErc20","name":"_cToken","type":"ICErc20"},{"internalType":"contract IComptroller","name":"_comptroller","type":"IComptroller"}],"name":"getEnterMarketsCalldata","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"contract ICErc20","name":"_cToken","type":"ICErc20"},{"internalType":"contract IComptroller","name":"_comptroller","type":"IComptroller"}],"name":"getExitMarketCalldata","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"contract ICErc20","name":"_cEther","type":"ICErc20"},{"internalType":"uint256","name":"_mintNotional","type":"uint256"}],"name":"getMintCEtherCalldata","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"contract ICErc20","name":"_cToken","type":"ICErc20"},{"internalType":"uint256","name":"_mintNotional","type":"uint256"}],"name":"getMintCTokenCalldata","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"contract ICErc20","name":"_cToken","type":"ICErc20"},{"internalType":"uint256","name":"_redeemNotional","type":"uint256"}],"name":"getRedeemUnderlyingCalldata","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"contract ICErc20","name":"_cToken","type":"ICErc20"},{"internalType":"uint256","name":"_repayNotional","type":"uint256"}],"name":"getRepayBorrowCEtherCalldata","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"contract ICErc20","name":"_cToken","type":"ICErc20"},{"internalType":"uint256","name":"_repayNotional","type":"uint256"}],"name":"getRepayBorrowCTokenCalldata","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"pure","type":"function"}]

610f61610026600b82828239805160001a60731461001957fe5b30600052607381538281f3fe730000000000000000000000000000000000000000301460806040526004361061010a5760003560e01c80636d4aada5116100a1578063aed2dfc911610070578063aed2dfc914610241578063b17faf1c14610261578063beee4b4b14610281578063fa872cfa146102a15761010a565b80636d4aada5146101f55780639653f87914610208578063a2ca57e01461021b578063a753734e1461022e5761010a565b80633c77439c116100dd5780633c77439c1461018f57806343472132146101a25780635d202591146101b5578063690f6561146101d55761010a565b806301fd16b21461010f57806309c09c901461013a57806309c8202b1461015c5780632c66b57e1461017c575b600080fd5b61012261011d366004610c23565b6102c1565b60405161013193929190610d30565b60405180910390f35b81801561014657600080fd5b5061015a610155366004610c4e565b610310565b005b81801561016857600080fd5b5061015a610177366004610c98565b6103e7565b61012261018a366004610beb565b6104af565b61012261019d366004610beb565b610552565b6101226101b0366004610c23565b6105a0565b8180156101c157600080fd5b5061015a6101d0366004610c98565b6105d0565b8180156101e157600080fd5b5061015a6101f0366004610c98565b61066e565b610122610203366004610c23565b610676565b610122610216366004610c23565b6106a6565b610122610229366004610c23565b6106f3565b61012261023c366004610c23565b610740565b81801561024d57600080fd5b5061015a61025c366004610c98565b61078d565b81801561026d57600080fd5b5061015a61027c366004610c4e565b610855565b81801561028d57600080fd5b5061015a61029c366004610c98565b610937565b8180156102ad57600080fd5b5061015a6102bc366004610c98565b6109ff565b600080606080846040516024016102d89190610e97565b60408051601f198184030181529190526020810180516001600160e01b031663317afabb60e21b179052959660009695509350505050565b606061031c8383610552565b6040516347b7819960e11b81529093506001600160a01b0387169250638f6f033291506103529085906000908690600401610d30565b600060405180830381600087803b15801561036c57600080fd5b505af1158015610380573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526103a89190810190610b5f565b8060200190518101906103bb9190610cd8565b156103e15760405162461bcd60e51b81526004016103d890610dd2565b60405180910390fd5b50505050565b60606103f383836106a6565b6040516347b7819960e11b81529093506001600160a01b0387169250638f6f033291506104299086906000908690600401610d30565b600060405180830381600087803b15801561044357600080fd5b505af1158015610457573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261047f9190810190610b5f565b8060200190518101906104929190610cd8565b156103e15760405162461bcd60e51b81526004016103d890610dad565b60408051600180825281830190925260009182916060918291906020808301908036833701905050905085816000815181106104e757fe5b60200260200101906001600160a01b031690816001600160a01b03168152505060608160405160240161051a9190610d60565b60408051601f198184030181529190526020810180516001600160e01b0316631853304760e31b179052959760009750945050505050565b600080606080856040516024016105699190610d1c565b60408051601f198184030181529190526020810180516001600160e01b0316630ede4edd60e41b1790529496600096509350505050565b6040805160048152602481019091526020810180516001600160e01b0316632726cff560e11b1790529192909190565b60606105dc83836105a0565b6040516347b7819960e11b81529093506001600160a01b0387169250638f6f0332915061061190869086908690600401610d30565b600060405180830381600087803b15801561062b57600080fd5b505af115801561063f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526106679190810190610b5f565b5050505050565b60606105dc83835b6040805160048152602481019091526020810180516001600160e01b0316631249c58b60e01b1790529192909190565b600080606080846040516024016106bd9190610e97565b60408051601f198184030181529190526020810180516001600160e01b031663140e25ad60e31b17905295969495949350505050565b6000806060808460405160240161070a9190610e97565b60408051601f198184030181529190526020810180516001600160e01b031663852a12e360e01b17905295969495949350505050565b600080606080846040516024016107579190610e97565b60408051601f198184030181529190526020810180516001600160e01b031663073a938160e11b17905295969495949350505050565b606061079983836106f3565b6040516347b7819960e11b81529093506001600160a01b0387169250638f6f033291506107cf9086906000908690600401610d30565b600060405180830381600087803b1580156107e957600080fd5b505af11580156107fd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526108259190810190610b5f565b8060200190518101906108389190610cd8565b156103e15760405162461bcd60e51b81526004016103d890610e23565b606061086183836104af565b925050506060846001600160a01b0316638f6f0332846000856040518463ffffffff1660e01b815260040161089893929190610d30565b600060405180830381600087803b1580156108b257600080fd5b505af11580156108c6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526108ee9190810190610b5f565b8060200190518101906109019190610ac7565b90508060008151811061091057fe5b60200260200101516000146106675760405162461bcd60e51b81526004016103d890610dfa565b606061094383836102c1565b6040516347b7819960e11b81529093506001600160a01b0387169250638f6f033291506109799086906000908690600401610d30565b600060405180830381600087803b15801561099357600080fd5b505af11580156109a7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526109cf9190810190610b5f565b8060200190518101906109e29190610cd8565b156103e15760405162461bcd60e51b81526004016103d890610e70565b6060610a0b8383610740565b6040516347b7819960e11b81529093506001600160a01b0387169250638f6f03329150610a419086906000908690600401610d30565b600060405180830381600087803b158015610a5b57600080fd5b505af1158015610a6f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610a979190810190610b5f565b806020019051810190610aaa9190610cd8565b156103e15760405162461bcd60e51b81526004016103d890610e4a565b60006020808385031215610ad9578182fd5b825167ffffffffffffffff811115610aef578283fd5b80840185601f820112610b00578384fd5b80519150610b15610b1083610ec7565b610ea0565b8281528381019082850185850284018601891015610b31578687fd5b8693505b84841015610b53578051835260019390930192918501918501610b35565b50979650505050505050565b600060208284031215610b70578081fd5b815167ffffffffffffffff80821115610b87578283fd5b81840185601f820112610b98578384fd5b8051925081831115610ba8578384fd5b610bbb601f8401601f1916602001610ea0565b9150828252856020848301011115610bd1578384fd5b610be2836020840160208401610ee7565b50949350505050565b60008060408385031215610bfd578081fd5b8235610c0881610f13565b91506020830135610c1881610f13565b809150509250929050565b60008060408385031215610c35578182fd5b8235610c4081610f13565b946020939093013593505050565b600080600060608486031215610c62578081fd5b8335610c6d81610f13565b92506020840135610c7d81610f13565b91506040840135610c8d81610f13565b809150509250925092565b600080600060608486031215610cac578283fd5b8335610cb781610f13565b92506020840135610cc781610f13565b929592945050506040919091013590565b600060208284031215610ce9578081fd5b5051919050565b60008151808452610d08816020860160208601610ee7565b601f01601f19169290920160200192915050565b6001600160a01b0391909116815260200190565b600060018060a01b038516825283602083015260606040830152610d576060830184610cf0565b95945050505050565b6020808252825182820181905260009190848201906040850190845b81811015610da15783516001600160a01b031683529284019291840191600101610d7c565b50909695505050505050565b6020808252600b908201526a135a5b9d0819985a5b195960aa1b604082015260600190565b6020808252600e908201526d115e1a5d1a5b99c819985a5b195960921b604082015260600190565b6020808252600f908201526e115b9d195c9a5b99c819985a5b1959608a1b604082015260600190565b6020808252600d908201526c14995919595b4819985a5b1959609a1b604082015260600190565b6020808252600c908201526b14995c185e4819985a5b195960a21b604082015260600190565b6020808252600d908201526c109bdc9c9bddc819985a5b1959609a1b604082015260600190565b90815260200190565b60405181810167ffffffffffffffff81118282101715610ebf57600080fd5b604052919050565b600067ffffffffffffffff821115610edd578081fd5b5060209081020190565b60005b83811015610f02578181015183820152602001610eea565b838111156103e15750506000910152565b6001600160a01b0381168114610f2857600080fd5b5056fea2646970667358221220b3f851e11a6cb783dfe92dd9d73096427b54e43a4d14fb5b5ecfa21ed59e464764736f6c634300060a0033

Deployed ByteCode Sourcemap

15004:7858:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21843:493;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;16743:369;;;;;;;;;;-1:-1:-1;16743:369:0;;;;;;;;:::i;:::-;;18618:360;;;;;;;;;;-1:-1:-1;18618:360:0;;;;;;;;:::i;15143:554::-;;;;;;;;;:::i;16242:434::-;;;;;;;;;:::i;20028:431::-;;;;;;;;;:::i;20531:300::-;;;;;;;;;;-1:-1:-1;20531:300:0;;;;;;;;:::i;17669:283::-;;;;;;;;;;-1:-1:-1;17669:283:0;;;;;;;;:::i;17185:413::-;;;;;;;;;:::i;18025:446::-;;;;;;;;;:::i;19032:461::-;;;;;;;;;:::i;20891:449::-;;;;;;;;;:::i;19570:398::-;;;;;;;;;;-1:-1:-1;19570:398:0;;;;;;;;:::i;15766:403::-;;;;;;;;;;-1:-1:-1;15766:403:0;;;;;;;;:::i;22495:364::-;;;;;;;;;;-1:-1:-1;22495:364:0;;;;;;;;:::i;21412:377::-;;;;;;;;;;-1:-1:-1;21412:377:0;;;;;;;;:::i;21843:493::-;21991:7;22000;22009:12;22186:21;22253:23;22210:67;;;;;;;;;;;;;-1:-1:-1;;22210:67:0;;;;;;;;;;;;;;-1:-1:-1;;;;;22210:67:0;-1:-1:-1;;;22210:67:0;;;22306:7;;-1:-1:-1;;22210:67:0;-1:-1:-1;22306:7:0;-1:-1:-1;;;;21843:493:0:o;16743:369::-;16860:31;16895:44;16917:7;16926:12;16895:21;:44::i;:::-;16983:62;;-1:-1:-1;;;16983:62:0;;16854:85;;-1:-1:-1;;;;;;16983:16:0;;;-1:-1:-1;16983:16:0;;-1:-1:-1;16983:62:0;;17008:12;;17023:1;;16854:85;;16983:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;16983:62:0;;;;;;;;;;;;;;16972:85;;;;;;;;;;;;;;:90;16950:154;;;;-1:-1:-1;;;16950:154:0;;;;;;;;;;;;;;;;;16743:369;;;;:::o;18618:360::-;18731:31;18766:45;18788:7;18797:13;18766:21;:45::i;:::-;18857:57;;-1:-1:-1;;;18857:57:0;;18725:86;;-1:-1:-1;;;;;;18857:16:0;;;-1:-1:-1;18857:16:0;;-1:-1:-1;18857:57:0;;18882:7;;18892:1;;18725:86;;18857:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;18857:57:0;;;;;;;;;;;;;;18846:80;;;;;;;;;;;;;;:85;18824:146;;;;-1:-1:-1;;;18824:146:0;;;;;;;;15143:554;15375:16;;;15389:1;15375:16;;;;;;;;;15293:7;;;;15311:12;;;;15375:16;;;;;;;;;;;;-1:-1:-1;15375:16:0;15341:50;;15430:7;15402:14;15417:1;15402:17;;;;;;;;;;;;;:36;-1:-1:-1;;;;;15402:36:0;;;-1:-1:-1;;;;;15402:36:0;;;;;15543:21;15618:14;15567:66;;;;;;;;;;;;;-1:-1:-1;;15567:66:0;;;;;;;;;;;;;;-1:-1:-1;;;;;15567:66:0;-1:-1:-1;;;15567:66:0;;;15662:12;;-1:-1:-1;;;15662:12:0;-1:-1:-1;;;;;15143:554:0:o;16242:434::-;16390:7;16399;16408:12;16524:21;16603:7;16548:64;;;;;;;;;;;;;-1:-1:-1;;16548:64:0;;;;;;;;;;;;;;-1:-1:-1;;;;;16548:64:0;-1:-1:-1;;;16548:64:0;;;16641:12;;-1:-1:-1;;;16641:12:0;-1:-1:-1;;;;16242:434:0:o;20028:431::-;20347:40;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;20347:40:0;-1:-1:-1;;;20347:40:0;;;20416:7;;20426:14;;20347:40;20028:431::o;20531:300::-;20652:32;20688:53;20717:7;20726:14;20688:28;:53::i;:::-;20752:71;;-1:-1:-1;;;20752:71:0;;20646:95;;-1:-1:-1;;;;;;20752:16:0;;;-1:-1:-1;20752:16:0;;-1:-1:-1;20752:71:0;;20777:7;;20787:14;;20646:95;;20752:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;20752:71:0;;;;;;;;;;;;;;;20531:300;;;;:::o;17669:283::-;17782:31;17817:45;17839:7;17848:13;17185:413;17494:33;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;17494:33:0;-1:-1:-1;;;17494:33:0;;;17556:7;;17566:13;;17494:33;17185:413::o;18025:446::-;18167:7;18176;18185:12;18321:21;18386:13;18345:55;;;;;;;;;;;;;-1:-1:-1;;18345:55:0;;;;;;;;;;;;;;-1:-1:-1;;;;;18345:55:0;-1:-1:-1;;;18345:55:0;;;18429:7;;18439:13;;18345:55;18429:7;-1:-1:-1;;;;18025:446:0:o;19032:461::-;19182:7;19191;19200:12;19327:21;19404:15;19351:69;;;;;;;;;;;;;-1:-1:-1;;19351:69:0;;;;;;;;;;;;;;-1:-1:-1;;;;;19351:69:0;-1:-1:-1;;;19351:69:0;;;19449:7;;19459:15;;19351:69;19449:7;-1:-1:-1;;;;19032:461:0:o;20891:449::-;21041:7;21050;21059:12;21181:21;21253:14;21205:63;;;;;;;;;;;;;-1:-1:-1;;21205:63:0;;;;;;;;;;;;;;-1:-1:-1;;;;;21205:63:0;-1:-1:-1;;;21205:63:0;;;21297:7;;21307:14;;21205:63;21297:7;-1:-1:-1;;;;20891:449:0:o;19570:398::-;19691:37;19732:53;19760:7;19769:15;19732:27;:53::i;:::-;19839:63;;-1:-1:-1;;;19839:63:0;;19685:100;;-1:-1:-1;;;;;;19839:16:0;;;-1:-1:-1;19839:16:0;;-1:-1:-1;19839:63:0;;19864:7;;19874:1;;19685:100;;19839:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;19839:63:0;;;;;;;;;;;;;;19828:86;;;;;;;;;;;;;;:91;19806:154;;;;-1:-1:-1;;;19806:154:0;;;;;;;;15766:403;15885:33;15922:46;15946:7;15955:12;15922:23;:46::i;:::-;15879:89;;;;15981:29;16024:9;-1:-1:-1;;;;;16024:16:0;;16049:12;16064:1;16067:20;16024:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;16024:64:0;;;;;;;;;;;;;;16013:89;;;;;;;;;;;;;;15981:121;;16121:12;16134:1;16121:15;;;;;;;;;;;;;;16140:1;16121:20;16113:48;;;;-1:-1:-1;;;16113:48:0;;;;;;;;22495:364;22614:27;22645:51;22663:7;22672:23;22645:17;:51::i;:::-;22740:53;;-1:-1:-1;;;22740:53:0;;22608:88;;-1:-1:-1;;;;;;22740:16:0;;;-1:-1:-1;22740:16:0;;-1:-1:-1;22740:53:0;;22765:7;;22775:1;;22608:88;;22740:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;22740:53:0;;;;;;;;;;;;;;22729:76;;;;;;;;;;;;;;:81;22707:144;;;;-1:-1:-1;;;22707:144:0;;;;;;;;21412:377;21533:32;21569:53;21598:7;21607:14;21569:28;:53::i;:::-;21666:58;;-1:-1:-1;;;21666:58:0;;21527:95;;-1:-1:-1;;;;;;21666:16:0;;;-1:-1:-1;21666:16:0;;-1:-1:-1;21666:58:0;;21691:7;;21701:1;;21527:95;;21666:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;21666:58:0;;;;;;;;;;;;;;21655:81;;;;;;;;;;;;;;:86;21633:148;;;;-1:-1:-1;;;21633:148:0;;;;;;;;1997:392:-1;;2137:2;;2125:9;2116:7;2112:23;2108:32;2105:2;;;-1:-1;;2143:12;2105:2;2194:17;2188:24;2232:18;2224:6;2221:30;2218:2;;;-1:-1;;2254:12;2218:2;2356:6;2345:9;2341:22;151:3;144:4;136:6;132:17;128:27;118:2;;-1:-1;;159:12;118:2;199:6;193:13;179:27;;221:80;236:64;293:6;236:64;;;221:80;;;329:21;;;386:14;;;;361:17;;;475;;;466:27;;;;463:36;-1:-1;460:2;;;-1:-1;;502:12;460:2;-1:-1;528:10;;522:217;547:6;544:1;541:13;522:217;;;1934:13;;615:61;;569:1;562:9;;;;;690:14;;;;718;;522:217;;;-1:-1;2274:99;2099:290;-1:-1;;;;;;;2099:290;2396:360;;2520:2;2508:9;2499:7;2495:23;2491:32;2488:2;;;-1:-1;;2526:12;2488:2;2577:17;2571:24;2615:18;;2607:6;2604:30;2601:2;;;-1:-1;;2637:12;2601:2;2723:6;2712:9;2708:22;866:3;859:4;851:6;847:17;843:27;833:2;;-1:-1;;874:12;833:2;914:6;908:13;894:27;;2615:18;15092:6;15089:30;15086:2;;;-1:-1;;15122:12;15086:2;936:64;15195:9;15176:17;;-1:-1;;15172:33;2520:2;15253:15;936:64;;;927:73;;1020:6;1013:5;1006:21;1124:3;2520:2;1115:6;1048;1106:16;;1103:25;1100:2;;;-1:-1;;1131:12;1100:2;1151:39;1183:6;2520:2;1082:5;1078:16;2520:2;1048:6;1044:17;1151:39;;;-1:-1;2657:83;2482:274;-1:-1;;;;2482:274;2763:436;;;2919:2;2907:9;2898:7;2894:23;2890:32;2887:2;;;-1:-1;;2925:12;2887:2;1299:6;1286:20;1311:48;1353:5;1311:48;;;2977:78;-1:-1;3092:2;3151:22;;1458:20;1483:53;1458:20;1483:53;;;3100:83;;;;2881:318;;;;;;3206:396;;;3342:2;3330:9;3321:7;3317:23;3313:32;3310:2;;;-1:-1;;3348:12;3310:2;1299:6;1286:20;1311:48;1353:5;1311:48;;;3400:78;3515:2;3554:22;;;;1786:20;;-1:-1;;;3304:298;3609:595;;;;3799:2;3787:9;3778:7;3774:23;3770:32;3767:2;;;-1:-1;;3805:12;3767:2;1645:6;1632:20;1657:50;1701:5;1657:50;;;3857:80;-1:-1;3974:2;4028:22;;1286:20;1311:48;1286:20;1311:48;;;3982:78;-1:-1;4097:2;4156:22;;1458:20;1483:53;1458:20;1483:53;;;4105:83;;;;3761:443;;;;;;4211:555;;;;4381:2;4369:9;4360:7;4356:23;4352:32;4349:2;;;-1:-1;;4387:12;4349:2;1645:6;1632:20;1657:50;1701:5;1657:50;;;4439:80;-1:-1;4556:2;4610:22;;1286:20;1311:48;1286:20;1311:48;;;4343:423;;4564:78;;-1:-1;;;4679:2;4718:22;;;;1786:20;;4343:423;4773:263;;4888:2;4876:9;4867:7;4863:23;4859:32;4856:2;;;-1:-1;;4894:12;4856:2;-1:-1;1934:13;;4850:186;-1:-1;4850:186;6312:343;;6454:5;15546:12;15961:6;15956:3;15949:19;6547:52;6592:6;15998:4;15993:3;15989:14;15998:4;6573:5;6569:16;6547:52;;;15195:9;17658:14;-1:-1;;17654:28;6611:39;;;;15998:4;6611:39;;6402:253;-1:-1;;6402:253;9357:222;-1:-1;;;;;17045:54;;;;5286:37;;9484:2;9469:18;;9455:124;9586:544;;2232:18;;17056:42;;;17049:5;17045:54;5293:3;5286:37;17277:24;9967:2;9956:9;9952:18;7107:58;9795:2;10004;9993:9;9989:18;9982:48;10044:76;9795:2;9784:9;9780:18;10106:6;10044:76;;;10036:84;9766:364;-1:-1;;;;;9766:364;11239:370;11416:2;11430:47;;;15546:12;;11401:18;;;15949:19;;;11239:370;;11416:2;15400:14;;;;15989;;;;11239:370;6022:260;6047:6;6044:1;6041:13;6022:260;;;6108:13;;-1:-1;;;;;17045:54;5286:37;;15804:14;;;;5197;;;;2232:18;6062:9;6022:260;;;-1:-1;11483:116;;11387:222;-1:-1;;;;;;11387:222;11616:416;11816:2;11830:47;;;7402:2;11801:18;;;15949:19;-1:-1;;;15989:14;;;7418:34;7471:12;;;11787:245;12039:416;12239:2;12253:47;;;7722:2;12224:18;;;15949:19;-1:-1;;;15989:14;;;7738:37;7794:12;;;12210:245;12462:416;12662:2;12676:47;;;8045:2;12647:18;;;15949:19;-1:-1;;;15989:14;;;8061:38;8118:12;;;12633:245;12885:416;13085:2;13099:47;;;8369:2;13070:18;;;15949:19;-1:-1;;;15989:14;;;8385:36;8440:12;;;13056:245;13308:416;13508:2;13522:47;;;8691:2;13493:18;;;15949:19;-1:-1;;;15989:14;;;8707:35;8761:12;;;13479:245;13731:416;13931:2;13945:47;;;9012:2;13916:18;;;15949:19;-1:-1;;;15989:14;;;9028:36;9083:12;;;13902:245;14154:222;9180:37;;;14281:2;14266:18;;14252:124;14383:256;14445:2;14439:9;14471:17;;;14546:18;14531:34;;14567:22;;;14528:62;14525:2;;;14603:1;;14593:12;14525:2;14445;14612:22;14423:216;;-1:-1;14423:216;14646:304;;14805:18;14797:6;14794:30;14791:2;;;-1:-1;;14827:12;14791:2;-1:-1;14872:4;14860:17;;;14925:15;;14728:222;17314:268;17379:1;17386:101;17400:6;17397:1;17394:13;17386:101;;;17467:11;;;17461:18;17448:11;;;17441:39;17422:2;17415:10;17386:101;;;17502:6;17499:1;17496:13;17493:2;;;-1:-1;;17379:1;17549:16;;17542:27;17363:219;17695:147;-1:-1;;;;;17045:54;;17769:50;;17759:2;;17833:1;;17823:12;17759:2;17753:89;

Swarm Source

ipfs://b3f851e11a6cb783dfe92dd9d73096427b54e43a4d14fb5b5ecfa21ed59e4647
Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading