Contract 0x33759cf68a3ab9e8d582d8a4717104848e0fa8b9 2

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xfac4d5a69de77ecf5a34704900e48c3184febeee4aadc31a02f320f302b2fa410x60c0604034866022021-12-01 11:30:40848 days 4 hrs ago0xa9061100d29c3c562a2e2421eb035741c1b42137 IN  Create: ConnectV2InstaPoolV40 ETH0.053564138937 ETH1.212121668
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xed43cb7b4fa30c181cf58291a09664e485604a1e31a6a246a4e8110f78ad444c720714332023-03-21 9:16:00373 days 6 hrs ago 0x6d535c4293122ad664d6247962bf7ab4e22dd5ae 0x33759cf68a3ab9e8d582d8a4717104848e0fa8b90 ETH
0xed43cb7b4fa30c181cf58291a09664e485604a1e31a6a246a4e8110f78ad444c720714332023-03-21 9:16:00373 days 6 hrs ago 0x6d535c4293122ad664d6247962bf7ab4e22dd5ae 0x33759cf68a3ab9e8d582d8a4717104848e0fa8b90 ETH
0xb195a8b85b75b9ce040ab608dcf150f7af70913134a89743a367c20d03fe513e720702832023-03-21 9:11:19373 days 6 hrs ago 0x6d535c4293122ad664d6247962bf7ab4e22dd5ae 0x33759cf68a3ab9e8d582d8a4717104848e0fa8b90 ETH
0xb195a8b85b75b9ce040ab608dcf150f7af70913134a89743a367c20d03fe513e720702832023-03-21 9:11:19373 days 6 hrs ago 0x6d535c4293122ad664d6247962bf7ab4e22dd5ae 0x33759cf68a3ab9e8d582d8a4717104848e0fa8b90 ETH
0xe38d3578848a3aa7b608225c81c458326bed6dc5bdae3aa1663963ba7c185d61719089752023-03-20 21:57:16373 days 17 hrs ago 0x6d535c4293122ad664d6247962bf7ab4e22dd5ae 0x33759cf68a3ab9e8d582d8a4717104848e0fa8b90 ETH
0xe38d3578848a3aa7b608225c81c458326bed6dc5bdae3aa1663963ba7c185d61719089752023-03-20 21:57:16373 days 17 hrs ago 0x6d535c4293122ad664d6247962bf7ab4e22dd5ae 0x33759cf68a3ab9e8d582d8a4717104848e0fa8b90 ETH
0xe2c2feca026cd37bff7e5aeffc40c19dab9a0653a4fb3d1418ec86b3203111ee718991352023-03-20 21:14:44373 days 18 hrs ago 0x6d535c4293122ad664d6247962bf7ab4e22dd5ae 0x33759cf68a3ab9e8d582d8a4717104848e0fa8b90 ETH
0xe2c2feca026cd37bff7e5aeffc40c19dab9a0653a4fb3d1418ec86b3203111ee718991352023-03-20 21:14:44373 days 18 hrs ago 0x6d535c4293122ad664d6247962bf7ab4e22dd5ae 0x33759cf68a3ab9e8d582d8a4717104848e0fa8b90 ETH
0x2fadcb41cfb352407e8a5aa47e6bba8e38240194c97ec4ec591ed8cb04af561a717885752023-03-20 13:36:01374 days 1 hr ago 0x6d535c4293122ad664d6247962bf7ab4e22dd5ae 0x33759cf68a3ab9e8d582d8a4717104848e0fa8b90 ETH
0x2fadcb41cfb352407e8a5aa47e6bba8e38240194c97ec4ec591ed8cb04af561a717885752023-03-20 13:36:01374 days 1 hr ago 0x6d535c4293122ad664d6247962bf7ab4e22dd5ae 0x33759cf68a3ab9e8d582d8a4717104848e0fa8b90 ETH
0x239108ec904987684e91e6861baa76f10d7d1303ac9529dea724180a082a330e717880792023-03-20 13:33:57374 days 2 hrs ago 0x6d535c4293122ad664d6247962bf7ab4e22dd5ae 0x33759cf68a3ab9e8d582d8a4717104848e0fa8b90 ETH
0xa4141c73fac4284c4fa7edbd54bcce204f0d3d0cd703f3e2faf374cdc21d5f51717874872023-03-20 13:31:28374 days 2 hrs ago 0x6d535c4293122ad664d6247962bf7ab4e22dd5ae 0x33759cf68a3ab9e8d582d8a4717104848e0fa8b90 ETH
0xa4141c73fac4284c4fa7edbd54bcce204f0d3d0cd703f3e2faf374cdc21d5f51717874872023-03-20 13:31:28374 days 2 hrs ago 0x6d535c4293122ad664d6247962bf7ab4e22dd5ae 0x33759cf68a3ab9e8d582d8a4717104848e0fa8b90 ETH
0x2716b5274040d13aafa4eaac4184245cf922b554acc5d3f8c575dc3bd6f28ac9715683522023-03-19 22:14:10374 days 17 hrs ago 0x6d535c4293122ad664d6247962bf7ab4e22dd5ae 0x33759cf68a3ab9e8d582d8a4717104848e0fa8b90 ETH
0x2716b5274040d13aafa4eaac4184245cf922b554acc5d3f8c575dc3bd6f28ac9715683522023-03-19 22:14:10374 days 17 hrs ago 0x6d535c4293122ad664d6247962bf7ab4e22dd5ae 0x33759cf68a3ab9e8d582d8a4717104848e0fa8b90 ETH
0x98b996f43d1e28faf6748e885acee1d5d018161f2b06f1ed4d32a2fad2f45c70714354232023-03-19 13:00:36375 days 2 hrs ago 0x3da0ca208e3227641bacf6cf0bde86374be04c36 0x33759cf68a3ab9e8d582d8a4717104848e0fa8b90 ETH
0x98b996f43d1e28faf6748e885acee1d5d018161f2b06f1ed4d32a2fad2f45c70714354232023-03-19 13:00:36375 days 2 hrs ago 0x3da0ca208e3227641bacf6cf0bde86374be04c36 0x33759cf68a3ab9e8d582d8a4717104848e0fa8b90 ETH
0xcda0b9b3d07463d9747ceb8f8745297817d88a49bd2344975d6a7f6e4d13ea5c713294872023-03-19 5:37:51375 days 9 hrs ago 0x6d535c4293122ad664d6247962bf7ab4e22dd5ae 0x33759cf68a3ab9e8d582d8a4717104848e0fa8b90 ETH
0xcda0b9b3d07463d9747ceb8f8745297817d88a49bd2344975d6a7f6e4d13ea5c713294872023-03-19 5:37:51375 days 9 hrs ago 0x6d535c4293122ad664d6247962bf7ab4e22dd5ae 0x33759cf68a3ab9e8d582d8a4717104848e0fa8b90 ETH
0xebf45e285faf292757cd7d92e506759422603da245a5bbca01d3a70a6869f0d3711907182023-03-18 19:36:41375 days 19 hrs ago 0x6d535c4293122ad664d6247962bf7ab4e22dd5ae 0x33759cf68a3ab9e8d582d8a4717104848e0fa8b90 ETH
0xebf45e285faf292757cd7d92e506759422603da245a5bbca01d3a70a6869f0d3711907182023-03-18 19:36:41375 days 19 hrs ago 0x6d535c4293122ad664d6247962bf7ab4e22dd5ae 0x33759cf68a3ab9e8d582d8a4717104848e0fa8b90 ETH
0x602e927cca8bd3f871eed474fae19f63c7e3962569b24e639c3e646c344e82b1711887052023-03-18 19:28:03375 days 20 hrs ago 0x6d535c4293122ad664d6247962bf7ab4e22dd5ae 0x33759cf68a3ab9e8d582d8a4717104848e0fa8b90 ETH
0x602e927cca8bd3f871eed474fae19f63c7e3962569b24e639c3e646c344e82b1711887052023-03-18 19:28:03375 days 20 hrs ago 0x6d535c4293122ad664d6247962bf7ab4e22dd5ae 0x33759cf68a3ab9e8d582d8a4717104848e0fa8b90 ETH
0x4100ab24978baf8e545c75fc253975f32bba989598e77573869cccac425b3b0c710860052023-03-18 12:19:59376 days 3 hrs ago 0x6d535c4293122ad664d6247962bf7ab4e22dd5ae 0x33759cf68a3ab9e8d582d8a4717104848e0fa8b90 ETH
0x4100ab24978baf8e545c75fc253975f32bba989598e77573869cccac425b3b0c710860052023-03-18 12:19:59376 days 3 hrs ago 0x6d535c4293122ad664d6247962bf7ab4e22dd5ae 0x33759cf68a3ab9e8d582d8a4717104848e0fa8b90 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ConnectV2InstaPoolV4

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 10 : main.sol
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;

