ETH Price: $3,476.61 (+4.96%)

Contract

0x6684977bBED67e101BB80Fc07fCcfba655c0a64F
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Convert164689862023-01-23 10:43:59670 days ago1674470639IN
0x6684977b...655c0a64F
0 ETH0.0028645813.2
Convert164689072023-01-23 10:28:11670 days ago1674469691IN
0x6684977b...655c0a64F
0 ETH0.0030552914
Convert155727692022-09-20 6:00:35795 days ago1663653635IN
0x6684977b...655c0a64F
0 ETH0.004493811.00347058
Convert155591552022-09-18 8:10:35797 days ago1663488635IN
0x6684977b...655c0a64F
0 ETH0.0026829210.43619004
Convert155308502022-09-14 3:58:23801 days ago1663127903IN
0x6684977b...655c0a64F
0 ETH0.00154425.92631948
Convert113723652020-12-02 10:00:081452 days ago1606903208IN
0x6684977b...655c0a64F
0 ETH0.0064630522
Convert113694072020-12-01 22:36:011452 days ago1606862161IN
0x6684977b...655c0a64F
0 ETH0.0081478226
Convert113693982020-12-01 22:34:201452 days ago1606862060IN
0x6684977b...655c0a64F
0 ETH0.0080012426
Convert113693912020-12-01 22:33:161452 days ago1606861996IN
0x6684977b...655c0a64F
0 ETH0.0074424426
Convert113693832020-12-01 22:30:251452 days ago1606861825IN
0x6684977b...655c0a64F
0 ETH0.0081880726
Convert113693652020-12-01 22:26:271452 days ago1606861587IN
0x6684977b...655c0a64F
0 ETH0.0077940726
Convert113691432020-12-01 21:30:171452 days ago1606858217IN
0x6684977b...655c0a64F
0 ETH0.0050391917
Convert113690352020-12-01 21:09:121452 days ago1606856952IN
0x6684977b...655c0a64F
0 ETH0.0050425517
Convert113551252020-11-29 18:04:071454 days ago1606673047IN
0x6684977b...655c0a64F
0 ETH0.0042116613
Convert113551092020-11-29 18:00:221454 days ago1606672822IN
0x6684977b...655c0a64F
0 ETH0.0038683914
Convert113549652020-11-29 17:26:101454 days ago1606670770IN
0x6684977b...655c0a64F
0 ETH0.005273517.00000145
Convert113549642020-11-29 17:26:021454 days ago1606670762IN
0x6684977b...655c0a64F
0 ETH0.0062784417.00000145
Convert113549512020-11-29 17:23:151454 days ago1606670595IN
0x6684977b...655c0a64F
0 ETH0.005491418
Convert113549502020-11-29 17:23:021454 days ago1606670582IN
0x6684977b...655c0a64F
0 ETH0.0054069118
Convert113549502020-11-29 17:23:021454 days ago1606670582IN
0x6684977b...655c0a64F
0 ETH0.0072755118
Convert113549482020-11-29 17:22:571454 days ago1606670577IN
0x6684977b...655c0a64F
0 ETH0.0073871618
Convert113549472020-11-29 17:22:311454 days ago1606670551IN
0x6684977b...655c0a64F
0 ETH0.0052509618
Convert113549472020-11-29 17:22:311454 days ago1606670551IN
0x6684977b...655c0a64F
0 ETH0.0054272118
Convert113549472020-11-29 17:22:311454 days ago1606670551IN
0x6684977b...655c0a64F
0 ETH0.0054466518
Convert113549472020-11-29 17:22:311454 days ago1606670551IN
0x6684977b...655c0a64F
0 ETH0.0056586918
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SushiMaker

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-09-10
*/

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol



pragma solidity ^0.6.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: @openzeppelin/contracts/math/SafeMath.sol



pragma solidity ^0.6.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, 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) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * 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);
        uint256 c = a - b;

        return c;
    }

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

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts 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) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts 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) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

// File: @openzeppelin/contracts/utils/Address.sol



pragma solidity ^0.6.2;

