ETH Price: $3,669.65 (+0.81%)

Contract

0x95C69C3220b31b843F1CF20bee5c53FcDE7fC12e
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Convert210113172024-10-21 3:38:5944 days ago1729481939IN
0x95C69C32...cDE7fC12e
0 ETH0.002228526.66761266
Convert195184572024-03-26 11:56:23252 days ago1711454183IN
0x95C69C32...cDE7fC12e
0 ETH0.0057147424.25570858
Convert195040032024-03-24 11:07:23254 days ago1711278443IN
0x95C69C32...cDE7fC12e
0 ETH0.0072807317.92864628
Convert182233402023-09-26 23:50:47434 days ago1695772247IN
0x95C69C32...cDE7fC12e
0 ETH0.0023220810
Convert182229872023-09-26 22:40:11434 days ago1695768011IN
0x95C69C32...cDE7fC12e
0 ETH0.0031408810
Convert182128572023-09-25 12:39:47435 days ago1695645587IN
0x95C69C32...cDE7fC12e
0 ETH0.0023747210
Convert116378022021-01-12 3:46:181422 days ago1610423178IN
0x95C69C32...cDE7fC12e
0 ETH0.0270803686
Convert116377982021-01-12 3:45:321422 days ago1610423132IN
0x95C69C32...cDE7fC12e
0 ETH0.0207124575
Convert116377952021-01-12 3:44:441422 days ago1610423084IN
0x95C69C32...cDE7fC12e
0 ETH0.0186051672
Convert116377862021-01-12 3:43:251422 days ago1610423005IN
0x95C69C32...cDE7fC12e
0 ETH0.02140782
Convert116377842021-01-12 3:42:351422 days ago1610422955IN
0x95C69C32...cDE7fC12e
0 ETH0.0267383673
Convert116377632021-01-12 3:37:161422 days ago1610422636IN
0x95C69C32...cDE7fC12e
0 ETH0.0168473565
Convert116377562021-01-12 3:36:121422 days ago1610422572IN
0x95C69C32...cDE7fC12e
0 ETH0.0199553573
Convert116336722021-01-11 12:41:261422 days ago1610368886IN
0x95C69C32...cDE7fC12e
0 ETH0.03890743108
Convert116330122021-01-11 10:18:071422 days ago1610360287IN
0x95C69C32...cDE7fC12e
0 ETH0.03308613118
Convert116308562021-01-11 2:17:411423 days ago1610331461IN
0x95C69C32...cDE7fC12e
0 ETH0.03364533117
Convert116308362021-01-11 2:13:141423 days ago1610331194IN
0x95C69C32...cDE7fC12e
0 ETH0.03363976123
Convert116308332021-01-11 2:12:501423 days ago1610331170IN
0x95C69C32...cDE7fC12e
0 ETH0.03156021114
Convert116307922021-01-11 2:03:261423 days ago1610330606IN
0x95C69C32...cDE7fC12e
0 ETH0.02963251104
Convert116307892021-01-11 2:02:511423 days ago1610330571IN
0x95C69C32...cDE7fC12e
0 ETH0.02911334104
Convert116307822021-01-11 2:01:281423 days ago1610330488IN
0x95C69C32...cDE7fC12e
0 ETH0.03241054113
Convert116307742021-01-11 1:59:311423 days ago1610330371IN
0x95C69C32...cDE7fC12e
0 ETH0.0308673181
Convert116307572021-01-11 1:54:431423 days ago1610330083IN
0x95C69C32...cDE7fC12e
0 ETH0.03435242101
Convert116307392021-01-11 1:52:241423 days ago1610329944IN
0x95C69C32...cDE7fC12e
0 ETH0.0293228100
Convert116307242021-01-11 1:48:501423 days ago1610329730IN
0x95C69C32...cDE7fC12e
0 ETH0.0360404681
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 10000 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

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

/**
 *Submitted for verification at Etherscan.io on 2020-11-29
*/