/**
 * @title Instapool.
 * @dev Inbuilt Flash Loan in DSA
 */

import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import { Address } from "@openzeppelin/contracts/utils/Address.sol";
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import { TokenInterface } from "../../common/interfaces.sol";
import { AccountInterface } from "./interfaces.sol";
import { Stores } from "../../common/stores.sol";
import { Variables } from "./variables.sol";
import { Events } from "./events.sol";

contract LiquidityResolver is Stores, Variables, Events {
    using SafeERC20 for IERC20;

    /**
     * @dev Borrow Flashloan and Cast spells.
     * @notice Borrow Flashloan and Cast spells.
     * @param token Token Address.
     * @param amt Token Amount.
     * @param route Flashloan source route.
     * @param data targets & data for cast.
     * @param extraData to be kept bytes(0) in most cases. Can be useful to decide data for some particular routes
     */
    function flashBorrowAndCast(
        address token,
        uint amt,
        uint route,
        bytes memory data,
        bytes memory extraData
    ) external payable returns (string memory _eventName, bytes memory _eventParam) {
        AccountInterface(address(this)).enable(address(instaPool));
        (string[] memory _targets, bytes[] memory callDatas) = abi.decode(data, (string[], bytes[]));

        bytes memory callData_ = abi.encodeWithSignature("cast(string[],bytes[],address)", _targets, callDatas, address(instaPool));

        address[] memory tokens_ = new address[](1);
        tokens_[0] = token;
        uint[] memory amts_ = new uint[](1);
        amts_[0] = amt;
        instaPool.flashLoan(tokens_, amts_, route, callData_, extraData);

        AccountInterface(address(this)).disable(address(instaPool));

        _eventName = "LogFlashBorrow(address,uint256)";
        _eventParam = abi.encode(token, amt);
    }

    /**
     * @dev Return token to InstaPool.
     * @notice Return token to InstaPool.
     * @param token Token Address.
     * @param amt Token Amount.
     * @param getId Get token amount at this ID from `InstaMemory` Contract.
     * @param setId Set token amount at this ID in `InstaMemory` Contract.
    */
    function flashPayback(
        address token,
        uint amt,
        uint getId,
        uint setId
    ) external payable returns (string memory _eventName, bytes memory _eventParam) {
        uint _amt = getUint(getId, amt);
        
        IERC20 tokenContract = IERC20(token);

        tokenContract.safeTransfer(address(instaPool), _amt);

        setUint(setId, _amt);

        _eventName = "LogFlashPayback(address,uint256)";
        _eventParam = abi.encode(token, amt);
    }

    /**
     * @dev Borrow multi-tokens Flashloan and Cast spells.
     * @notice Borrow multi-tokens Flashloan and Cast spells.
     * @param tokens_ Array of Token Addresses.
     * @param amts_ Array of Token Amounts.
     * @param route Flashloan source route.
     * @param data targets & data for cast.
     * @param extraData to be kept bytes(0) in most cases. Can be useful to decide data for some particular routes
     */
    function flashMultiBorrowAndCast(
        address[] memory tokens_,
        uint[] memory amts_,
        uint route,
        bytes memory data,
        bytes memory extraData
    ) external payable returns (string memory _eventName, bytes memory _eventParam) {
        AccountInterface(address(this)).enable(address(instaPool));
        (string[] memory _targets, bytes[] memory callDatas) = abi.decode(data, (string[], bytes[]));

        bytes memory callData_ = abi.encodeWithSignature("cast(string[],bytes[],address)", _targets, callDatas, address(instaPool));

        instaPool.flashLoan(tokens_, amts_, route, callData_, extraData);

        AccountInterface(address(this)).disable(address(instaPool));
        _eventName = "LogFlashMultiBorrow(address[],uint256[])";
        _eventParam = abi.encode(tokens_, amts_);
    }

    /**
     * @dev Return multi-tokens to InstaPool.
     * @notice Return multi-tokens to InstaPool.
     * @param tokens_ Array of Token Addresses.
     * @param amts_ Array of Token Amounts.
     * @param getIds Array of getId token amounts.
     * @param setIds Array of setId token amounts.
    */
    function flashMultiPayback(
        address[] memory tokens_,
        uint[] memory amts_,
        uint[] memory getIds,
        uint[] memory setIds
    ) external payable returns (string memory _eventName, bytes memory _eventParam) {
        for (uint i = 0; i < tokens_.length; i++) {
            amts_[i] = getUint(getIds[i], amts_[i]);

            IERC20(tokens_[i]).safeTransfer(address(instaPool), amts_[i]);

            setUint(setIds[i], amts_[i]);
        }

        _eventName = "LogFlashMultiPayback(address[],uint256[])";
        _eventParam = abi.encode(tokens_, amts_);
    }

}

