ETH Price: $3,966.78 (+1.92%)

Contract

0xdFd4d352D0d4fD657082A6959C2b6173E248e465
 
Transaction Hash
Method
Block
From
To
Convert115036142020-12-22 13:42:421454 days ago1608644562IN
0xdFd4d352...3E248e465
0 ETH0.0178910652
Convert115036082020-12-22 13:40:591454 days ago1608644459IN
0xdFd4d352...3E248e465
0 ETH0.0193256566
Convert115035612020-12-22 13:30:551454 days ago1608643855IN
0xdFd4d352...3E248e465
0 ETH0.0177410554
Convert115035512020-12-22 13:29:171454 days ago1608643757IN
0xdFd4d352...3E248e465
0 ETH0.0206585558
Convert115028482020-12-22 10:53:101454 days ago1608634390IN
0xdFd4d352...3E248e465
0 ETH0.0114718135.00000156
Convert115026592020-12-22 10:13:431454 days ago1608632023IN
0xdFd4d352...3E248e465
0 ETH0.010072934.00000145
Convert115025532020-12-22 9:50:351454 days ago1608630635IN
0xdFd4d352...3E248e465
0 ETH0.0260660880
Convert114993672020-12-21 22:04:051455 days ago1608588245IN
0xdFd4d352...3E248e465
0 ETH0.0094524832
Convert114980032020-12-21 16:59:331455 days ago1608569973IN
0xdFd4d352...3E248e465
0 ETH0.0136480642
Convert114971542020-12-21 13:52:161455 days ago1608558736IN
0xdFd4d352...3E248e465
0 ETH0.0091638431.00000269
Convert114893182020-12-20 9:09:191456 days ago1608455359IN
0xdFd4d352...3E248e465
0 ETH0.0071633722
Convert114876612020-12-20 3:04:431457 days ago1608433483IN
0xdFd4d352...3E248e465
0 ETH0.010376835
Convert114875742020-12-20 2:47:371457 days ago1608432457IN
0xdFd4d352...3E248e465
0 ETH0.0082612427
Convert114875222020-12-20 2:36:491457 days ago1608431809IN
0xdFd4d352...3E248e465
0 ETH0.0026041326
Convert114853282020-12-19 18:30:331457 days ago1608402633IN
0xdFd4d352...3E248e465
0 ETH0.03156002103
Convert114852572020-12-19 18:15:491457 days ago1608401749IN
0xdFd4d352...3E248e465
0 ETH0.0131849143
Convert114805112020-12-19 0:44:061458 days ago1608338646IN
0xdFd4d352...3E248e465
0 ETH0.0134819544
Convert114804542020-12-19 0:32:011458 days ago1608337921IN
0xdFd4d352...3E248e465
0 ETH0.010026840
Convert114766852020-12-18 10:37:141458 days ago1608287834IN
0xdFd4d352...3E248e465
0 ETH0.04002297123
Convert114766442020-12-18 10:26:161458 days ago1608287176IN
0xdFd4d352...3E248e465
0 ETH0.03760774123
Convert114765922020-12-18 10:17:011458 days ago1608286621IN
0xdFd4d352...3E248e465
0 ETH0.03408388111
Convert114765642020-12-18 10:09:431458 days ago1608286183IN
0xdFd4d352...3E248e465
0 ETH0.0266243490
Convert114748552020-12-18 3:58:191459 days ago1608263899IN
0xdFd4d352...3E248e465
0 ETH0.0241595274
Convert114713172020-12-17 14:48:181459 days ago1608216498IN
0xdFd4d352...3E248e465
0 ETH0.03523692115
Convert114677152020-12-17 1:37:311460 days ago1608169051IN
0xdFd4d352...3E248e465
0 ETH0.0349108897.00000145
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x11e27702...13d484d6e
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
SunflowerMaker

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-11-02
*/

pragma solidity 0.6.12;

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

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

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

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

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

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