/**
 * @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) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @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");
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        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: @openzeppelin/contracts/token/ERC20/SafeERC20.sol



pragma solidity ^0.6.0;




/**
 * @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: contracts/uniswapv2/interfaces/IUniswapV2ERC20.sol

pragma solidity >=0.5.0;

interface IUniswapV2ERC20 {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;
}

// File: contracts/uniswapv2/interfaces/IUniswapV2Pair.sol

pragma solidity >=0.5.0;

interface IUniswapV2Pair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;

    event Mint(address indexed sender, uint amount0, uint amount1);
    event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
    event Swap(
        address indexed sender,
        uint amount0In,
        uint amount1In,
        uint amount0Out,
        uint amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint);
    function factory() external view returns (address);
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
    function price0CumulativeLast() external view returns (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);

    function mint(address to) external returns (uint liquidity);
    function burn(address to) external returns (uint amount0, uint amount1);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
    function skim(address to) external;
    function sync() external;

    function initialize(address, address) external;
}

// File: contracts/uniswapv2/interfaces/IUniswapV2Factory.sol

pragma solidity >=0.5.0;

interface IUniswapV2Factory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);

    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);
    function migrator() external view returns (address);

    function getPair(address tokenA, address tokenB) external view returns (address pair);
    function allPairs(uint) external view returns (address pair);
    function allPairsLength() external view returns (uint);

    function createPair(address tokenA, address tokenB) external returns (address pair);

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
    function setMigrator(address) external;
}

// File: contracts/SushiMaker.sol

pragma solidity 0.6.12;








contract SushiMaker {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    IUniswapV2Factory public factory;
    address public bar;
    address public sushi;
    address public weth;

    constructor(IUniswapV2Factory _factory, address _bar, address _sushi, address _weth) public {
        factory = _factory;
        sushi = _sushi;
        bar = _bar;
        weth = _weth;
    }

    function convert(address token0, address token1) public {
        // At least we try to make front-running harder to do.
        require(msg.sender == tx.origin, "do not convert from contract");
        IUniswapV2Pair pair = IUniswapV2Pair(factory.getPair(token0, token1));
        pair.transfer(address(pair), pair.balanceOf(address(this)));
        pair.burn(address(this));
        uint256 wethAmount = _toWETH(token0) + _toWETH(token1);
        _toSUSHI(wethAmount);
    }

    function _toWETH(address token) internal returns (uint256) {
        if (token == sushi) {
            uint amount = IERC20(token).balanceOf(address(this));
            _safeTransfer(token, bar, amount);
            return 0;
        }
        if (token == weth) {
            uint amount = IERC20(token).balanceOf(address(this));
            _safeTransfer(token, factory.getPair(weth, sushi), amount);
            return amount;
        }
        IUniswapV2Pair pair = IUniswapV2Pair(factory.getPair(token, weth));
        if (address(pair) == address(0)) {
            return 0;
        }
        (uint reserve0, uint reserve1,) = pair.getReserves();
        address token0 = pair.token0();
        (uint reserveIn, uint reserveOut) = token0 == token ? (reserve0, reserve1) : (reserve1, reserve0);
        uint amountIn = IERC20(token).balanceOf(address(this));
        uint amountInWithFee = amountIn.mul(997);
        uint numerator = amountInWithFee.mul(reserveOut);
        uint denominator = reserveIn.mul(1000).add(amountInWithFee);
        uint amountOut = numerator / denominator;
        (uint amount0Out, uint amount1Out) = token0 == token ? (uint(0), amountOut) : (amountOut, uint(0));
        _safeTransfer(token, address(pair), amountIn);
        pair.swap(amount0Out, amount1Out, factory.getPair(weth, sushi), new bytes(0));
        return amountOut;
    }

    function _toSUSHI(uint256 amountIn) internal {
        IUniswapV2Pair pair = IUniswapV2Pair(factory.getPair(weth, sushi));
        (uint reserve0, uint reserve1,) = pair.getReserves();
        address token0 = pair.token0();
        (uint reserveIn, uint reserveOut) = token0 == weth ? (reserve0, reserve1) : (reserve1, reserve0);
        uint amountInWithFee = amountIn.mul(997);
        uint numerator = amountInWithFee.mul(reserveOut);
        uint denominator = reserveIn.mul(1000).add(amountInWithFee);
        uint amountOut = numerator / denominator;
        (uint amount0Out, uint amount1Out) = token0 == weth ? (uint(0), amountOut) : (amountOut, uint(0));
        pair.swap(amount0Out, amount1Out, bar, new bytes(0));
    }

    function _safeTransfer(address token, address to, uint256 amount) internal {
        IERC20(token).safeTransfer(to, amount);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IUniswapV2Factory","name":"_factory","type":"address"},{"internalType":"address","name":"_bar","type":"address"},{"internalType":"address","name":"_sushi","type":"address"},{"internalType":"address","name":"_weth","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"bar","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token0","type":"address"},{"internalType":"address","name":"token1","type":"address"}],"name":"convert","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"contract IUniswapV2Factory","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sushi","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b506040516111e63803806111e68339818101604052608081101561003357600080fd5b50805160208201516040830151606090930151600080546001600160a01b039485166001600160a01b03199182161790915560028054958516958216959095179094556001805492841692851692909217909155600380549290911691909216179055611141806100a56000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80630a0879031461005c5780633fc8cef314610080578063bd1b820c14610088578063c45a0155146100b8578063febb0f7e146100c0575b600080fd5b6100646100c8565b604080516001600160a01b039092168252519081900360200190f35b6100646100d7565b6100b66004803603604081101561009e57600080fd5b506001600160a01b03813581169160200135166100e6565b005b61006461034d565b61006461035c565b6002546001600160a01b031681565b6003546001600160a01b031681565b33321461013a576040805162461bcd60e51b815260206004820152601c60248201527f646f206e6f7420636f6e766572742066726f6d20636f6e747261637400000000604482015290519081900360640190fd5b600080546040805163e6a4390560e01b81526001600160a01b03868116600483015285811660248301529151919092169163e6a43905916044808301926020929190829003018186803b15801561019057600080fd5b505afa1580156101a4573d6000803e3d6000fd5b505050506040513d60208110156101ba57600080fd5b5051604080516370a0823160e01b815230600482015290519192506001600160a01b0383169163a9059cbb91849184916370a08231916024808301926020929190829003018186803b15801561020f57600080fd5b505afa158015610223573d6000803e3d6000fd5b505050506040513d602081101561023957600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b03909316600484015260248301919091525160448083019260209291908290030181600087803b15801561028a57600080fd5b505af115801561029e573d6000803e3d6000fd5b505050506040513d60208110156102b457600080fd5b50506040805163226bf2d160e21b815230600482015281516001600160a01b038416926389afcb4492602480820193918290030181600087803b1580156102fa57600080fd5b505af115801561030e573d6000803e3d6000fd5b505050506040513d604081101561032457600080fd5b50600090506103328361036b565b61033b8561036b565b019050610347816109cc565b50505050565b6000546001600160a01b031681565b6001546001600160a01b031681565b6002546000906001600160a01b0383811691161415610424576000826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156103d357600080fd5b505afa1580156103e7573d6000803e3d6000fd5b505050506040513d60208110156103fd57600080fd5b505160015490915061041a9084906001600160a01b031683610cf2565b60009150506109c7565b6003546001600160a01b0383811691161415610552576000826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561048957600080fd5b505afa15801561049d573d6000803e3d6000fd5b505050506040513d60208110156104b357600080fd5b50516000546003546002546040805163e6a4390560e01b81526001600160a01b03938416600482015291831660248301525193945061054b938793929092169163e6a4390591604480820192602092909190829003018186803b15801561051957600080fd5b505afa15801561052d573d6000803e3d6000fd5b505050506040513d602081101561054357600080fd5b505183610cf2565b90506109c7565b600080546003546040805163e6a4390560e01b81526001600160a01b03878116600483015292831660248201529051919092169163e6a43905916044808301926020929190829003018186803b1580156105ab57600080fd5b505afa1580156105bf573d6000803e3d6000fd5b505050506040513d60208110156105d557600080fd5b505190506001600160a01b0381166105f15760009150506109c7565b600080826001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561062d57600080fd5b505afa158015610641573d6000803e3d6000fd5b505050506040513d606081101561065757600080fd5b50805160209182015160408051630dfe168160e01b815290516001600160701b0393841696509290911693506000926001600160a01b03871692630dfe1681926004808201939291829003018186803b1580156106b357600080fd5b505afa1580156106c7573d6000803e3d6000fd5b505050506040513d60208110156106dd57600080fd5b505190506000806001600160a01b03808416908916146106fe578385610701565b84845b915091506000886001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561075457600080fd5b505afa158015610768573d6000803e3d6000fd5b505050506040513d602081101561077e57600080fd5b505190506000610790826103e5610d0b565b9050600061079e8285610d0b565b905060006107b8836107b2886103e8610d0b565b90610d6d565b905060008183816107c557fe5b0490506000808e6001600160a01b03168a6001600160a01b0316146107ec578260006107f0565b6000835b915091506107ff8f8e89610cf2565b8c6001600160a01b031663022c0d9f838360008054906101000a90046001600160a01b03166001600160a01b031663e6a43905600360009054906101000a90046001600160a01b0316600260009054906101000a90046001600160a01b03166040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b1580156108ab57600080fd5b505afa1580156108bf573d6000803e3d6000fd5b505050506040513d60208110156108d557600080fd5b50516040805160008082526020820190925290506040518563ffffffff1660e01b815260040180858152602001848152602001836001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610950578181015183820152602001610938565b50505050905090810190601f16801561097d5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15801561099f57600080fd5b505af11580156109b3573d6000803e3d6000fd5b50949f505050505050505050505050505050505b919050565b600080546003546002546040805163e6a4390560e01b81526001600160a01b039384166004820152918316602483015251919092169163e6a43905916044808301926020929190829003018186803b158015610a2757600080fd5b505afa158015610a3b573d6000803e3d6000fd5b505050506040513d6020811015610a5157600080fd5b505160408051630240bc6b60e21b8152905191925060009182916001600160a01b03851691630902f1ac91600480820192606092909190829003018186803b158015610a9c57600080fd5b505afa158015610ab0573d6000803e3d6000fd5b505050506040513d6060811015610ac657600080fd5b50805160209182015160408051630dfe168160e01b815290516001600160701b0393841696509290911693506000926001600160a01b03871692630dfe1681926004808201939291829003018186803b158015610b2257600080fd5b505afa158015610b36573d6000803e3d6000fd5b505050506040513d6020811015610b4c57600080fd5b505160035490915060009081906001600160a01b03808516911614610b72578385610b75565b84845b90925090506000610b88886103e5610d0b565b90506000610b968284610d0b565b90506000610baa836107b2876103e8610d0b565b90506000818381610bb757fe5b600354919004915060009081906001600160a01b038a8116911614610bde57826000610be2565b6000835b600154604080516000808252602082019092529395509193506001600160a01b038f81169363022c0d9f9387938793169190506040518563ffffffff1660e01b815260040180858152602001848152602001836001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610c7c578181015183820152602001610c64565b50505050905090810190601f168015610ca95780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b158015610ccb57600080fd5b505af1158015610cdf573d6000803e3d6000fd5b5050505050505050505050505050505050565b610d066001600160a01b0384168383610dc7565b505050565b600082610d1a57506000610d67565b82820282848281610d2757fe5b0414610d645760405162461bcd60e51b81526004018080602001828103825260218152602001806110c16021913960400191505060405180910390fd5b90505b92915050565b600082820183811015610d64576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610d069084906060610e69826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610ec59092919063ffffffff16565b805190915015610d0657808060200190516020811015610e8857600080fd5b5051610d065760405162461bcd60e51b815260040180806020018281038252602a8152602001806110e2602a913960400191505060405180910390fd5b6060610ed48484600085610edc565b949350505050565b6060610ee785611087565b610f38576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310610f775780518252601f199092019160209182019101610f58565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610fd9576040519150601f19603f3d011682016040523d82523d6000602084013e610fde565b606091505b50915091508115610ff2579150610ed49050565b8051156110025780518082602001fd5b8360405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561104c578181015183820152602001611034565b50505050905090810190601f1680156110795780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610ed457505015159291505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220b9d2ed182939842bc84c30190dbd885be0d4c0c1d379bba9f4e978072c71563d64736f6c634300060c0033000000000000000000000000c0aee478e3658e2610c5f7a4a2e1777ce9e4f2ac0000000000000000000000008798249c2e607446efb7ad49ec89dd1865ff42720000000000000000000000006b3595068778dd592e39a122f4f5a5cf09c90fe2000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100575760003560e01c80630a0879031461005c5780633fc8cef314610080578063bd1b820c14610088578063c45a0155146100b8578063febb0f7e146100c0575b600080fd5b6100646100c8565b604080516001600160a01b039092168252519081900360200190f35b6100646100d7565b6100b66004803603604081101561009e57600080fd5b506001600160a01b03813581169160200135166100e6565b005b61006461034d565b61006461035c565b6002546001600160a01b031681565b6003546001600160a01b031681565b33321461013a576040805162461bcd60e51b815260206004820152601c60248201527f646f206e6f7420636f6e766572742066726f6d20636f6e747261637400000000604482015290519081900360640190fd5b600080546040805163e6a4390560e01b81526001600160a01b03868116600483015285811660248301529151919092169163e6a43905916044808301926020929190829003018186803b15801561019057600080fd5b505afa1580156101a4573d6000803e3d6000fd5b505050506040513d60208110156101ba57600080fd5b5051604080516370a0823160e01b815230600482015290519192506001600160a01b0383169163a9059cbb91849184916370a08231916024808301926020929190829003018186803b15801561020f57600080fd5b505afa158015610223573d6000803e3d6000fd5b505050506040513d602081101561023957600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b03909316600484015260248301919091525160448083019260209291908290030181600087803b15801561028a57600080fd5b505af115801561029e573d6000803e3d6000fd5b505050506040513d60208110156102b457600080fd5b50506040805163226bf2d160e21b815230600482015281516001600160a01b038416926389afcb4492602480820193918290030181600087803b1580156102fa57600080fd5b505af115801561030e573d6000803e3d6000fd5b505050506040513d604081101561032457600080fd5b50600090506103328361036b565b61033b8561036b565b019050610347816109cc565b50505050565b6000546001600160a01b031681565b6001546001600160a01b031681565b6002546000906001600160a01b0383811691161415610424576000826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156103d357600080fd5b505afa1580156103e7573d6000803e3d6000fd5b505050506040513d60208110156103fd57600080fd5b505160015490915061041a9084906001600160a01b031683610cf2565b60009150506109c7565b6003546001600160a01b0383811691161415610552576000826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561048957600080fd5b505afa15801561049d573d6000803e3d6000fd5b505050506040513d60208110156104b357600080fd5b50516000546003546002546040805163e6a4390560e01b81526001600160a01b03938416600482015291831660248301525193945061054b938793929092169163e6a4390591604480820192602092909190829003018186803b15801561051957600080fd5b505afa15801561052d573d6000803e3d6000fd5b505050506040513d602081101561054357600080fd5b505183610cf2565b90506109c7565b600080546003546040805163e6a4390560e01b81526001600160a01b03878116600483015292831660248201529051919092169163e6a43905916044808301926020929190829003018186803b1580156105ab57600080fd5b505afa1580156105bf573d6000803e3d6000fd5b505050506040513d60208110156105d557600080fd5b505190506001600160a01b0381166105f15760009150506109c7565b600080826001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561062d57600080fd5b505afa158015610641573d6000803e3d6000fd5b505050506040513d606081101561065757600080fd5b50805160209182015160408051630dfe168160e01b815290516001600160701b0393841696509290911693506000926001600160a01b03871692630dfe1681926004808201939291829003018186803b1580156106b357600080fd5b505afa1580156106c7573d6000803e3d6000fd5b505050506040513d60208110156106dd57600080fd5b505190506000806001600160a01b03808416908916146106fe578385610701565b84845b915091506000886001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561075457600080fd5b505afa158015610768573d6000803e3d6000fd5b505050506040513d602081101561077e57600080fd5b505190506000610790826103e5610d0b565b9050600061079e8285610d0b565b905060006107b8836107b2886103e8610d0b565b90610d6d565b905060008183816107c557fe5b0490506000808e6001600160a01b03168a6001600160a01b0316146107ec578260006107f0565b6000835b915091506107ff8f8e89610cf2565b8c6001600160a01b031663022c0d9f838360008054906101000a90046001600160a01b03166001600160a01b031663e6a43905600360009054906101000a90046001600160a01b0316600260009054906101000a90046001600160a01b03166040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b1580156108ab57600080fd5b505afa1580156108bf573d6000803e3d6000fd5b505050506040513d60208110156108d557600080fd5b50516040805160008082526020820190925290506040518563ffffffff1660e01b815260040180858152602001848152602001836001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610950578181015183820152602001610938565b50505050905090810190601f16801561097d5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15801561099f57600080fd5b505af11580156109b3573d6000803e3d6000fd5b50949f505050505050505050505050505050505b919050565b600080546003546002546040805163e6a4390560e01b81526001600160a01b039384166004820152918316602483015251919092169163e6a43905916044808301926020929190829003018186803b158015610a2757600080fd5b505afa158015610a3b573d6000803e3d6000fd5b505050506040513d6020811015610a5157600080fd5b505160408051630240bc6b60e21b8152905191925060009182916001600160a01b03851691630902f1ac91600480820192606092909190829003018186803b158015610a9c57600080fd5b505afa158015610ab0573d6000803e3d6000fd5b505050506040513d6060811015610ac657600080fd5b50805160209182015160408051630dfe168160e01b815290516001600160701b0393841696509290911693506000926001600160a01b03871692630dfe1681926004808201939291829003018186803b158015610b2257600080fd5b505afa158015610b36573d6000803e3d6000fd5b505050506040513d6020811015610b4c57600080fd5b505160035490915060009081906001600160a01b03808516911614610b72578385610b75565b84845b90925090506000610b88886103e5610d0b565b90506000610b968284610d0b565b90506000610baa836107b2876103e8610d0b565b90506000818381610bb757fe5b600354919004915060009081906001600160a01b038a8116911614610bde57826000610be2565b6000835b600154604080516000808252602082019092529395509193506001600160a01b038f81169363022c0d9f9387938793169190506040518563ffffffff1660e01b815260040180858152602001848152602001836001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610c7c578181015183820152602001610c64565b50505050905090810190601f168015610ca95780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b158015610ccb57600080fd5b505af1158015610cdf573d6000803e3d6000fd5b5050505050505050505050505050505050565b610d066001600160a01b0384168383610dc7565b505050565b600082610d1a57506000610d67565b82820282848281610d2757fe5b0414610d645760405162461bcd60e51b81526004018080602001828103825260218152602001806110c16021913960400191505060405180910390fd5b90505b92915050565b600082820183811015610d64576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610d069084906060610e69826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610ec59092919063ffffffff16565b805190915015610d0657808060200190516020811015610e8857600080fd5b5051610d065760405162461bcd60e51b815260040180806020018281038252602a8152602001806110e2602a913960400191505060405180910390fd5b6060610ed48484600085610edc565b949350505050565b6060610ee785611087565b610f38576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310610f775780518252601f199092019160209182019101610f58565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610fd9576040519150601f19603f3d011682016040523d82523d6000602084013e610fde565b606091505b50915091508115610ff2579150610ed49050565b8051156110025780518082602001fd5b8360405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561104c578181015183820152602001611034565b50505050905090810190601f1680156110795780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610ed457505015159291505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220b9d2ed182939842bc84c30190dbd885be0d4c0c1d379bba9f4e978072c71563d64736f6c634300060c0033

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

000000000000000000000000c0aee478e3658e2610c5f7a4a2e1777ce9e4f2ac0000000000000000000000008798249c2e607446efb7ad49ec89dd1865ff42720000000000000000000000006b3595068778dd592e39a122f4f5a5cf09c90fe2000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2

-----Decoded View---------------
Arg [0] : _factory (address): 0xC0AEe478e3658e2610c5F7A4A2E1777cE9e4f2Ac
Arg [1] : _bar (address): 0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272
Arg [2] : _sushi (address): 0x6B3595068778DD592e39A122f4f5a5cF09C90fE2
Arg [3] : _weth (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000c0aee478e3658e2610c5f7a4a2e1777ce9e4f2ac
Arg [1] : 0000000000000000000000008798249c2e607446efb7ad49ec89dd1865ff4272
Arg [2] : 0000000000000000000000006b3595068778dd592e39a122f4f5a5cf09c90fe2
Arg [3] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2


Deployed Bytecode Sourcemap

22865:3205:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23024:20;;;:::i;:::-;;;;-1:-1:-1;;;;;23024:20:0;;;;;;;;;;;;;;23051:19;;;:::i;23285:484::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;23285:484:0;;;;;;;;;;:::i;:::-;;22960:32;;;:::i;22999:18::-;;;:::i;23024:20::-;;;-1:-1:-1;;;;;23024:20:0;;:::o;23051:19::-;;;-1:-1:-1;;;;;23051:19:0;;:::o;23285:484::-;23424:10;23438:9;23424:23;23416:64;;;;;-1:-1:-1;;;23416:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;23491:19;23528:7;;:31;;;-1:-1:-1;;;23528:31:0;;-1:-1:-1;;;;;23528:31:0;;;;;;;;;;;;;;;;:7;;;;;:15;;:31;;;;;;;;;;;;;;:7;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;23528:31:0;23600:29;;;-1:-1:-1;;;23600:29:0;;23623:4;23600:29;;;;;;23528:31;;-1:-1:-1;;;;;;23571:13:0;;;;;23528:31;;23571:13;;23600:14;;:29;;;;;23528:31;;23600:29;;;;;;;23571:13;23600:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;23600:29:0;23571:59;;;-1:-1:-1;;;;;;23571:59:0;;;;;;;-1:-1:-1;;;;;23571:59:0;;;;;;;;;;;;;;;;;;;;23600:29;;23571:59;;;;;;;-1:-1:-1;23571:59:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;23641:24:0;;;-1:-1:-1;;;23641:24:0;;23659:4;23641:24;;;;;;-1:-1:-1;;;;;23641:9:0;;;;;:24;;;;;;;;;;;-1:-1:-1;23641:9:0;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;23676:18:0;;-1:-1:-1;23715:15:0;23723:6;23715:7;:15::i;:::-;23697;23705:6;23697:7;:15::i;:::-;:33;23676:54;;23741:20;23750:10;23741:8;:20::i;:::-;23285:484;;;;:::o;22960:32::-;;;-1:-1:-1;;;;;22960:32:0;;:::o;22999:18::-;;;-1:-1:-1;;;;;22999:18:0;;:::o;23777:1399::-;23860:5;;23827:7;;-1:-1:-1;;;;;23851:14:0;;;23860:5;;23851:14;23847:170;;;23882:11;23903:5;-1:-1:-1;;;;;23896:23:0;;23928:4;23896:38;;;;;;;;;;;;;-1:-1:-1;;;;;23896:38:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;23896:38:0;23970:3;;23896:38;;-1:-1:-1;23949:33:0;;23963:5;;-1:-1:-1;;;;;23970:3:0;23896:38;23949:13;:33::i;:::-;24004:1;23997:8;;;;;23847:170;24040:4;;-1:-1:-1;;;;;24031:13:0;;;24040:4;;24031:13;24027:199;;;24061:11;24082:5;-1:-1:-1;;;;;24075:23:0;;24107:4;24075:38;;;;;;;;;;;;;-1:-1:-1;;;;;24075:38:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24075:38:0;24149:7;;24165:4;;24171:5;;24149:28;;;-1:-1:-1;;;24149:28:0;;-1:-1:-1;;;;;24165:4:0;;;24149:28;;;;24171:5;;;24149:28;;;;;24075:38;;-1:-1:-1;24128:58:0;;24142:5;;24149:7;;;;;:15;;:28;;;;;24075:38;;24149:28;;;;;;;;:7;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24149:28:0;24179:6;24128:13;:58::i;:::-;24208:6;-1:-1:-1;24201:13:0;;24027:199;24236:19;24273:7;;24296:4;;24273:28;;;-1:-1:-1;;;24273:28:0;;-1:-1:-1;;;;;24273:28:0;;;;;;;24296:4;;;24273:28;;;;;;:7;;;;;:15;;:28;;;;;;;;;;;;;;:7;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24273:28:0;;-1:-1:-1;;;;;;24317:27:0;;24313:68;;24368:1;24361:8;;;;;24313:68;24392:13;24407;24425:4;-1:-1:-1;;;;;24425:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24425:18:0;;;;;;;;24471:13;;-1:-1:-1;;;24471:13:0;;;;-1:-1:-1;;;;;24391:52:0;;;;-1:-1:-1;24391:52:0;;;;;-1:-1:-1;24454:14:0;;-1:-1:-1;;;;;24471:11:0;;;;;:13;;;;;24425:18;24471:13;;;;;;:11;:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24471:13:0;;-1:-1:-1;24496:14:0;;-1:-1:-1;;;;;24531:15:0;;;;;;;:61;;24573:8;24583;24531:61;;;24550:8;24560;24531:61;24495:97;;;;24603:13;24626:5;-1:-1:-1;;;;;24619:23:0;;24651:4;24619:38;;;;;;;;;;;;;-1:-1:-1;;;;;24619:38:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24619:38:0;;-1:-1:-1;24668:20:0;24691:17;24619:38;24704:3;24691:12;:17::i;:::-;24668:40;-1:-1:-1;24719:14:0;24736:31;24668:40;24756:10;24736:19;:31::i;:::-;24719:48;-1:-1:-1;24778:16:0;24797:40;24821:15;24797:19;:9;24811:4;24797:13;:19::i;:::-;:23;;:40::i;:::-;24778:59;;24848:14;24877:11;24865:9;:23;;;;;;24848:40;;24900:15;24917;24946:5;-1:-1:-1;;;;;24936:15:0;:6;-1:-1:-1;;;;;24936:15:0;;:61;;24978:9;24994:1;24936:61;;;24960:1;24964:9;24936:61;24899:98;;;;25008:45;25022:5;25037:4;25044:8;25008:13;:45::i;:::-;25064:4;-1:-1:-1;;;;;25064:9:0;;25074:10;25086;25098:7;;;;;;;;-1:-1:-1;;;;;25098:7:0;-1:-1:-1;;;;;25098:15:0;;25114:4;;;;;;;;;-1:-1:-1;;;;;25114:4:0;25120:5;;;;;;;;;-1:-1:-1;;;;;25120:5:0;25098:28;;;;;;;;;;;;;-1:-1:-1;;;;;25098:28:0;;;;;;-1:-1:-1;;;;;25098:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25098:28:0;25128:12;;;25138:1;25128:12;;;;;;;;;;;25064:77;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;25064:77:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25159:9:0;;-1:-1:-1;;;;;;;;;;;;;;;;23777:1399:0;;;;:::o;25184:743::-;25240:19;25277:7;;25293:4;;25299:5;;25277:28;;;-1:-1:-1;;;25277:28:0;;-1:-1:-1;;;;;25293:4:0;;;25277:28;;;;25299:5;;;25277:28;;;;;:7;;;;;:15;;:28;;;;;;;;;;;;;;:7;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25277:28:0;25351:18;;;-1:-1:-1;;;25351:18:0;;;;25277:28;;-1:-1:-1;25318:13:0;;;;-1:-1:-1;;;;;25351:16:0;;;;;:18;;;;;;;;;;;;;;;:16;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25351:18:0;;;;;;;;25397:13;;-1:-1:-1;;;25397:13:0;;;;-1:-1:-1;;;;;25317:52:0;;;;-1:-1:-1;25317:52:0;;;;;-1:-1:-1;25380:14:0;;-1:-1:-1;;;;;25397:11:0;;;;;:13;;;;;25351:18;25397:13;;;;;;:11;:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25397:13:0;25467:4;;25397:13;;-1:-1:-1;25422:14:0;;;;-1:-1:-1;;;;;25457:14:0;;;25467:4;;25457:14;:60;;25498:8;25508;25457:60;;;25475:8;25485;25457:60;25421:96;;-1:-1:-1;25421:96:0;-1:-1:-1;25528:20:0;25551:17;:8;25564:3;25551:12;:17::i;:::-;25528:40;-1:-1:-1;25579:14:0;25596:31;25528:40;25616:10;25596:19;:31::i;:::-;25579:48;-1:-1:-1;25638:16:0;25657:40;25681:15;25657:19;:9;25671:4;25657:13;:19::i;:40::-;25638:59;;25708:14;25737:11;25725:9;:23;;;;;25806:4;;25725:23;;;;-1:-1:-1;25760:15:0;;;;-1:-1:-1;;;;;25796:14:0;;;25806:4;;25796:14;:60;;25837:9;25853:1;25796:60;;;25819:1;25823:9;25796:60;25901:3;;25906:12;;;25901:3;25906:12;;;;;;;;;25759:97;;-1:-1:-1;25759:97:0;;-1:-1:-1;;;;;;25867:9:0;;;;;;25759:97;;;;25901:3;;25906:12;;25867:52;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;25867:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25184:743;;;;;;;;;;;;;:::o;25935:132::-;26021:38;-1:-1:-1;;;;;26021:26:0;;26048:2;26052:6;26021:26;:38::i;:::-;25935:132;;;:::o;5082:471::-;5140:7;5385:6;5381:47;;-1:-1:-1;5415:1:0;5408:8;;5381:47;5452:5;;;5456:1;5452;:5;:1;5476:5;;;;;:10;5468:56;;;;-1:-1:-1;;;5468:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5544:1;-1:-1:-1;5082:471:0;;;;;:::o;3728:181::-;3786:7;3818:5;;;3842:6;;;;3834:46;;;;;-1:-1:-1;;;3834:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;15090:177;15200:58;;;-1:-1:-1;;;;;15200:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;15200:58:0;-1:-1:-1;;;15200:58:0;;;15173:86;;15193:5;;17819:23;17845:69;17873:4;17845:69;;;;;;;;;;;;;;;;;17853:5;-1:-1:-1;;;;;17845:27:0;;;:69;;;;;:::i;:::-;17929:17;;17819:95;;-1:-1:-1;17929:21:0;17925:224;;18071:10;18060:30;;;;;;;;;;;;;;;-1:-1:-1;18060:30:0;18052:85;;;;-1:-1:-1;;;18052:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12069:196;12172:12;12204:53;12227:6;12235:4;12241:1;12244:12;12204:22;:53::i;:::-;12197:60;12069:196;-1:-1:-1;;;;12069:196:0:o;13446:979::-;13576:12;13609:18;13620:6;13609:10;:18::i;:::-;13601:60;;;;;-1:-1:-1;;;13601:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;13735:12;13749:23;13776:6;-1:-1:-1;;;;;13776:11:0;13796:8;13807:4;13776:36;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;13776:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13734:78;;;;13827:7;13823:595;;;13858:10;-1:-1:-1;13851:17:0;;-1:-1:-1;13851:17:0;13823:595;13972:17;;:21;13968:439;;14235:10;14229:17;14296:15;14283:10;14279:2;14275:19;14268:44;14183:148;14378:12;14371:20;;-1:-1:-1;;;14371:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8954:619;9014:4;9482:20;;9325:66;9522:23;;;;;;:42;;-1:-1:-1;;9549:15:0;;;9514:51;-1:-1:-1;;8954:619:0:o

Swarm Source

ipfs://b9d2ed182939842bc84c30190dbd885be0d4c0c1d379bba9f4e978072c71563d

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Chain Token Portfolio % Price Amount Value
ETH17.39%$0.80680629.1059$23.48
ETH15.31%$69.90.2958$20.68
ETH14.59%$2,281,836.640.00000863$19.7
ETH9.09%$3,216,710.640.00000382$12.28
ETH6.44%$19.440.4474$8.7
ETH5.79%$2,321,338.440.00000337$7.82
ETH4.23%$184.520.031$5.72
ETH3.27%$42.790.1032$4.42
ETH2.81%$0.029262129.4594$3.79
ETH2.24%$116.210.026$3.02
ETH2.23%$794.220.00379826$3.02
ETH1.84%$9.540.2605$2.49
ETH1.80%$1,323,103.260.00000184$2.43
ETH1.63%$21.1007$2.21
ETH1.48%$30,093.160.00006652$2
ETH1.11%$3,303,635,583.280.000000000453$1.5
ETH1.08%$206.140.00706247$1.46
ETH0.99%$104,218.980.00001284$1.34
ETH0.90%$0.3768763.2313$1.22
ETH0.85%$24.850.0463$1.15
ETH0.73%$2.650.3731$0.9897
ETH0.64%$13.490.0645$0.8703
ETH0.64%$0.03457525.0794$0.8671
ETH0.49%$28,212,432,007.460.000000000023667$0.6677
ETH0.48%$121.410.00534811$0.6493
ETH0.35%$40,939.30.00001152$0.4717
ETH0.25%$5.670.0607$0.344
ETH0.24%$110.140.00297596$0.3277
ETH0.22%$168.10.00173857$0.2922
ETH0.17%$42,879.460.00000543$0.2328
ETH0.17%$2,062,809,833,852.320.0000000000001104$0.2277
ETH0.17%$14,409,279.390.000000015574$0.2244
ETH0.14%$1.040.1813$0.1887
ETH0.14%$110.760.00165318$0.1831
ETH0.07%$7.030.0143$0.1002
Loading...
Loading
[ Download: CSV Export  ]

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