contract ConnectV2InstaPoolV4 is LiquidityResolver {
    string public name = "Instapool-v4";
}

File 2 of 10 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "./IERC20.sol";
import "../../math/SafeMath.sol";
import "../../utils/Address.sol";

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

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

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

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

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

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

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

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

File 3 of 10 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 4 of 10 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface 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);
}

File 5 of 10 : interfaces.sol
pragma solidity ^0.7.0;

interface TokenInterface {
    function approve(address, uint256) external;
    function transfer(address, uint) external;
    function transferFrom(address, address, uint) external;
    function deposit() external payable;
    function withdraw(uint) external;
    function balanceOf(address) external view returns (uint);
    function decimals() external view returns (uint);
}

interface MemoryInterface {
    function getUint(uint id) external returns (uint num);
    function setUint(uint id, uint val) external;
}

interface InstaMapping {
    function cTokenMapping(address) external view returns (address);
    function gemJoinMapping(bytes32) external view returns (address);
}

interface AccountInterface {
    function enable(address) external;
    function disable(address) external;
    function isAuth(address) external view returns (bool);
}

File 6 of 10 : interfaces.sol
pragma solidity >=0.7.0;
pragma experimental ABIEncoderV2;

interface InstaFlashV4Interface {
    function flashLoan(address[] memory tokens, uint256[] memory amts, uint route, bytes memory data, bytes memory extraData) external;
}