// SunflowerMaker is SunflowerMain's left hand and kinda a wizard. He can cook up Sunflower from pretty much anything!
//
// This contract handles "serving up" rewards for xSunflower holders by trading tokens collected from fees for Sunflower.

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

    IUniswapV2Factory public factory;
    address public bar;
    address public sunflower;
    address public weth;
    address public burnt;

    uint256 public totalBurntSFR;
    uint256 public totalRewardSFR;

    uint256 public rewardPoint;
    uint256 public burntPoint;

    uint256 public constant maxBurntSFR = 32222223000000000000000;

    constructor(IUniswapV2Factory _factory, address _bar, address _sunflower, address _weth) public {
        factory = _factory;
        sunflower = _sunflower;
        bar = _bar;
        weth = _weth;
        burnt = address(1);
        rewardPoint = 5;
        burntPoint = 5;
    }

    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));
        // First we convert everything to WETH
        uint256 wethAmount = _toWETH(token0) + _toWETH(token1);
        // Then we convert the WETH to Sunflower
        _toSFR(wethAmount);
    }

    // Converts token passed as an argument to WETH
    function _toWETH(address token) internal returns (uint256) {
        // If the passed token is Sunflower, don't convert anything
        if (token == sunflower) {
            uint amount = IERC20(token).balanceOf(address(this));
            _safeTransfer(token, bar, amount.mul(rewardPoint).div(10));
            totalRewardSFR = totalRewardSFR.add(amount.mul(rewardPoint).div(10));
            uint256 burntAmount = _getBurntAmount(amount);
            if(burntAmount > 0){
                _safeTransfer(token, burnt, burntAmount);
                totalBurntSFR = totalBurntSFR.add(burntAmount);
            }
            return 0;
        }
        // If the passed token is WETH, don't convert anything
        if (token == weth) {
            uint amount = IERC20(token).balanceOf(address(this));
            _safeTransfer(token, factory.getPair(weth, sunflower), amount);
            return amount;
        }
        // If the target pair doesn't exist, don't convert anything
        IUniswapV2Pair pair = IUniswapV2Pair(factory.getPair(token, weth));
        if (address(pair) == address(0)) {
            return 0;
        }
        // Choose the correct reserve to swap from
        (uint reserve0, uint reserve1,) = pair.getReserves();
        address token0 = pair.token0();
        (uint reserveIn, uint reserveOut) = token0 == token ? (reserve0, reserve1) : (reserve1, reserve0);
        // Calculate information required to swap
        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));
        // Swap the token for WETH
        _safeTransfer(token, address(pair), amountIn);
        pair.swap(amount0Out, amount1Out, factory.getPair(weth, sunflower), new bytes(0));
        return amountOut;
    }

    // Converts WETH to Sunflower
    function _toSFR(uint256 amountIn) internal {
        IUniswapV2Pair pair = IUniswapV2Pair(factory.getPair(weth, sunflower));
        // Choose WETH as input token
        (uint reserve0, uint reserve1,) = pair.getReserves();
        address token0 = pair.token0();
        (uint reserveIn, uint reserveOut) = token0 == weth ? (reserve0, reserve1) : (reserve1, reserve0);
        // Calculate information required to swap
        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));
        // Swap WETH for Sunflower
        pair.swap(amount0Out, amount1Out, address(this), new bytes(0));

        uint balance =  IERC20(sunflower).balanceOf(address(this));

        uint amountOutBar = balance.mul(rewardPoint).div(10);
        _safeTransfer(sunflower, bar, amountOutBar);
        totalRewardSFR = totalRewardSFR.add(amountOutBar);
        uint256 burntAmount = _getBurntAmount(balance);
        if(burntAmount > 0){
            _safeTransfer(sunflower, burnt, burntAmount);
            totalBurntSFR = totalBurntSFR.add(burntAmount);
        }
    }

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

    function _getBurntAmount(uint256 amount) internal returns(uint256) {
        if(totalBurntSFR >= maxBurntSFR){
            if(burntPoint > 0){
                burntPoint = 0;
                rewardPoint = 10;
            }
            return 0;
        }
        if(burntPoint > 0){
            uint256 burntAmount = amount.mul(burntPoint).div(10);
            if(burntAmount.add(totalBurntSFR) >= maxBurntSFR){
                return burntAmount.add(totalBurntSFR).sub(maxBurntSFR);
            }else{
                return burntAmount;
            }
        }
        return 0;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IUniswapV2Factory","name":"_factory","type":"address"},{"internalType":"address","name":"_bar","type":"address"},{"internalType":"address","name":"_sunflower","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":[],"name":"burnt","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burntPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"maxBurntSFR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sunflower","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBurntSFR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalRewardSFR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100a95760003560e01c8063b192da2d11610071578063b192da2d14610104578063bd1b820c1461010c578063c45a01551461013c578063c68b9dfa14610144578063da3e3ef61461014c578063febb0f7e14610154576100a9565b80630c1d7419146100ae5780633fc8cef3146100c85780634e2369c9146100ec57806358b90575146100f4578063a9cb2dcb146100fc575b600080fd5b6100b661015c565b60408051918252519081900360200190f35b6100d0610162565b604080516001600160a01b039092168252519081900360200190f35b6100b6610171565b6100d061017f565b6100b661018e565b6100d0610194565b61013a6004803603604081101561012257600080fd5b506001600160a01b03813581169160200135166101a3565b005b6100d061040a565b6100b6610419565b6100b661041f565b6100d0610425565b60055481565b6003546001600160a01b031681565b6906d2c52c69d885a1800081565b6002546001600160a01b031681565b60085481565b6004546001600160a01b031681565b3332146101f7576040805162461bcd60e51b815260206004820152601c60248201527f646f206e6f7420636f6e766572742066726f6d20636f6e747261637400000000604482015290519081900360640190fd5b600080546040805163e6a4390560e01b81526001600160a01b03868116600483015285811660248301529151919092169163e6a43905916044808301926020929190829003018186803b15801561024d57600080fd5b505afa158015610261573d6000803e3d6000fd5b505050506040513d602081101561027757600080fd5b5051604080516370a0823160e01b815230600482015290519192506001600160a01b0383169163a9059cbb91849184916370a08231916024808301926020929190829003018186803b1580156102cc57600080fd5b505afa1580156102e0573d6000803e3d6000fd5b505050506040513d60208110156102f657600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b03909316600484015260248301919091525160448083019260209291908290030181600087803b15801561034757600080fd5b505af115801561035b573d6000803e3d6000fd5b505050506040513d602081101561037157600080fd5b50506040805163226bf2d160e21b815230600482015281516001600160a01b038416926389afcb4492602480820193918290030181600087803b1580156103b757600080fd5b505af11580156103cb573d6000803e3d6000fd5b505050506040513d60408110156103e157600080fd5b50600090506103ef83610434565b6103f885610434565b01905061040481610b16565b50505050565b6000546001600160a01b031681565b60075481565b60065481565b6001546001600160a01b031681565b6002546000906001600160a01b038381169116141561056e576000826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561049c57600080fd5b505afa1580156104b0573d6000803e3d6000fd5b505050506040513d60208110156104c657600080fd5b50516001546007549192506104fe9185916001600160a01b0316906104f990600a906104f3908790610f40565b90610fa2565b610fe4565b61052461051b600a6104f360075485610f4090919063ffffffff16565b60065490610ffd565b600655600061053282611057565b90508015610563576004546105529085906001600160a01b031683610fe4565b60055461055f9082610ffd565b6005555b600092505050610b11565b6003546001600160a01b038381169116141561069c576000826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156105d357600080fd5b505afa1580156105e7573d6000803e3d6000fd5b505050506040513d60208110156105fd57600080fd5b50516000546003546002546040805163e6a4390560e01b81526001600160a01b039384166004820152918316602483015251939450610695938793929092169163e6a4390591604480820192602092909190829003018186803b15801561066357600080fd5b505afa158015610677573d6000803e3d6000fd5b505050506040513d602081101561068d57600080fd5b505183610fe4565b9050610b11565b600080546003546040805163e6a4390560e01b81526001600160a01b03878116600483015292831660248201529051919092169163e6a43905916044808301926020929190829003018186803b1580156106f557600080fd5b505afa158015610709573d6000803e3d6000fd5b505050506040513d602081101561071f57600080fd5b505190506001600160a01b03811661073b576000915050610b11565b600080826001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561077757600080fd5b505afa15801561078b573d6000803e3d6000fd5b505050506040513d60608110156107a157600080fd5b50805160209182015160408051630dfe168160e01b815290516001600160701b0393841696509290911693506000926001600160a01b03871692630dfe1681926004808201939291829003018186803b1580156107fd57600080fd5b505afa158015610811573d6000803e3d6000fd5b505050506040513d602081101561082757600080fd5b505190506000806001600160a01b038084169089161461084857838561084b565b84845b915091506000886001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561089e57600080fd5b505afa1580156108b2573d6000803e3d6000fd5b505050506040513d60208110156108c857600080fd5b5051905060006108da826103e5610f40565b905060006108e88285610f40565b90506000610902836108fc886103e8610f40565b90610ffd565b9050600081838161090f57fe5b0490506000808e6001600160a01b03168a6001600160a01b0316146109365782600061093a565b6000835b915091506109498f8e89610fe4565b8c6001600160a01b031663022c0d9f838360008054906101000a90046001600160a01b03166001600160a01b031663e6a43905600360009054906101000a90046001600160a01b0316600260009054906101000a90046001600160a01b03166040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b1580156109f557600080fd5b505afa158015610a09573d6000803e3d6000fd5b505050506040513d6020811015610a1f57600080fd5b50516040805160008082526020820190925290506040518563ffffffff1660e01b815260040180858152602001848152602001836001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610a9a578181015183820152602001610a82565b50505050905090810190601f168015610ac75780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b158015610ae957600080fd5b505af1158015610afd573d6000803e3d6000fd5b50949f505050505050505050505050505050505b919050565b600080546003546002546040805163e6a4390560e01b81526001600160a01b039384166004820152918316602483015251919092169163e6a43905916044808301926020929190829003018186803b158015610b7157600080fd5b505afa158015610b85573d6000803e3d6000fd5b505050506040513d6020811015610b9b57600080fd5b505160408051630240bc6b60e21b8152905191925060009182916001600160a01b03851691630902f1ac91600480820192606092909190829003018186803b158015610be657600080fd5b505afa158015610bfa573d6000803e3d6000fd5b505050506040513d6060811015610c1057600080fd5b50805160209182015160408051630dfe168160e01b815290516001600160701b0393841696509290911693506000926001600160a01b03871692630dfe1681926004808201939291829003018186803b158015610c6c57600080fd5b505afa158015610c80573d6000803e3d6000fd5b505050506040513d6020811015610c9657600080fd5b505160035490915060009081906001600160a01b03808516911614610cbc578385610cbf565b84845b90925090506000610cd2886103e5610f40565b90506000610ce08284610f40565b90506000610cf4836108fc876103e8610f40565b90506000818381610d0157fe5b600354919004915060009081906001600160a01b038a8116911614610d2857826000610d2c565b6000835b604080516000808252602082019092529294509092506001600160a01b038e169163022c0d9f9185918591309190506040518563ffffffff1660e01b815260040180858152602001848152602001836001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610dc2578181015183820152602001610daa565b50505050905090810190601f168015610def5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b158015610e1157600080fd5b505af1158015610e25573d6000803e3d6000fd5b5050600254604080516370a0823160e01b81523060048201529051600094506001600160a01b0390921692506370a08231916024808301926020929190829003018186803b158015610e7657600080fd5b505afa158015610e8a573d6000803e3d6000fd5b505050506040513d6020811015610ea057600080fd5b5051600754909150600090610ebd90600a906104f3908590610f40565b600254600154919250610edd916001600160a01b03918216911683610fe4565b600654610eea9082610ffd565b6006556000610ef883611057565b90508015610f2e57600254600454610f1d916001600160a01b03908116911683610fe4565b600554610f2a9082610ffd565b6005555b50505050505050505050505050505050565b600082610f4f57506000610f9c565b82820282848281610f5c57fe5b0414610f995760405162461bcd60e51b815260040180806020018281038252602181526020018061150a6021913960400191505060405180910390fd5b90505b92915050565b6000610f9983836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061110b565b610ff86001600160a01b03841683836111ad565b505050565b600082820183811015610f99576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60006906d2c52c69d885a1800060055410611087576008541561107f576000600855600a6007555b506000610b11565b600854156111035760006110ab600a6104f360085486610f4090919063ffffffff16565b90506906d2c52c69d885a180006110cd60055483610ffd90919063ffffffff16565b10610695576110fb6906d2c52c69d885a180006110f560055484610ffd90919063ffffffff16565b906111ff565b915050610b11565b506000919050565b600081836111975760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561115c578181015183820152602001611144565b50505050905090810190601f1680156111895780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816111a357fe5b0495945050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610ff8908490611241565b6000610f9983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506112f2565b6060611296826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661134c9092919063ffffffff16565b805190915015610ff8578080602001905160208110156112b557600080fd5b5051610ff85760405162461bcd60e51b815260040180806020018281038252602a81526020018061152b602a913960400191505060405180910390fd5b600081848411156113445760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561115c578181015183820152602001611144565b505050900390565b606061135b8484600085611363565b949350505050565b606061136e856114d0565b6113bf576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106113fe5780518252601f1990920191602091820191016113df565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611460576040519150601f19603f3d011682016040523d82523d6000602084013e611465565b606091505b5091509150811561147957915061135b9050565b8051156114895780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561115c578181015183820152602001611144565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061135b57505015159291505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220c73b0702ebb7f2be2cfa460b5014f88f7b3ede33b7ac95374937ed0bddce253b64736f6c634300060c0033

Deployed Bytecode Sourcemap

21241:5670:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21490:28;;;:::i;:::-;;;;;;;;;;;;;;;;21435:19;;;:::i;:::-;;;;-1:-1:-1;;;;;21435:19:0;;;;;;;;;;;;;;21630:61;;;:::i;21404:24::-;;;:::i;21596:25::-;;;:::i;21461:20::-;;;:::i;21998:580::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;21998:580:0;;;;;;;;;;:::i;:::-;;21340:32;;;:::i;21563:26::-;;;:::i;21525:29::-;;;:::i;21379:18::-;;;:::i;21490:28::-;;;;:::o;21435:19::-;;;-1:-1:-1;;;;;21435:19:0;;:::o;21630:61::-;21668:23;21630:61;:::o;21404:24::-;;;-1:-1:-1;;;;;21404:24:0;;:::o;21596:25::-;;;;:::o;21461:20::-;;;-1:-1:-1;;;;;21461:20:0;;:::o;21998:580::-;22137:10;22151:9;22137:23;22129:64;;;;;-1:-1:-1;;;22129:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;22204:19;22241:7;;:31;;;-1:-1:-1;;;22241:31:0;;-1:-1:-1;;;;;22241:31:0;;;;;;;;;;;;;;;;:7;;;;;:15;;:31;;;;;;;;;;;;;;:7;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;22241:31:0;22313:29;;;-1:-1:-1;;;22313:29:0;;22336:4;22313:29;;;;;;22241:31;;-1:-1:-1;;;;;;22284:13:0;;;;;22241:31;;22284:13;;22313:14;;:29;;;;;22241:31;;22313:29;;;;;;;22284:13;22313:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;22313:29:0;22284:59;;;-1:-1:-1;;;;;;22284:59:0;;;;;;;-1:-1:-1;;;;;22284:59:0;;;;;;;;;;;;;;;;;;;;22313:29;;22284:59;;;;;;;-1:-1:-1;22284:59:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;22354:24:0;;;-1:-1:-1;;;22354:24:0;;22372:4;22354:24;;;;;;-1:-1:-1;;;;;22354:9:0;;;;;:24;;;;;;;;;;;-1:-1:-1;22354:9:0;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;22437:18:0;;-1:-1:-1;22476:15:0;22484:6;22476:7;:15::i;:::-;22458;22466:6;22458:7;:15::i;:::-;:33;22437:54;;22552:18;22559:10;22552:6;:18::i;:::-;21998:580;;;;:::o;21340:32::-;;;-1:-1:-1;;;;;21340:32:0;;:::o;21563:26::-;;;;:::o;21525:29::-;;;;:::o;21379:18::-;;;-1:-1:-1;;;;;21379:18:0;;:::o;22639:2093::-;22791:9;;22689:7;;-1:-1:-1;;;;;22782:18:0;;;22791:9;;22782:18;22778:515;;;22817:11;22838:5;-1:-1:-1;;;;;22831:23:0;;22863:4;22831:38;;;;;;;;;;;;;-1:-1:-1;;;;;22831:38:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;22831:38:0;22905:3;;22921:11;;22831:38;;-1:-1:-1;22884:58:0;;22898:5;;-1:-1:-1;;;;;22905:3:0;;22910:31;;22938:2;;22910:23;;22831:38;;22910:10;:23::i;:::-;:27;;:31::i;:::-;22884:13;:58::i;:::-;22974:51;22993:31;23021:2;22993:23;23004:11;;22993:6;:10;;:23;;;;:::i;:31::-;22974:14;;;:18;:51::i;:::-;22957:14;:68;23040:19;23062:23;23078:6;23062:15;:23::i;:::-;23040:45;-1:-1:-1;23103:15:0;;23100:159;;23159:5;;23138:40;;23152:5;;-1:-1:-1;;;;;23159:5:0;23166:11;23138:13;:40::i;:::-;23213:13;;:30;;23231:11;23213:17;:30::i;:::-;23197:13;:46;23100:159;23280:1;23273:8;;;;;;22778:515;23380:4;;-1:-1:-1;;;;;23371:13:0;;;23380:4;;23371:13;23367:203;;;23401:11;23422:5;-1:-1:-1;;;;;23415:23:0;;23447:4;23415:38;;;;;;;;;;;;;-1:-1:-1;;;;;23415:38:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;23415:38:0;23489:7;;23505:4;;23511:9;;23489:32;;;-1:-1:-1;;;23489:32:0;;-1:-1:-1;;;;;23505:4:0;;;23489:32;;;;23511:9;;;23489:32;;;;;23415:38;;-1:-1:-1;23468:62:0;;23482:5;;23489:7;;;;;:15;;:32;;;;;23415:38;;23489:32;;;;;;;;:7;:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;23489:32:0;23523:6;23468:13;:62::i;:::-;23552:6;-1:-1:-1;23545:13:0;;23367:203;23649:19;23686:7;;23709:4;;23686:28;;;-1:-1:-1;;;23686:28:0;;-1:-1:-1;;;;;23686:28:0;;;;;;;23709:4;;;23686:28;;;;;;:7;;;;;:15;;:28;;;;;;;;;;;;;;:7;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;23686:28:0;;-1:-1:-1;;;;;;23730:27:0;;23726:68;;23781:1;23774:8;;;;;23726:68;23857:13;23872;23890:4;-1:-1:-1;;;;;23890:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;23890:18:0;;;;;;;;23936:13;;-1:-1:-1;;;23936:13:0;;;;-1:-1:-1;;;;;23856:52:0;;;;-1:-1:-1;23856:52:0;;;;;-1:-1:-1;23919:14:0;;-1:-1:-1;;;;;23936:11:0;;;;;:13;;;;;23890:18;23936:13;;;;;;:11;:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;23936:13:0;;-1:-1:-1;23961:14:0;;-1:-1:-1;;;;;23996:15:0;;;;;;;:61;;24038:8;24048;23996:61;;;24015:8;24025;23996:61;23960:97;;;;24119:13;24142:5;-1:-1:-1;;;;;24135:23:0;;24167:4;24135:38;;;;;;;;;;;;;-1:-1:-1;;;;;24135:38:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24135:38:0;;-1:-1:-1;24184:20:0;24207:17;24135:38;24220:3;24207:12;:17::i;:::-;24184:40;-1:-1:-1;24235:14:0;24252:31;24184:40;24272:10;24252:19;:31::i;:::-;24235:48;-1:-1:-1;24294:16:0;24313:40;24337:15;24313:19;:9;24327:4;24313:13;:19::i;:::-;:23;;:40::i;:::-;24294:59;;24364:14;24393:11;24381:9;:23;;;;;;24364:40;;24416:15;24433;24462:5;-1:-1:-1;;;;;24452:15:0;:6;-1:-1:-1;;;;;24452:15:0;;:61;;24494:9;24510:1;24452:61;;;24476:1;24480:9;24452:61;24415:98;;;;24560:45;24574:5;24589:4;24596:8;24560:13;:45::i;:::-;24616:4;-1:-1:-1;;;;;24616:9:0;;24626:10;24638;24650:7;;;;;;;;-1:-1:-1;;;;;24650:7:0;-1:-1:-1;;;;;24650:15:0;;24666:4;;;;;;;;;-1:-1:-1;;;;;24666:4:0;24672:9;;;;;;;;;-1:-1:-1;;;;;24672:9:0;24650:32;;;;;;;;;;;;;-1:-1:-1;;;;;24650:32:0;;;;;;-1:-1:-1;;;;;24650:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24650:32:0;24684:12;;;24694:1;24684:12;;;;;;;;;;;24616:81;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;24616:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24715:9:0;;-1:-1:-1;;;;;;;;;;;;;;;;22639:2093:0;;;;:::o;24775:1349::-;24829:19;24866:7;;24882:4;;24888:9;;24866:32;;;-1:-1:-1;;;24866:32:0;;-1:-1:-1;;;;;24882:4:0;;;24866:32;;;;24888:9;;;24866:32;;;;;:7;;;;;:15;;:32;;;;;;;;;;;;;;:7;:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24866:32:0;24983:18;;;-1:-1:-1;;;24983:18:0;;;;24866:32;;-1:-1:-1;24950:13:0;;;;-1:-1:-1;;;;;24983:16:0;;;;;:18;;;;;;;;;;;;;;;:16;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24983:18:0;;;;;;;;25029:13;;-1:-1:-1;;;25029:13:0;;;;-1:-1:-1;;;;;24949:52:0;;;;-1:-1:-1;24949:52:0;;;;;-1:-1:-1;25012:14:0;;-1:-1:-1;;;;;25029:11:0;;;;;:13;;;;;24983:18;25029:13;;;;;;:11;:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25029:13:0;25099:4;;25029:13;;-1:-1:-1;25054:14:0;;;;-1:-1:-1;;;;;25089:14:0;;;25099:4;;25089:14;:60;;25130:8;25140;25089:60;;;25107:8;25117;25089:60;25053:96;;-1:-1:-1;25053:96:0;-1:-1:-1;25211:20:0;25234:17;:8;25247:3;25234:12;:17::i;:::-;25211:40;-1:-1:-1;25262:14:0;25279:31;25211:40;25299:10;25279:19;:31::i;:::-;25262:48;-1:-1:-1;25321:16:0;25340:40;25364:15;25340:19;:9;25354:4;25340:13;:19::i;:40::-;25321:59;;25391:14;25420:11;25408:9;:23;;;;;25489:4;;25408:23;;;;-1:-1:-1;25443:15:0;;;;-1:-1:-1;;;;;25479:14:0;;;25489:4;;25479:14;:60;;25520:9;25536:1;25479:60;;;25502:1;25506:9;25479:60;25635:12;;;25645:1;25635:12;;;;;;;;;25442:97;;-1:-1:-1;25442:97:0;;-1:-1:-1;;;;;;25586:9:0;;;;;25442:97;;;;25628:4;;25635:12;;25586:62;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;25586:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;25684:9:0;;25677:42;;;-1:-1:-1;;;25677:42:0;;25713:4;25677:42;;;;;;25661:12;;-1:-1:-1;;;;;;25684:9:0;;;;-1:-1:-1;25677:27:0;;:42;;;;;;;;;;;;;;25684:9;25677:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25677:42:0;25764:11;;25677:42;;-1:-1:-1;25732:17:0;;25752:32;;25781:2;;25752:24;;25677:42;;25752:11;:24::i;:32::-;25809:9;;;25820:3;25732:52;;-1:-1:-1;25795:43:0;;-1:-1:-1;;;;;25809:9:0;;;;25820:3;25732:52;25795:13;:43::i;:::-;25866:14;;:32;;25885:12;25866:18;:32::i;:::-;25849:14;:49;25909:19;25931:24;25947:7;25931:15;:24::i;:::-;25909:46;-1:-1:-1;25969:15:0;;25966:151;;26014:9;;26025:5;;26000:44;;-1:-1:-1;;;;;26014:9:0;;;;26025:5;26032:11;26000:13;:44::i;:::-;26075:13;;:30;;26093:11;26075:17;:30::i;:::-;26059:13;:46;25966:151;24775:1349;;;;;;;;;;;;;;;;:::o;13536:471::-;13594:7;13839:6;13835:47;;-1:-1:-1;13869:1:0;13862:8;;13835:47;13906:5;;;13910:1;13906;:5;:1;13930:5;;;;;:10;13922:56;;;;-1:-1:-1;;;13922:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13998:1;-1:-1:-1;13536:471:0;;;;;:::o;14483:132::-;14541:7;14568:39;14572:1;14575;14568:39;;;;;;;;;;;;;;;;;:3;:39::i;26165:132::-;26251:38;-1:-1:-1;;;;;26251:26:0;;26278:2;26282:6;26251:26;:38::i;:::-;26165:132;;;:::o;12182:181::-;12240:7;12272:5;;;12296:6;;;;12288:46;;;;;-1:-1:-1;;;12288:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;26305:603;26363:7;21668:23;26386:13;;:28;26383:183;;26433:10;;:14;26430:102;;26480:1;26467:10;:14;26514:2;26500:11;:16;26430:102;-1:-1:-1;26553:1:0;26546:8;;26383:183;26579:10;;:14;26576:306;;26609:19;26631:30;26658:2;26631:22;26642:10;;26631:6;:10;;:22;;;;:::i;:30::-;26609:52;;21668:23;26679:30;26695:13;;26679:11;:15;;:30;;;;:::i;:::-;:45;26676:195;;26751:47;21668:23;26751:30;26767:13;;26751:11;:15;;:30;;;;:::i;:::-;:34;;:47::i;:::-;26744:54;;;;;26576:306;-1:-1:-1;26899:1:0;26305:603;;;:::o;15111:278::-;15197:7;15232:12;15225:5;15217:28;;;;-1:-1:-1;;;15217:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15256:9;15272:1;15268;:5;;;;;;;15111:278;-1:-1:-1;;;;;15111:278:0:o;8846:177::-;8956:58;;;-1:-1:-1;;;;;8956:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;8956:58:0;-1:-1:-1;;;8956:58:0;;;8929:86;;8949:5;;8929:19;:86::i;12646:136::-;12704:7;12731:43;12735:1;12738;12731:43;;;;;;;;;;;;;;;;;:3;:43::i;11151:761::-;11575:23;11601:69;11629:4;11601:69;;;;;;;;;;;;;;;;;11609:5;-1:-1:-1;;;;;11601:27:0;;;:69;;;;;:::i;:::-;11685:17;;11575:95;;-1:-1:-1;11685:21:0;11681:224;;11827:10;11816:30;;;;;;;;;;;;;;;-1:-1:-1;11816:30:0;11808:85;;;;-1:-1:-1;;;11808:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13085:192;13171:7;13207:12;13199:6;;;;13191:29;;;;-1:-1:-1;;;13191:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;13243:5:0;;;13085:192::o;3752:196::-;3855:12;3887:53;3910:6;3918:4;3924:1;3927:12;3887:22;:53::i;:::-;3880:60;3752:196;-1:-1:-1;;;;3752:196:0:o;5129:979::-;5259:12;5292:18;5303:6;5292:10;:18::i;:::-;5284:60;;;;;-1:-1:-1;;;5284:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;5418:12;5432:23;5459:6;-1:-1:-1;;;;;5459:11:0;5479:8;5490:4;5459:36;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;5459:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5417:78;;;;5510:7;5506:595;;;5541:10;-1:-1:-1;5534:17:0;;-1:-1:-1;5534:17:0;5506:595;5655:17;;:21;5651:439;;5918:10;5912:17;5979:15;5966:10;5962:2;5958:19;5951:44;5866:148;6054:20;;-1:-1:-1;;;6054:20:0;;;;;;;;;;;;;;;;;6061:12;;6054:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;637:619;697:4;1165:20;;1008:66;1205:23;;;;;;:42;;-1:-1:-1;;1232:15:0;;;1197:51;-1:-1:-1;;637:619:0:o

Swarm Source

ipfs://c73b0702ebb7f2be2cfa460b5014f88f7b3ede33b7ac95374937ed0bddce253b

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