pragma solidity 0.6.12;

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

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;
}

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

    IUniswapV2Factory public constant factory = IUniswapV2Factory(0xC0AEe478e3658e2610c5F7A4A2E1777cE9e4f2Ac);
    address public constant bar = 0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272;
    address public constant sushi = 0x6B3595068778DD592e39A122f4f5a5cF09C90fE2;
    address public constant weth = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;

    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)));
        (uint amount0, uint amount1) = pair.burn(address(this));
        if (token0 != pair.token0()) {
            (amount0, amount1) = (amount1, amount0);
        }
        uint256 wethAmount = _toWETH(token0, amount0) + _toWETH(token1, amount1);
        _toSUSHI(wethAmount);
    }

    function _toWETH(address token, uint amountIn) internal returns (uint256) {
        if (token == sushi) {
            _safeTransfer(token, bar, amountIn);
            return 0;
        }
        if (token == weth) {
            _safeTransfer(token, factory.getPair(weth, sushi), amountIn);
            return amountIn;
        }
        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 amountInWithFee = amountIn.mul(997);
        uint amountOut = amountInWithFee.mul(reserveOut) / reserveIn.mul(1000).add(amountInWithFee);
        (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":[],"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"}]

608060405234801561001057600080fd5b506114c6806100206000396000f3fe608060405234801561001057600080fd5b50600436106100675760003560e01c8063bd1b820c11610050578063bd1b820c146100a5578063c45a0155146100e2578063febb0f7e146100ea57610067565b80630a0879031461006c5780633fc8cef31461009d575b600080fd5b6100746100f2565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61007461010a565b6100e0600480360360408110156100bb57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516610122565b005b61007461050e565b610074610526565b736b3595068778dd592e39a122f4f5a5cf09c90fe281565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b33321461019057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f646f206e6f7420636f6e766572742066726f6d20636f6e747261637400000000604482015290519081900360640190fd5b604080517fe6a4390500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff848116600483015283166024820152905160009173c0aee478e3658e2610c5f7a4a2e1777ce9e4f2ac9163e6a4390591604480820192602092909190829003018186803b15801561021c57600080fd5b505afa158015610230573d6000803e3d6000fd5b505050506040513d602081101561024657600080fd5b5051604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905191925073ffffffffffffffffffffffffffffffffffffffff83169163a9059cbb91849184916370a08231916024808301926020929190829003018186803b1580156102c157600080fd5b505afa1580156102d5573d6000803e3d6000fd5b505050506040513d60208110156102eb57600080fd5b5051604080517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b16815273ffffffffffffffffffffffffffffffffffffffff909316600484015260248301919091525160448083019260209291908290030181600087803b15801561036157600080fd5b505af1158015610375573d6000803e3d6000fd5b505050506040513d602081101561038b57600080fd5b5050604080517f89afcb440000000000000000000000000000000000000000000000000000000081523060048201528151600092839273ffffffffffffffffffffffffffffffffffffffff8616926389afcb449260248084019391929182900301818787803b1580156103fd57600080fd5b505af1158015610411573d6000803e3d6000fd5b505050506040513d604081101561042757600080fd5b508051602091820151604080517f0dfe1681000000000000000000000000000000000000000000000000000000008152905192955090935073ffffffffffffffffffffffffffffffffffffffff861692630dfe168192600480840193829003018186803b15801561049757600080fd5b505afa1580156104ab573d6000803e3d6000fd5b505050506040513d60208110156104c157600080fd5b505173ffffffffffffffffffffffffffffffffffffffff8681169116146104e457905b60006104f0858361053e565b6104fa878561053e565b01905061050681610b62565b505050505050565b73c0aee478e3658e2610c5f7a4a2e1777ce9e4f2ac81565b738798249c2e607446efb7ad49ec89dd1865ff427281565b600073ffffffffffffffffffffffffffffffffffffffff8316736b3595068778dd592e39a122f4f5a5cf09c90fe214156105995761059183738798249c2e607446efb7ad49ec89dd1865ff427284610f77565b506000610b5c565b73ffffffffffffffffffffffffffffffffffffffff831673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc214156106a257604080517fe6a4390500000000000000000000000000000000000000000000000000000000815273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26004820152736b3595068778dd592e39a122f4f5a5cf09c90fe26024820152905161069b91859173c0aee478e3658e2610c5f7a4a2e1777ce9e4f2ac9163e6a43905916044808301926020929190829003018186803b15801561066957600080fd5b505afa15801561067d573d6000803e3d6000fd5b505050506040513d602081101561069357600080fd5b505184610f77565b5080610b5c565b604080517fe6a4390500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8516600482015273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26024820152905160009173c0aee478e3658e2610c5f7a4a2e1777ce9e4f2ac9163e6a4390591604480820192602092909190829003018186803b15801561074057600080fd5b505afa158015610754573d6000803e3d6000fd5b505050506040513d602081101561076a57600080fd5b5051905073ffffffffffffffffffffffffffffffffffffffff8116610793576000915050610b5c565b6000808273ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156107dc57600080fd5b505afa1580156107f0573d6000803e3d6000fd5b505050506040513d606081101561080657600080fd5b508051602091820151604080517f0dfe168100000000000000000000000000000000000000000000000000000000815290516dffffffffffffffffffffffffffff938416965092909116935060009273ffffffffffffffffffffffffffffffffffffffff871692630dfe1681926004808201939291829003018186803b15801561088f57600080fd5b505afa1580156108a3573d6000803e3d6000fd5b505050506040513d60208110156108b957600080fd5b5051905060008073ffffffffffffffffffffffffffffffffffffffff808416908a16146108e75783856108ea565b84845b909250905060006108fd896103e5610f9d565b9050600061091782610911866103e8610f9d565b90611017565b6109218385610f9d565b8161092857fe5b0490506000808c73ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff16146109695782600061096d565b6000835b9150915061097c8d8b8e610f77565b604080517fe6a4390500000000000000000000000000000000000000000000000000000000815273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26004820152736b3595068778dd592e39a122f4f5a5cf09c90fe26024820152905173ffffffffffffffffffffffffffffffffffffffff8c169163022c0d9f918591859173c0aee478e3658e2610c5f7a4a2e1777ce9e4f2ac9163e6a43905916044808301926020929190829003018186803b158015610a3657600080fd5b505afa158015610a4a573d6000803e3d6000fd5b505050506040513d6020811015610a6057600080fd5b50516040805160008082526020820190925290506040518563ffffffff1660e01b8152600401808581526020018481526020018373ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610ae8578181015183820152602001610ad0565b50505050905090810190601f168015610b155780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b158015610b3757600080fd5b505af1158015610b4b573d6000803e3d6000fd5b50949c505050505050505050505050505b92915050565b604080517fe6a4390500000000000000000000000000000000000000000000000000000000815273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26004820152736b3595068778dd592e39a122f4f5a5cf09c90fe26024820152905160009173c0aee478e3658e2610c5f7a4a2e1777ce9e4f2ac9163e6a4390591604480820192602092909190829003018186803b158015610bfe57600080fd5b505afa158015610c12573d6000803e3d6000fd5b505050506040513d6020811015610c2857600080fd5b5051604080517f0902f1ac0000000000000000000000000000000000000000000000000000000081529051919250600091829173ffffffffffffffffffffffffffffffffffffffff851691630902f1ac91600480820192606092909190829003018186803b158015610c9957600080fd5b505afa158015610cad573d6000803e3d6000fd5b505050506040513d6060811015610cc357600080fd5b508051602091820151604080517f0dfe168100000000000000000000000000000000000000000000000000000000815290516dffffffffffffffffffffffffffff938416965092909116935060009273ffffffffffffffffffffffffffffffffffffffff871692630dfe1681926004808201939291829003018186803b158015610d4c57600080fd5b505afa158015610d60573d6000803e3d6000fd5b505050506040513d6020811015610d7657600080fd5b5051905060008073ffffffffffffffffffffffffffffffffffffffff831673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc214610db5578385610db8565b84845b90925090506000610dcb886103e5610f9d565b90506000610dd98284610f9d565b90506000610ded83610911876103e8610f9d565b90506000818381610dfa57fe5b04905060008073ffffffffffffffffffffffffffffffffffffffff891673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc214610e3957826000610e3d565b6000835b6040805160008082526020820190925292945090925073ffffffffffffffffffffffffffffffffffffffff8e169163022c0d9f9185918591738798249c2e607446efb7ad49ec89dd1865ff42729190506040518563ffffffff1660e01b8152600401808581526020018481526020018373ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610f01578181015183820152602001610ee9565b50505050905090810190601f168015610f2e5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b158015610f5057600080fd5b505af1158015610f64573d6000803e3d6000fd5b5050505050505050505050505050505050565b610f9873ffffffffffffffffffffffffffffffffffffffff8416838361108b565b505050565b600082610fac57506000610b5c565b82820282848281610fb957fe5b0414611010576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806114466021913960400191505060405180910390fd5b9392505050565b60008282018381101561101057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610f989084906060611175826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166111eb9092919063ffffffff16565b805190915015610f985780806020019051602081101561119457600080fd5b5051610f98576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180611467602a913960400191505060405180910390fd5b60606111fa8484600085611202565b949350505050565b606061120d8561140c565b61127857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106112e257805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe090920191602091820191016112a5565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611344576040519150601f19603f3d011682016040523d82523d6000602084013e611349565b606091505b5091509150811561135d5791506111fa9050565b80511561136d5780518082602001fd5b836040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156113d15781810151838201526020016113b9565b50505050905090810190601f1680156113fe5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906111fa57505015159291505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220c9e6ca1b9da51f0bebd3737280612ac2433c2c7f38868b2f85def489486a02df64736f6c634300060c0033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100675760003560e01c8063bd1b820c11610050578063bd1b820c146100a5578063c45a0155146100e2578063febb0f7e146100ea57610067565b80630a0879031461006c5780633fc8cef31461009d575b600080fd5b6100746100f2565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61007461010a565b6100e0600480360360408110156100bb57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516610122565b005b61007461050e565b610074610526565b736b3595068778dd592e39a122f4f5a5cf09c90fe281565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b33321461019057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f646f206e6f7420636f6e766572742066726f6d20636f6e747261637400000000604482015290519081900360640190fd5b604080517fe6a4390500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff848116600483015283166024820152905160009173c0aee478e3658e2610c5f7a4a2e1777ce9e4f2ac9163e6a4390591604480820192602092909190829003018186803b15801561021c57600080fd5b505afa158015610230573d6000803e3d6000fd5b505050506040513d602081101561024657600080fd5b5051604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905191925073ffffffffffffffffffffffffffffffffffffffff83169163a9059cbb91849184916370a08231916024808301926020929190829003018186803b1580156102c157600080fd5b505afa1580156102d5573d6000803e3d6000fd5b505050506040513d60208110156102eb57600080fd5b5051604080517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b16815273ffffffffffffffffffffffffffffffffffffffff909316600484015260248301919091525160448083019260209291908290030181600087803b15801561036157600080fd5b505af1158015610375573d6000803e3d6000fd5b505050506040513d602081101561038b57600080fd5b5050604080517f89afcb440000000000000000000000000000000000000000000000000000000081523060048201528151600092839273ffffffffffffffffffffffffffffffffffffffff8616926389afcb449260248084019391929182900301818787803b1580156103fd57600080fd5b505af1158015610411573d6000803e3d6000fd5b505050506040513d604081101561042757600080fd5b508051602091820151604080517f0dfe1681000000000000000000000000000000000000000000000000000000008152905192955090935073ffffffffffffffffffffffffffffffffffffffff861692630dfe168192600480840193829003018186803b15801561049757600080fd5b505afa1580156104ab573d6000803e3d6000fd5b505050506040513d60208110156104c157600080fd5b505173ffffffffffffffffffffffffffffffffffffffff8681169116146104e457905b60006104f0858361053e565b6104fa878561053e565b01905061050681610b62565b505050505050565b73c0aee478e3658e2610c5f7a4a2e1777ce9e4f2ac81565b738798249c2e607446efb7ad49ec89dd1865ff427281565b600073ffffffffffffffffffffffffffffffffffffffff8316736b3595068778dd592e39a122f4f5a5cf09c90fe214156105995761059183738798249c2e607446efb7ad49ec89dd1865ff427284610f77565b506000610b5c565b73ffffffffffffffffffffffffffffffffffffffff831673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc214156106a257604080517fe6a4390500000000000000000000000000000000000000000000000000000000815273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26004820152736b3595068778dd592e39a122f4f5a5cf09c90fe26024820152905161069b91859173c0aee478e3658e2610c5f7a4a2e1777ce9e4f2ac9163e6a43905916044808301926020929190829003018186803b15801561066957600080fd5b505afa15801561067d573d6000803e3d6000fd5b505050506040513d602081101561069357600080fd5b505184610f77565b5080610b5c565b604080517fe6a4390500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8516600482015273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26024820152905160009173c0aee478e3658e2610c5f7a4a2e1777ce9e4f2ac9163e6a4390591604480820192602092909190829003018186803b15801561074057600080fd5b505afa158015610754573d6000803e3d6000fd5b505050506040513d602081101561076a57600080fd5b5051905073ffffffffffffffffffffffffffffffffffffffff8116610793576000915050610b5c565b6000808273ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156107dc57600080fd5b505afa1580156107f0573d6000803e3d6000fd5b505050506040513d606081101561080657600080fd5b508051602091820151604080517f0dfe168100000000000000000000000000000000000000000000000000000000815290516dffffffffffffffffffffffffffff938416965092909116935060009273ffffffffffffffffffffffffffffffffffffffff871692630dfe1681926004808201939291829003018186803b15801561088f57600080fd5b505afa1580156108a3573d6000803e3d6000fd5b505050506040513d60208110156108b957600080fd5b5051905060008073ffffffffffffffffffffffffffffffffffffffff808416908a16146108e75783856108ea565b84845b909250905060006108fd896103e5610f9d565b9050600061091782610911866103e8610f9d565b90611017565b6109218385610f9d565b8161092857fe5b0490506000808c73ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff16146109695782600061096d565b6000835b9150915061097c8d8b8e610f77565b604080517fe6a4390500000000000000000000000000000000000000000000000000000000815273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26004820152736b3595068778dd592e39a122f4f5a5cf09c90fe26024820152905173ffffffffffffffffffffffffffffffffffffffff8c169163022c0d9f918591859173c0aee478e3658e2610c5f7a4a2e1777ce9e4f2ac9163e6a43905916044808301926020929190829003018186803b158015610a3657600080fd5b505afa158015610a4a573d6000803e3d6000fd5b505050506040513d6020811015610a6057600080fd5b50516040805160008082526020820190925290506040518563ffffffff1660e01b8152600401808581526020018481526020018373ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610ae8578181015183820152602001610ad0565b50505050905090810190601f168015610b155780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b158015610b3757600080fd5b505af1158015610b4b573d6000803e3d6000fd5b50949c505050505050505050505050505b92915050565b604080517fe6a4390500000000000000000000000000000000000000000000000000000000815273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26004820152736b3595068778dd592e39a122f4f5a5cf09c90fe26024820152905160009173c0aee478e3658e2610c5f7a4a2e1777ce9e4f2ac9163e6a4390591604480820192602092909190829003018186803b158015610bfe57600080fd5b505afa158015610c12573d6000803e3d6000fd5b505050506040513d6020811015610c2857600080fd5b5051604080517f0902f1ac0000000000000000000000000000000000000000000000000000000081529051919250600091829173ffffffffffffffffffffffffffffffffffffffff851691630902f1ac91600480820192606092909190829003018186803b158015610c9957600080fd5b505afa158015610cad573d6000803e3d6000fd5b505050506040513d6060811015610cc357600080fd5b508051602091820151604080517f0dfe168100000000000000000000000000000000000000000000000000000000815290516dffffffffffffffffffffffffffff938416965092909116935060009273ffffffffffffffffffffffffffffffffffffffff871692630dfe1681926004808201939291829003018186803b158015610d4c57600080fd5b505afa158015610d60573d6000803e3d6000fd5b505050506040513d6020811015610d7657600080fd5b5051905060008073ffffffffffffffffffffffffffffffffffffffff831673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc214610db5578385610db8565b84845b90925090506000610dcb886103e5610f9d565b90506000610dd98284610f9d565b90506000610ded83610911876103e8610f9d565b90506000818381610dfa57fe5b04905060008073ffffffffffffffffffffffffffffffffffffffff891673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc214610e3957826000610e3d565b6000835b6040805160008082526020820190925292945090925073ffffffffffffffffffffffffffffffffffffffff8e169163022c0d9f9185918591738798249c2e607446efb7ad49ec89dd1865ff42729190506040518563ffffffff1660e01b8152600401808581526020018481526020018373ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610f01578181015183820152602001610ee9565b50505050905090810190601f168015610f2e5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b158015610f5057600080fd5b505af1158015610f64573d6000803e3d6000fd5b5050505050505050505050505050505050565b610f9873ffffffffffffffffffffffffffffffffffffffff8416838361108b565b505050565b600082610fac57506000610b5c565b82820282848281610fb957fe5b0414611010576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806114466021913960400191505060405180910390fd5b9392505050565b60008282018381101561101057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610f989084906060611175826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166111eb9092919063ffffffff16565b805190915015610f985780806020019051602081101561119457600080fd5b5051610f98576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180611467602a913960400191505060405180910390fd5b60606111fa8484600085611202565b949350505050565b606061120d8561140c565b61127857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106112e257805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe090920191602091820191016112a5565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611344576040519150601f19603f3d011682016040523d82523d6000602084013e611349565b606091505b5091509150811561135d5791506111fa9050565b80511561136d5780518082602001fd5b836040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156113d15781810151838201526020016113b9565b50505050905090810190601f1680156113fe5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906111fa57505015159291505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220c9e6ca1b9da51f0bebd3737280612ac2433c2c7f38868b2f85def489486a02df64736f6c634300060c0033

Deployed Bytecode Sourcemap

22537:3142:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22823:74;;;:::i;:::-;;;;;;;;;;;;;;;;;;;22904:73;;;:::i;22986:648::-;;;;;;;;;;;;;;;;-1:-1:-1;22986:648:0;;;;;;;;;;;:::i;:::-;;22632:105;;;:::i;22744:72::-;;;:::i;22823:74::-;22855:42;22823:74;:::o;22904:73::-;22935:42;22904:73;:::o;22986:648::-;23125:10;23139:9;23125:23;23117:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23239:31;;;;;;:15;:31;;;;;;;;;;;;;;;23202:19;;22694:42;;23239:15;;:31;;;;;;;;;;;;;;;22694:42;23239:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;23239:31:0;23311:29;;;;;;23334:4;23311:29;;;;;;23239:31;;-1:-1:-1;23282:13:0;;;;;;23239:31;;23282:13;;23311:14;;:29;;;;;23239:31;;23311:29;;;;;;;23282:13;23311:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;23311:29:0;23282:59;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23311:29;;23282:59;;;;;;;-1:-1:-1;23282:59:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;23383:24:0;;;;;;23401:4;23383:24;;;;;;23353:12;;;;23383:9;;;;;;:24;;;;;;;;;;;;;23353:12;23383:9;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;23383:24:0;;;;;;;;23432:13;;;;;;;23383:24;;-1:-1:-1;23383:24:0;;-1:-1:-1;23432:11:0;;;;;;:13;;;;;;;;;;:11;:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;23432:13:0;23422:23;;;;;;;23418:95;;23484:7;23418:95;23523:18;23571:24;23579:6;23587:7;23571;:24::i;:::-;23544;23552:6;23560:7;23544;:24::i;:::-;:51;23523:72;;23606:20;23615:10;23606:8;:20::i;:::-;22986:648;;;;;;:::o;22632:105::-;22694:42;22632:105;:::o;22744:72::-;22774:42;22744:72;:::o;23642:1143::-;23707:7;23731:14;;;22855:42;23731:14;23727:105;;;23762:35;23776:5;22774:42;23788:8;23762:13;:35::i;:::-;-1:-1:-1;23819:1:0;23812:8;;23727:105;23846:13;;;22935:42;23846:13;23842:136;;;23897:28;;;;;;22935:42;23897:28;;;;22855:42;23897:28;;;;;;23876:60;;23890:5;;22694:42;;23897:15;;:28;;;;;;;;;;;;;;22694:42;23897:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;23897:28:0;23927:8;23876:13;:60::i;:::-;-1:-1:-1;23958:8:0;23951:15;;23842:136;24025:28;;;;;;:15;:28;;;;;;22935:42;24025:28;;;;;;23988:19;;22694:42;;24025:15;;:28;;;;;;;;;;;;;;;22694:42;24025:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24025:28:0;;-1:-1:-1;24069:27:0;;;24065:68;;24120:1;24113:8;;;;;24065:68;24144:13;24159;24177:4;:16;;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24177:18:0;;;;;;;;24223:13;;;;;;;24143:52;;;;;-1:-1:-1;24143:52:0;;;;;-1:-1:-1;24206:14:0;;24223:11;;;;;;:13;;;;;24177:18;24223:13;;;;;;:11;:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24223:13:0;;-1:-1:-1;24248:14:0;;24283:15;;;;;;;;:61;;24325:8;24335;24283:61;;;24302:8;24312;24283:61;24247:97;;-1:-1:-1;24247:97:0;-1:-1:-1;24355:20:0;24378:17;:8;24391:3;24378:12;:17::i;:::-;24355:40;-1:-1:-1;24406:14:0;24457:40;24355;24457:19;:9;24471:4;24457:13;:19::i;:::-;:23;;:40::i;:::-;24423:31;:15;24443:10;24423:19;:31::i;:::-;:74;;;;;;24406:91;;24509:15;24526;24555:5;24545:15;;:6;:15;;;:61;;24587:9;24603:1;24545:61;;;24569:1;24573:9;24545:61;24508:98;;;;24617:45;24631:5;24646:4;24653:8;24617:13;:45::i;:::-;24707:28;;;;;;22935:42;24707:28;;;;22855:42;24707:28;;;;;;24673:9;;;;;;24683:10;;24695;;22694:42;;24707:15;;:28;;;;;;;;;;;;;;22694:42;24707:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24707:28:0;24737:12;;;24747:1;24737:12;;;;;;;;;;;24673:77;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24768:9:0;;-1:-1:-1;;;;;;;;;;;;;23642:1143:0;;;;;:::o;24793:743::-;24886:28;;;;;;22935:42;24886:28;;;;22855:42;24886:28;;;;;;24849:19;;22694:42;;24886:15;;:28;;;;;;;;;;;;;;;22694:42;24886:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24886:28:0;24960:18;;;;;;;;24886:28;;-1:-1:-1;24927:13:0;;;;24960:16;;;;;;:18;;;;;;;;;;;;;;;:16;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24960:18:0;;;;;;;;25006:13;;;;;;;24926:52;;;;;-1:-1:-1;24926:52:0;;;;;-1:-1:-1;24989:14:0;;25006:11;;;;;;:13;;;;;24960:18;25006:13;;;;;;:11;:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25006:13:0;;-1:-1:-1;25031:14:0;;25066;;;22935:42;25066:14;:60;;25107:8;25117;25066:60;;;25084:8;25094;25066:60;25030:96;;-1:-1:-1;25030:96:0;-1:-1:-1;25137:20:0;25160:17;:8;25173:3;25160:12;:17::i;:::-;25137:40;-1:-1:-1;25188:14:0;25205:31;25137:40;25225:10;25205:19;:31::i;:::-;25188:48;-1:-1:-1;25247:16:0;25266:40;25290:15;25266:19;:9;25280:4;25266:13;:19::i;:40::-;25247:59;;25317:14;25346:11;25334:9;:23;;;;;;;-1:-1:-1;25369:15:0;;25405:14;;;22935:42;25405:14;:60;;25446:9;25462:1;25405:60;;;25428:1;25432:9;25405:60;25515:12;;;25525:1;25515:12;;;;;;;;;25368:97;;-1:-1:-1;25368:97:0;;-1:-1:-1;25476:9:0;;;;;;25368:97;;;;22774:42;;25515:12;;25476:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24793:743;;;;;;;;;;;;;:::o;25544:132::-;25630:38;:26;;;25657:2;25661:6;25630:26;:38::i;:::-;25544:132;;;:::o;5057:471::-;5115:7;5360:6;5356:47;;-1:-1:-1;5390:1:0;5383:8;;5356:47;5427:5;;;5431:1;5427;:5;:1;5451:5;;;;;:10;5443:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5519:1;5057:471;-1:-1:-1;;;5057:471:0:o;3703:181::-;3761:7;3793:5;;;3817:6;;;;3809:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14993:177;15103:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15126:23;15103:58;;;15076:86;;15096:5;;17722:23;17748:69;17776:4;17748:69;;;;;;;;;;;;;;;;;17756:5;17748:27;;;;:69;;;;;:::i;:::-;17832:17;;17722:95;;-1:-1:-1;17832:21:0;17828:224;;17974:10;17963:30;;;;;;;;;;;;;;;-1:-1:-1;17963:30:0;17955:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12011:196;12114:12;12146:53;12169:6;12177:4;12183:1;12186:12;12146:22;:53::i;:::-;12139:60;12011:196;-1:-1:-1;;;;12011:196:0:o;13388:979::-;13518:12;13551:18;13562:6;13551:10;:18::i;:::-;13543:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13677:12;13691:23;13718:6;:11;;13738:8;13749:4;13718:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13676:78;;;;13769:7;13765:595;;;13800:10;-1:-1:-1;13793:17:0;;-1:-1:-1;13793:17:0;13765:595;13914:17;;:21;13910:439;;14177:10;14171:17;14238:15;14225:10;14221:2;14217:19;14210:44;14125:148;14320:12;14313:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8896:619;8956:4;9424:20;;9267:66;9464:23;;;;;;:42;;-1:-1:-1;;9491:15:0;;;9456:51;-1:-1:-1;;8896:619:0:o

Swarm Source

ipfs://c9e6ca1b9da51f0bebd3737280612ac2433c2c7f38868b2f85def489486a02df

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
ETH21.93%$40.0611.7763$471.76
ETH13.60%$151.291.9336$292.54
ETH12.93%$794.370.3502$278.15
ETH11.56%$375.160.6632$248.81
ETH8.55%$13.9513.1899$184.05
ETH7.25%$13.0911.9165$156.04
ETH7.19%$747.090.2071$154.72
ETH2.96%$9.546.67$63.65
ETH2.59%$110.760.503$55.72
ETH2.39%$59.30.8675$51.45
ETH1.59%$2,318,285.70.0000148$34.3
ETH1.21%$4,338,352.420.00000602$26.1
ETH1.14%$56.790.4329$24.59
ETH1.09%$121.240.1934$23.45
ETH0.58%$2,062,809,833,852.320.0000000000060632$12.51
ETH0.57%$26.0968$12.22
ETH0.44%$299.870.0315$9.45
ETH0.42%$20.220.4507$9.11
ETH0.30%$19.440.3275$6.37
ETH0.28%$110.140.0538$5.92
ETH0.24%$70,200.390.00007473$5.25
ETH0.17%$150,401.350.00002497$3.76
ETH0.15%$420,758,821,520,0680.000000000000007638$3.21
ETH0.13%$60,977.490.00004559$2.78
ETH0.11%$60.60.0386$2.34
ETH0.08%$73,890.410.00002282$1.69
ETH0.07%$2,321,338.440.000000669937$1.56
ETH0.07%$158,781.770.00000921$1.46
ETH0.06%$85,806.520.00001573$1.35
ETH0.06%$5.670.2187$1.24
ETH0.04%$12,881,385.160.000000063389$0.8165
ETH0.03%$0.04343716.9694$0.737
ETH0.03%$4.690.1439$0.675
ETH0.03%$60,130.80.00001024$0.6156
ETH0.03%$496,480.720.00000123$0.6084
ETH0.02%$4.760.0865$0.4112
ETH0.02%$83.150.00486147$0.4042
ETH0.02%$0.001181331.75$0.3918
ETH0.01%$111,518.530.00000275$0.3063
ETH0.01%$2,090,531.610.00000013356$0.2792
ETH0.01%$4.890.0494$0.2419
ETH<0.01%$4.410.044$0.1943
ETH<0.01%$2.070.0667$0.1379
ETH<0.01%$26.640.00496311$0.1321
ETH<0.01%$10.610.0102$0.1084
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.