interface AccountInterface {
    function enable(address) external;
    function disable(address) external;
}

File 7 of 10 : stores.sol
pragma solidity ^0.7.0;

import { MemoryInterface, InstaMapping } from "./interfaces.sol";


abstract contract Stores {

  /**
   * @dev Return ethereum address
   */
  address constant internal ethAddr = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;

  /**
   * @dev Return Wrapped ETH address
   */
  address constant internal wethAddr = 0x82aF49447D8a07e3bd95BD0d56f35241523fBab1;

  /**
   * @dev Return memory variable address
   */
  MemoryInterface constant internal instaMemory = MemoryInterface(0xc109f7Ef06152c3a63dc7254fD861E612d3Ac571);

  /**
   * @dev Get Uint value from InstaMemory Contract.
   */
  function getUint(uint getId, uint val) internal returns (uint returnVal) {
    returnVal = getId == 0 ? val : instaMemory.getUint(getId);
  }

  /**
  * @dev Set Uint value in InstaMemory Contract.
  */
  function setUint(uint setId, uint val) virtual internal {
    if (setId != 0) instaMemory.setUint(setId, val);
  }

}

File 8 of 10 : variables.sol
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;

import { InstaFlashV4Interface } from "./interfaces.sol";

contract Variables {

    /**
    * @dev Instapool contract proxy
    */
    InstaFlashV4Interface public constant instaPool = InstaFlashV4Interface(0x1f882522DF99820dF8e586b6df8bAae2b91a782d);

}

File 9 of 10 : events.sol
pragma solidity >=0.7.0;
pragma experimental ABIEncoderV2;

contract Events {
    event LogFlashBorrow(address token, uint256 tokenAmt);
    event LogFlashPayback(address token, uint256 tokenAmt);

    event LogFlashMultiBorrow(address[] token, uint256[] tokenAmts);
    event LogFlashMultiPayback(address[] token, uint256[] tokenAmts);
}

File 10 of 10 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenAmt","type":"uint256"}],"name":"LogFlashBorrow","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"token","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"tokenAmts","type":"uint256[]"}],"name":"LogFlashMultiBorrow","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"token","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"tokenAmts","type":"uint256[]"}],"name":"LogFlashMultiPayback","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenAmt","type":"uint256"}],"name":"LogFlashPayback","type":"event"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amt","type":"uint256"},{"internalType":"uint256","name":"route","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bytes","name":"extraData","type":"bytes"}],"name":"flashBorrowAndCast","outputs":[{"internalType":"string","name":"_eventName","type":"string"},{"internalType":"bytes","name":"_eventParam","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens_","type":"address[]"},{"internalType":"uint256[]","name":"amts_","type":"uint256[]"},{"internalType":"uint256","name":"route","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bytes","name":"extraData","type":"bytes"}],"name":"flashMultiBorrowAndCast","outputs":[{"internalType":"string","name":"_eventName","type":"string"},{"internalType":"bytes","name":"_eventParam","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens_","type":"address[]"},{"internalType":"uint256[]","name":"amts_","type":"uint256[]"},{"internalType":"uint256[]","name":"getIds","type":"uint256[]"},{"internalType":"uint256[]","name":"setIds","type":"uint256[]"}],"name":"flashMultiPayback","outputs":[{"internalType":"string","name":"_eventName","type":"string"},{"internalType":"bytes","name":"_eventParam","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amt","type":"uint256"},{"internalType":"uint256","name":"getId","type":"uint256"},{"internalType":"uint256","name":"setId","type":"uint256"}],"name":"flashPayback","outputs":[{"internalType":"string","name":"_eventName","type":"string"},{"internalType":"bytes","name":"_eventParam","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"instaPool","outputs":[{"internalType":"contract InstaFlashV4Interface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

60c0604052600c60808190526b125b9cdd185c1bdbdb0b5d8d60a21b60a09081526200002f916000919062000044565b503480156200003d57600080fd5b50620000f0565b828054600181600116156101000203166002900490600052602060002090601f0160209004810192826200007c5760008555620000c7565b82601f106200009757805160ff1916838001178555620000c7565b82800160010185558215620000c7579182015b82811115620000c7578251825591602001919060010190620000aa565b50620000d5929150620000d9565b5090565b5b80821115620000d55760008155600101620000da565b6114a480620001006000396000f3fe6080604052600436106100555760003560e01c806306fdde031461005a578063213980e81461008557806340aa3b2c146100a65780634cb38df5146100b9578063ab4cf226146100cc578063f13fa6be146100ee575b600080fd5b34801561006657600080fd5b5061006f610101565b60405161007c9190611301565b60405180910390f35b610098610093366004610ec2565b61018f565b60405161007c929190611314565b6100986100b4366004610fa2565b61023a565b6100986100c7366004610e3d565b61043f565b3480156100d857600080fd5b506100e16106ea565b60405161007c919061118c565b6100986100fc366004610efa565b610702565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156101875780601f1061015c57610100808354040283529160200191610187565b820191906000526020600020905b81548152906001019060200180831161016a57829003601f168201915b505050505081565b606080600061019e8587610832565b9050866101c96001600160a01b038216731f882522df99820df8e586b6df8baae2b91a782d846108ce565b6101d38583610925565b6040518060400160405280602081526020017f4c6f67466c6173685061796261636b28616464726573732c75696e74323536298152509350878760405160200161021e9291906111a0565b6040516020818303038152906040529250505094509492505050565b604051630b7f436d60e31b815260609081903090635bfa1b689061027690731f882522df99820df8e586b6df8baae2b91a782d9060040161118c565b600060405180830381600087803b15801561029057600080fd5b505af11580156102a4573d6000803e3d6000fd5b50505050600080858060200190518101906102bf9190611019565b9150915060008282731f882522df99820df8e586b6df8baae2b91a782d6040516024016102ee93929190611246565b60408051601f198184030181529181526020820180516001600160e01b03166324c1324d60e21b1790525163095627e960e01b8152909150731f882522df99820df8e586b6df8baae2b91a782d9063095627e990610358908d908d908d9087908d906004016111e7565b600060405180830381600087803b15801561037257600080fd5b505af1158015610386573d6000803e3d6000fd5b505060405163e6c09edf60e01b815230925063e6c09edf91506103c190731f882522df99820df8e586b6df8baae2b91a782d9060040161118c565b600060405180830381600087803b1580156103db57600080fd5b505af11580156103ef573d6000803e3d6000fd5b5050505060405180606001604052806028815260200161141d60289139945089896040516020016104219291906111b9565b60405160208183030381529060405293505050509550959350505050565b604051630b7f436d60e31b815260609081903090635bfa1b689061047b90731f882522df99820df8e586b6df8baae2b91a782d9060040161118c565b600060405180830381600087803b15801561049557600080fd5b505af11580156104a9573d6000803e3d6000fd5b50505050600080858060200190518101906104c49190611019565b9150915060008282731f882522df99820df8e586b6df8baae2b91a782d6040516024016104f393929190611246565b60408051601f19818403018152918152602080830180516001600160e01b03166324c1324d60e21b17905281516001808252818401909352929350600092919082810190803683370190505090508a8160008151811061054f57fe5b6001600160a01b0392909216602092830291909101909101526040805160018082528183019092526000918160200160208202803683370190505090508a8160008151811061059a57fe5b602090810291909101015260405163095627e960e01b8152731f882522df99820df8e586b6df8baae2b91a782d9063095627e9906105e490859085908f9089908f906004016111e7565b600060405180830381600087803b1580156105fe57600080fd5b505af1158015610612573d6000803e3d6000fd5b505060405163e6c09edf60e01b815230925063e6c09edf915061064d90731f882522df99820df8e586b6df8baae2b91a782d9060040161118c565b600060405180830381600087803b15801561066757600080fd5b505af115801561067b573d6000803e3d6000fd5b505050506040518060400160405280601f81526020017f4c6f67466c617368426f72726f7728616464726573732c75696e74323536290081525096508b8b6040516020016106ca9291906111a0565b604051602081830303815290604052955050505050509550959350505050565b731f882522df99820df8e586b6df8baae2b91a782d81565b60608060005b86518110156107e95761074185828151811061072057fe5b602002602001015187838151811061073457fe5b6020026020010151610832565b86828151811061074d57fe5b6020026020010181815250506107b1731f882522df99820df8e586b6df8baae2b91a782d87838151811061077d57fe5b602002602001015189848151811061079157fe5b60200260200101516001600160a01b03166108ce9092919063ffffffff16565b6107e18482815181106107c057fe5b60200260200101518783815181106107d457fe5b6020026020010151610925565b600101610708565b506040518060600160405280602981526020016113ce60299139915085856040516020016108189291906111b9565b604051602081830303815290604052905094509492505050565b600082156108c55773c109f7ef06152c3a63dc7254fd861e612d3ac5716001600160a01b031663a9c70eaa846040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b15801561089457600080fd5b505af11580156108a8573d6000803e3d6000fd5b505050506040513d60208110156108be57600080fd5b50516108c7565b815b9392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526109209084906109a2565b505050565b811561099e5760408051631878f25160e21b81526004810184905260248101839052905173c109f7ef06152c3a63dc7254fd861e612d3ac571916361e3c94491604480830192600092919082900301818387803b15801561098557600080fd5b505af1158015610999573d6000803e3d6000fd5b505050505b5050565b60006109f7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610a539092919063ffffffff16565b80519091501561092057808060200190516020811015610a1657600080fd5b50516109205760405162461bcd60e51b815260040180806020018281038252602a815260200180611445602a913960400191505060405180910390fd5b6060610a628484600085610a6a565b949350505050565b606082471015610aab5760405162461bcd60e51b81526004018080602001828103825260268152602001806113f76026913960400191505060405180910390fd5b610ab485610bc5565b610b05576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b60208310610b435780518252601f199092019160209182019101610b24565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610ba5576040519150601f19603f3d011682016040523d82523d6000602084013e610baa565b606091505b5091509150610bba828286610bcf565b979650505050505050565b803b15155b919050565b60608315610bde5750816108c7565b825115610bee5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610c38578181015183820152602001610c20565b50505050905090810190601f168015610c655780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6000610c86610c818461137b565b611339565b9050828152838383011115610c9a57600080fd5b6108c783602083018461139d565b80356001600160a01b0381168114610bca57600080fd5b600082601f830112610ccf578081fd5b81356020610cdf610c818361135d565b8281528181019085830183850287018401881015610cfb578586fd5b855b85811015610d2057610d0e82610ca8565b84529284019290840190600101610cfd565b5090979650505050505050565b600082601f830112610d3d578081fd5b81516020610d4d610c818361135d565b82815281810190858301855b85811015610d20578151880189603f820112610d73578788fd5b610d848a8783015160408401610c73565b8552509284019290840190600101610d59565b600082601f830112610da7578081fd5b81356020610db7610c818361135d565b8281528181019085830183850287018401881015610dd3578586fd5b855b85811015610d2057813584529284019290840190600101610dd5565b600082601f830112610e01578081fd5b8135610e0f610c818261137b565b818152846020838601011115610e23578283fd5b816020850160208301379081016020019190915292915050565b600080600080600060a08688031215610e54578081fd5b610e5d86610ca8565b94506020860135935060408601359250606086013567ffffffffffffffff80821115610e87578283fd5b610e9389838a01610df1565b93506080880135915080821115610ea8578283fd5b50610eb588828901610df1565b9150509295509295909350565b60008060008060808587031215610ed7578384fd5b610ee085610ca8565b966020860135965060408601359560600135945092505050565b60008060008060808587031215610f0f578384fd5b843567ffffffffffffffff80821115610f26578586fd5b610f3288838901610cbf565b95506020870135915080821115610f47578485fd5b610f5388838901610d97565b94506040870135915080821115610f68578384fd5b610f7488838901610d97565b93506060870135915080821115610f89578283fd5b50610f9687828801610d97565b91505092959194509250565b600080600080600060a08688031215610fb9578283fd5b853567ffffffffffffffff80821115610fd0578485fd5b610fdc89838a01610cbf565b96506020880135915080821115610ff1578485fd5b610ffd89838a01610d97565b9550604088013594506060880135915080821115610e87578283fd5b600080604080848603121561102c578283fd5b835167ffffffffffffffff80821115611043578485fd5b818601915086601f830112611056578485fd5b81516020611066610c818361135d565b82815281810190858301895b858110156110af57815188018d603f82011261108c578b8cfd5b61109c8e878301518c8401610c73565b8552509284019290840190600101611072565b5050918901519197509094505050808311156110c9578384fd5b50506110d785828601610d2d565b9150509250929050565b6001600160a01b03169052565b6000815180845260208085019450808401835b838110156111265781516001600160a01b031687529582019590820190600101611101565b509495945050505050565b6000815180845260208085019450808401835b8381101561112657815187529582019590820190600101611144565b6000815180845261117881602086016020860161139d565b601f01601f19169290920160200192915050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6000604082526111cc60408301856110ee565b82810360208401526111de8185611131565b95945050505050565b600060a082526111fa60a08301886110ee565b828103602084015261120c8188611131565b905085604084015282810360608401526112268186611160565b9050828103608084015261123a8185611160565b98975050505050505050565b60006060820160608352808651808352608085019150602092506080838202860101838901855b8381101561129b57607f19888403018552611289838351611160565b9486019492509085019060010161126d565b50508581038487015287518082528482019350915081840281018401888501865b848110156112ea57601f198484030186526112d8838351611160565b958701959250908601906001016112bc565b50508095505050505050610a6260408301846110e1565b6000602082526108c76020830184611160565b6000604082526113276040830185611160565b82810360208401526111de8185611160565b60405181810167ffffffffffffffff8111828210171561135557fe5b604052919050565b600067ffffffffffffffff82111561137157fe5b5060209081020190565b600067ffffffffffffffff82111561138f57fe5b50601f01601f191660200190565b60005b838110156113b85781810151838201526020016113a0565b838111156113c7576000848401525b5050505056fe4c6f67466c6173684d756c74695061796261636b28616464726573735b5d2c75696e743235365b5d29416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c4c6f67466c6173684d756c7469426f72726f7728616464726573735b5d2c75696e743235365b5d295361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212202ef039eba066fe6af49658c8451a196f1c130e821c57f1b77659baa8d5ab016264736f6c63430007060033

Deployed Bytecode

0x6080604052600436106100555760003560e01c806306fdde031461005a578063213980e81461008557806340aa3b2c146100a65780634cb38df5146100b9578063ab4cf226146100cc578063f13fa6be146100ee575b600080fd5b34801561006657600080fd5b5061006f610101565b60405161007c9190611301565b60405180910390f35b610098610093366004610ec2565b61018f565b60405161007c929190611314565b6100986100b4366004610fa2565b61023a565b6100986100c7366004610e3d565b61043f565b3480156100d857600080fd5b506100e16106ea565b60405161007c919061118c565b6100986100fc366004610efa565b610702565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156101875780601f1061015c57610100808354040283529160200191610187565b820191906000526020600020905b81548152906001019060200180831161016a57829003601f168201915b505050505081565b606080600061019e8587610832565b9050866101c96001600160a01b038216731f882522df99820df8e586b6df8baae2b91a782d846108ce565b6101d38583610925565b6040518060400160405280602081526020017f4c6f67466c6173685061796261636b28616464726573732c75696e74323536298152509350878760405160200161021e9291906111a0565b6040516020818303038152906040529250505094509492505050565b604051630b7f436d60e31b815260609081903090635bfa1b689061027690731f882522df99820df8e586b6df8baae2b91a782d9060040161118c565b600060405180830381600087803b15801561029057600080fd5b505af11580156102a4573d6000803e3d6000fd5b50505050600080858060200190518101906102bf9190611019565b9150915060008282731f882522df99820df8e586b6df8baae2b91a782d6040516024016102ee93929190611246565b60408051601f198184030181529181526020820180516001600160e01b03166324c1324d60e21b1790525163095627e960e01b8152909150731f882522df99820df8e586b6df8baae2b91a782d9063095627e990610358908d908d908d9087908d906004016111e7565b600060405180830381600087803b15801561037257600080fd5b505af1158015610386573d6000803e3d6000fd5b505060405163e6c09edf60e01b815230925063e6c09edf91506103c190731f882522df99820df8e586b6df8baae2b91a782d9060040161118c565b600060405180830381600087803b1580156103db57600080fd5b505af11580156103ef573d6000803e3d6000fd5b5050505060405180606001604052806028815260200161141d60289139945089896040516020016104219291906111b9565b60405160208183030381529060405293505050509550959350505050565b604051630b7f436d60e31b815260609081903090635bfa1b689061047b90731f882522df99820df8e586b6df8baae2b91a782d9060040161118c565b600060405180830381600087803b15801561049557600080fd5b505af11580156104a9573d6000803e3d6000fd5b50505050600080858060200190518101906104c49190611019565b9150915060008282731f882522df99820df8e586b6df8baae2b91a782d6040516024016104f393929190611246565b60408051601f19818403018152918152602080830180516001600160e01b03166324c1324d60e21b17905281516001808252818401909352929350600092919082810190803683370190505090508a8160008151811061054f57fe5b6001600160a01b0392909216602092830291909101909101526040805160018082528183019092526000918160200160208202803683370190505090508a8160008151811061059a57fe5b602090810291909101015260405163095627e960e01b8152731f882522df99820df8e586b6df8baae2b91a782d9063095627e9906105e490859085908f9089908f906004016111e7565b600060405180830381600087803b1580156105fe57600080fd5b505af1158015610612573d6000803e3d6000fd5b505060405163e6c09edf60e01b815230925063e6c09edf915061064d90731f882522df99820df8e586b6df8baae2b91a782d9060040161118c565b600060405180830381600087803b15801561066757600080fd5b505af115801561067b573d6000803e3d6000fd5b505050506040518060400160405280601f81526020017f4c6f67466c617368426f72726f7728616464726573732c75696e74323536290081525096508b8b6040516020016106ca9291906111a0565b604051602081830303815290604052955050505050509550959350505050565b731f882522df99820df8e586b6df8baae2b91a782d81565b60608060005b86518110156107e95761074185828151811061072057fe5b602002602001015187838151811061073457fe5b6020026020010151610832565b86828151811061074d57fe5b6020026020010181815250506107b1731f882522df99820df8e586b6df8baae2b91a782d87838151811061077d57fe5b602002602001015189848151811061079157fe5b60200260200101516001600160a01b03166108ce9092919063ffffffff16565b6107e18482815181106107c057fe5b60200260200101518783815181106107d457fe5b6020026020010151610925565b600101610708565b506040518060600160405280602981526020016113ce60299139915085856040516020016108189291906111b9565b604051602081830303815290604052905094509492505050565b600082156108c55773c109f7ef06152c3a63dc7254fd861e612d3ac5716001600160a01b031663a9c70eaa846040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b15801561089457600080fd5b505af11580156108a8573d6000803e3d6000fd5b505050506040513d60208110156108be57600080fd5b50516108c7565b815b9392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526109209084906109a2565b505050565b811561099e5760408051631878f25160e21b81526004810184905260248101839052905173c109f7ef06152c3a63dc7254fd861e612d3ac571916361e3c94491604480830192600092919082900301818387803b15801561098557600080fd5b505af1158015610999573d6000803e3d6000fd5b505050505b5050565b60006109f7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610a539092919063ffffffff16565b80519091501561092057808060200190516020811015610a1657600080fd5b50516109205760405162461bcd60e51b815260040180806020018281038252602a815260200180611445602a913960400191505060405180910390fd5b6060610a628484600085610a6a565b949350505050565b606082471015610aab5760405162461bcd60e51b81526004018080602001828103825260268152602001806113f76026913960400191505060405180910390fd5b610ab485610bc5565b610b05576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b60208310610b435780518252601f199092019160209182019101610b24565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610ba5576040519150601f19603f3d011682016040523d82523d6000602084013e610baa565b606091505b5091509150610bba828286610bcf565b979650505050505050565b803b15155b919050565b60608315610bde5750816108c7565b825115610bee5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610c38578181015183820152602001610c20565b50505050905090810190601f168015610c655780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6000610c86610c818461137b565b611339565b9050828152838383011115610c9a57600080fd5b6108c783602083018461139d565b80356001600160a01b0381168114610bca57600080fd5b600082601f830112610ccf578081fd5b81356020610cdf610c818361135d565b8281528181019085830183850287018401881015610cfb578586fd5b855b85811015610d2057610d0e82610ca8565b84529284019290840190600101610cfd565b5090979650505050505050565b600082601f830112610d3d578081fd5b81516020610d4d610c818361135d565b82815281810190858301855b85811015610d20578151880189603f820112610d73578788fd5b610d848a8783015160408401610c73565b8552509284019290840190600101610d59565b600082601f830112610da7578081fd5b81356020610db7610c818361135d565b8281528181019085830183850287018401881015610dd3578586fd5b855b85811015610d2057813584529284019290840190600101610dd5565b600082601f830112610e01578081fd5b8135610e0f610c818261137b565b818152846020838601011115610e23578283fd5b816020850160208301379081016020019190915292915050565b600080600080600060a08688031215610e54578081fd5b610e5d86610ca8565b94506020860135935060408601359250606086013567ffffffffffffffff80821115610e87578283fd5b610e9389838a01610df1565b93506080880135915080821115610ea8578283fd5b50610eb588828901610df1565b9150509295509295909350565b60008060008060808587031215610ed7578384fd5b610ee085610ca8565b966020860135965060408601359560600135945092505050565b60008060008060808587031215610f0f578384fd5b843567ffffffffffffffff80821115610f26578586fd5b610f3288838901610cbf565b95506020870135915080821115610f47578485fd5b610f5388838901610d97565b94506040870135915080821115610f68578384fd5b610f7488838901610d97565b93506060870135915080821115610f89578283fd5b50610f9687828801610d97565b91505092959194509250565b600080600080600060a08688031215610fb9578283fd5b853567ffffffffffffffff80821115610fd0578485fd5b610fdc89838a01610cbf565b96506020880135915080821115610ff1578485fd5b610ffd89838a01610d97565b9550604088013594506060880135915080821115610e87578283fd5b600080604080848603121561102c578283fd5b835167ffffffffffffffff80821115611043578485fd5b818601915086601f830112611056578485fd5b81516020611066610c818361135d565b82815281810190858301895b858110156110af57815188018d603f82011261108c578b8cfd5b61109c8e878301518c8401610c73565b8552509284019290840190600101611072565b5050918901519197509094505050808311156110c9578384fd5b50506110d785828601610d2d565b9150509250929050565b6001600160a01b03169052565b6000815180845260208085019450808401835b838110156111265781516001600160a01b031687529582019590820190600101611101565b509495945050505050565b6000815180845260208085019450808401835b8381101561112657815187529582019590820190600101611144565b6000815180845261117881602086016020860161139d565b601f01601f19169290920160200192915050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6000604082526111cc60408301856110ee565b82810360208401526111de8185611131565b95945050505050565b600060a082526111fa60a08301886110ee565b828103602084015261120c8188611131565b905085604084015282810360608401526112268186611160565b9050828103608084015261123a8185611160565b98975050505050505050565b60006060820160608352808651808352608085019150602092506080838202860101838901855b8381101561129b57607f19888403018552611289838351611160565b9486019492509085019060010161126d565b50508581038487015287518082528482019350915081840281018401888501865b848110156112ea57601f198484030186526112d8838351611160565b958701959250908601906001016112bc565b50508095505050505050610a6260408301846110e1565b6000602082526108c76020830184611160565b6000604082526113276040830185611160565b82810360208401526111de8185611160565b60405181810167ffffffffffffffff8111828210171561135557fe5b604052919050565b600067ffffffffffffffff82111561137157fe5b5060209081020190565b600067ffffffffffffffff82111561138f57fe5b50601f01601f191660200190565b60005b838110156113b85781810151838201526020016113a0565b838111156113c7576000848401525b5050505056fe4c6f67466c6173684d756c74695061796261636b28616464726573735b5d2c75696e743235365b5d29416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c4c6f67466c6173684d756c7469426f72726f7728616464726573735b5d2c75696e743235365b5d295361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212202ef039eba066fe6af49658c8451a196f1c130e821c57f1b77659baa8d5ab016264736f6c63430007060033

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