Sonic Blaze Testnet

Contract

0xb8d39B65ccC15A4fBd3881d3DC5576E4ed25a8AE

Overview

S Balance

Sonic Blaze LogoSonic Blaze LogoSonic Blaze Logo0 S

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Send156024442025-01-26 7:54:5110 days ago1737878091IN
0xb8d39B65...4ed25a8AE
1 S0.000063151
Set Fee155710042025-01-26 4:52:5710 days ago1737867177IN
0xb8d39B65...4ed25a8AE
0 S0.000045741

Latest 3 internal transactions

Parent Transaction Hash Block From To
156024442025-01-26 7:54:5110 days ago1737878091
0xb8d39B65...4ed25a8AE
0.999 S
156024442025-01-26 7:54:5110 days ago1737878091
0xb8d39B65...4ed25a8AE
0.001 S
156024442025-01-26 7:54:5110 days ago1737878091
0xb8d39B65...4ed25a8AE
0 S
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BanyumasanHelper

Compiler Version
v0.8.28+commit.7893614a

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 10 : BanyumasanHelper.sol
pragma solidity ^0.8.28;

import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
import { Address } from "@openzeppelin/contracts/utils/Address.sol";
import { ISwapRouter } from "@uniswap/v3-periphery/contracts/interfaces/ISwapRouter.sol";

import { IERC20, IBanyumasanPoint } from "./interfaces/IBanyumasanPoint.sol";
import { IwS } from "./interfaces/IwS.sol";

contract BanyumasanHelper is Ownable {
    IBanyumasanPoint private point;
    ISwapRouter private swapRouter; 
    IwS private wS;

    uint256 public fee;

    constructor(address _wS, address _point) Ownable(_msgSender()) {
        wS = IwS(_wS);
        point = IBanyumasanPoint(_point);
    }

    function emergencyWithdraw() external {
        Address.sendValue(payable(owner()), address(this).balance);
    }

    function emergencyWithdrawToken(address _token) external {
        IERC20 token = IERC20(_token);

        token.transfer(owner(), token.balanceOf(address(this)));
    }

    function setFee(uint256 _fee) external onlyOwner {
        fee = _fee;
    }

    function setRouter(address _swapRouter) external onlyOwner {
        swapRouter = ISwapRouter(_swapRouter);
    }

    function send(address _to) external payable {
        uint256 value = msg.value;
        require(value > 0, "Value is zero");

        uint256 pointAmount = value / 1e18;
        if (pointAmount > 0) {
            point.mint(_msgSender(), pointAmount);
        }

        if (fee > 0) {
            uint256 valueFee = value * fee / 1e6;
            value -= valueFee;
            Address.sendValue(payable(owner()), valueFee);
        }

        Address.sendValue(payable(_to), value);
    }

    receive() external payable {}

    function swapTo(address _tokenIn, address _tokenOut, address _sendTo, uint256 _amountIn, uint24 _feeTier) external payable returns (uint256) {
        address who = _msgSender();

        address addressNull = address(0);
        uint256 amountIn = shareFee(_tokenIn, who, _tokenIn == addressNull ? msg.value : _amountIn);

        address tokenIn = _tokenIn;
        if (_tokenIn == addressNull) {
            if ((amountIn / 1e19) > 0) {
                point.mint(_sendTo, (amountIn / 1e19));
            }

            tokenIn = address(wS);
            wS.deposit{ value: amountIn }();
        }
        address tokenOut = _tokenOut;
        address sendTo = _sendTo;
        if (_tokenOut == addressNull) {
            tokenOut = address(wS);
            sendTo = address(this);
        }
        
        IERC20 token = IERC20(_tokenIn);
        if (_tokenIn != address(wS)) {
            token.transferFrom(who, address(this), _amountIn);
        }
        token.approve(address(swapRouter), _amountIn);

        uint256 amountOut = swapInternal(sendTo, tokenIn, tokenOut, amountIn, _feeTier);
        if (_tokenOut == addressNull) {
            wS.withdraw(amountOut);
            Address.sendValue(payable(_sendTo), amountOut);
        }
        
        return amountOut;
    }
    
    function swapInternal(address _sendTo, address _tokenIn, address _tokenOut, uint256 _amountIn, uint24 _feeTier) internal returns (uint256) {
        ISwapRouter.ExactInputSingleParams memory params =
            ISwapRouter.ExactInputSingleParams({
                tokenIn: _tokenIn,
                tokenOut: _tokenOut,
                fee: _feeTier,
                recipient: _sendTo,
                deadline: block.timestamp,
                amountIn: _amountIn,
                amountOutMinimum: 0,
                sqrtPriceLimitX96: 0
            });
            
        uint256 amountOut = swapRouter.exactInputSingle(params);
        return amountOut;
    }

    function shareFee(address _token, address who, uint256 _amount) internal returns (uint256) {
        uint256 feeSwap = _amount * fee / 1e6;
        
        if (_token == address(0)) {
            Address.sendValue(payable(owner()), feeSwap);
        } else {
            IERC20(_token).transferFrom(who, owner(), feeSwap);
        }

        return _amount - feeSwap;
    }
}

File 2 of 10 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * The initial owner is set to the address provided by the deployer. This can
 * later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 10 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC-20 standard as defined in the ERC.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @dev Returns the value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

File 4 of 10 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.2.0) (utils/Address.sol)

pragma solidity ^0.8.20;

import {Errors} from "./Errors.sol";

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev There's no code at `target` (it is not a contract).
     */
    error AddressEmptyCode(address target);

    /**
     * @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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        if (address(this).balance < amount) {
            revert Errors.InsufficientBalance(address(this).balance, amount);
        }

        (bool success, bytes memory returndata) = recipient.call{value: amount}("");
        if (!success) {
            _revert(returndata);
        }
    }

    /**
     * @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 or custom error, it is bubbled
     * up by this function (like regular Solidity function calls). However, if
     * the call reverted with no returned reason, this function reverts with a
     * {Errors.FailedCall} error.
     *
     * 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.
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0);
    }

    /**
     * @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`.
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        if (address(this).balance < value) {
            revert Errors.InsufficientBalance(address(this).balance, value);
        }
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
     * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case
     * of an unsuccessful call.
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata
    ) internal view returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            // only check if target is a contract if the call was successful and the return data is empty
            // otherwise we already know that it was a contract
            if (returndata.length == 0 && target.code.length == 0) {
                revert AddressEmptyCode(target);
            }
            return returndata;
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
     * revert reason or with a default {Errors.FailedCall} error.
     */
    function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            return returndata;
        }
    }

    /**
     * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.
     */
    function _revert(bytes memory returndata) private pure {
        // 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
            assembly ("memory-safe") {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert Errors.FailedCall();
        }
    }
}

File 5 of 10 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 6 of 10 : Errors.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)

pragma solidity ^0.8.20;

/**
 * @dev Collection of common custom errors used in multiple contracts
 *
 * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.
 * It is recommended to avoid relying on the error API for critical functionality.
 *
 * _Available since v5.1._
 */
library Errors {
    /**
     * @dev The ETH balance of the account is not enough to perform the operation.
     */
    error InsufficientBalance(uint256 balance, uint256 needed);

    /**
     * @dev A call to an address target failed. The target may have reverted.
     */
    error FailedCall();

    /**
     * @dev The deployment failed.
     */
    error FailedDeployment();

    /**
     * @dev A necessary precompile is missing.
     */
    error MissingPrecompile(address);
}

File 7 of 10 : IUniswapV3SwapCallback.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

/// @title Callback for IUniswapV3PoolActions#swap
/// @notice Any contract that calls IUniswapV3PoolActions#swap must implement this interface
interface IUniswapV3SwapCallback {
    /// @notice Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap.
    /// @dev In the implementation you must pay the pool tokens owed for the swap.
    /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.
    /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.
    /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by
    /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.
    /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by
    /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.
    /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#swap call
    function uniswapV3SwapCallback(
        int256 amount0Delta,
        int256 amount1Delta,
        bytes calldata data
    ) external;
}

File 8 of 10 : ISwapRouter.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.7.5;
pragma abicoder v2;

import '@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback.sol';

/// @title Router token swapping functionality
/// @notice Functions for swapping tokens via Uniswap V3
interface ISwapRouter is IUniswapV3SwapCallback {
    struct ExactInputSingleParams {
        address tokenIn;
        address tokenOut;
        uint24 fee;
        address recipient;
        uint256 deadline;
        uint256 amountIn;
        uint256 amountOutMinimum;
        uint160 sqrtPriceLimitX96;
    }

    /// @notice Swaps `amountIn` of one token for as much as possible of another token
    /// @param params The parameters necessary for the swap, encoded as `ExactInputSingleParams` in calldata
    /// @return amountOut The amount of the received token
    function exactInputSingle(ExactInputSingleParams calldata params) external payable returns (uint256 amountOut);

    struct ExactInputParams {
        bytes path;
        address recipient;
        uint256 deadline;
        uint256 amountIn;
        uint256 amountOutMinimum;
    }

    /// @notice Swaps `amountIn` of one token for as much as possible of another along the specified path
    /// @param params The parameters necessary for the multi-hop swap, encoded as `ExactInputParams` in calldata
    /// @return amountOut The amount of the received token
    function exactInput(ExactInputParams calldata params) external payable returns (uint256 amountOut);

    struct ExactOutputSingleParams {
        address tokenIn;
        address tokenOut;
        uint24 fee;
        address recipient;
        uint256 deadline;
        uint256 amountOut;
        uint256 amountInMaximum;
        uint160 sqrtPriceLimitX96;
    }

    /// @notice Swaps as little as possible of one token for `amountOut` of another token
    /// @param params The parameters necessary for the swap, encoded as `ExactOutputSingleParams` in calldata
    /// @return amountIn The amount of the input token
    function exactOutputSingle(ExactOutputSingleParams calldata params) external payable returns (uint256 amountIn);

    struct ExactOutputParams {
        bytes path;
        address recipient;
        uint256 deadline;
        uint256 amountOut;
        uint256 amountInMaximum;
    }

    /// @notice Swaps as little as possible of one token for `amountOut` of another along the specified path (reversed)
    /// @param params The parameters necessary for the multi-hop swap, encoded as `ExactOutputParams` in calldata
    /// @return amountIn The amount of the input token
    function exactOutput(ExactOutputParams calldata params) external payable returns (uint256 amountIn);
}

File 9 of 10 : IBanyumasanPoint.sol
pragma solidity ^0.8.28;

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

interface IBanyumasanPoint is IERC20 {
    function mint(address, uint256) external;
    function burn(address, uint256) external;
}

File 10 of 10 : IwS.sol
pragma solidity ^0.8.28;

interface IwS {
    function deposit() external payable;
    function withdraw(uint) external;
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "paris",
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_wS","type":"address"},{"internalType":"address","name":"_point","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"FailedCall","type":"error"},{"inputs":[{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"emergencyWithdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"send","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_swapRouter","type":"address"}],"name":"setRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenIn","type":"address"},{"internalType":"address","name":"_tokenOut","type":"address"},{"internalType":"address","name":"_sendTo","type":"address"},{"internalType":"uint256","name":"_amountIn","type":"uint256"},{"internalType":"uint24","name":"_feeTier","type":"uint24"}],"name":"swapTo","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b50604051610df2380380610df283398101604081905261002f916100fc565b338061005557604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b61005e81610090565b50600380546001600160a01b039384166001600160a01b0319918216179091556001805492909316911617905561012f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146100f757600080fd5b919050565b6000806040838503121561010f57600080fd5b610118836100e0565b9150610126602084016100e0565b90509250929050565b610cb48061013e6000396000f3fe6080604052600436106100955760003560e01c80638da5cb5b116100595780638da5cb5b14610131578063c0d7865514610159578063db2e21bc14610179578063ddca3f431461018e578063f2fde38b146101a457600080fd5b80631af03203146100a15780633e58c58c146100c357806369fe0e2d146100d6578063715018a6146100f65780638403adab1461010b57600080fd5b3661009c57005b600080fd5b3480156100ad57600080fd5b506100c16100bc366004610ab9565b6101c4565b005b6100c16100d1366004610ab9565b6102c2565b3480156100e257600080fd5b506100c16100f1366004610adb565b6103ef565b34801561010257600080fd5b506100c16103fc565b61011e610119366004610af4565b610410565b6040519081526020015b60405180910390f35b34801561013d57600080fd5b506000546040516001600160a01b039091168152602001610128565b34801561016557600080fd5b506100c1610174366004610ab9565b61071f565b34801561018557600080fd5b506100c1610749565b34801561019a57600080fd5b5061011e60045481565b3480156101b057600080fd5b506100c16101bf366004610ab9565b610764565b806001600160a01b03811663a9059cbb6101e66000546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa15801561022a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061024e9190610b5e565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610299573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102bd9190610b77565b505050565b34806103055760405162461bcd60e51b815260206004820152600d60248201526c56616c7565206973207a65726f60981b60448201526064015b60405180910390fd5b6000610319670de0b6b3a764000083610baf565b90508015610394576001546001600160a01b03166340c10f19336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b15801561037b57600080fd5b505af115801561038f573d6000803e3d6000fd5b505050505b600454156103e5576000620f4240600454846103b09190610bd1565b6103ba9190610baf565b90506103c68184610bee565b92506103e36103dd6000546001600160a01b031690565b826107a2565b505b6102bd83836107a2565b6103f7610838565b600455565b610404610838565b61040e6000610865565b565b600033818061043589846001600160a01b0382161561042f57886108b5565b346108b5565b9050886001600160a01b038084169082160361054d57600061045f678ac7230489e8000084610baf565b11156104e8576001546001600160a01b03166340c10f1989610489678ac7230489e8000086610baf565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156104cf57600080fd5b505af11580156104e3573d6000803e3d6000fd5b505050505b5060035460408051630d0e30db60e41b815290516001600160a01b0390921691829163d0e30db091859160048082019260009290919082900301818588803b15801561053357600080fd5b505af1158015610547573d6000803e3d6000fd5b50505050505b88886001600160a01b03808616908316036105725750506003546001600160a01b0316305b6003548c906001600160a01b03808316911614610604576040516323b872dd60e01b81526001600160a01b038881166004830152306024830152604482018c90528216906323b872dd906064016020604051808303816000875af11580156105de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106029190610b77565b505b60025460405163095ea7b360e01b81526001600160a01b039182166004820152602481018c90529082169063095ea7b3906044016020604051808303816000875af1158015610657573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061067b9190610b77565b50600061068b838686898e6109ad565b9050866001600160a01b03168d6001600160a01b03160361070e57600354604051632e1a7d4d60e01b8152600481018390526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b1580156106ec57600080fd5b505af1158015610700573d6000803e3d6000fd5b5050505061070e8c826107a2565b9d9c50505050505050505050505050565b610727610838565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b61040e61075e6000546001600160a01b031690565b476107a2565b61076c610838565b6001600160a01b03811661079657604051631e4fbdf760e01b8152600060048201526024016102fc565b61079f81610865565b50565b804710156107cc5760405163cf47918160e01b8152476004820152602481018290526044016102fc565b600080836001600160a01b03168360405160006040518083038185875af1925050503d806000811461081a576040519150601f19603f3d011682016040523d82523d6000602084013e61081f565b606091505b5091509150816108325761083281610a74565b50505050565b6000546001600160a01b0316331461040e5760405163118cdaa760e01b81523360048201526024016102fc565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080620f4240600454846108ca9190610bd1565b6108d49190610baf565b90506001600160a01b0385166108fe576108f96103dd6000546001600160a01b031690565b61099a565b846001600160a01b03166323b872dd856109206000546001600160a01b031690565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604481018490526064016020604051808303816000875af1158015610974573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109989190610b77565b505b6109a48184610bee565b95945050505050565b60408051610100810182526001600160a01b038087168252858116602083015262ffffff841682840152878116606083015242608083015260a08201859052600060c0830181905260e08301819052600254935163414bf38960e01b815290938492169063414bf38990610a25908590600401610c01565b6020604051808303816000875af1158015610a44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a689190610b5e565b98975050505050505050565b805115610a845780518082602001fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610ab457600080fd5b919050565b600060208284031215610acb57600080fd5b610ad482610a9d565b9392505050565b600060208284031215610aed57600080fd5b5035919050565b600080600080600060a08688031215610b0c57600080fd5b610b1586610a9d565b9450610b2360208701610a9d565b9350610b3160408701610a9d565b925060608601359150608086013562ffffff81168114610b5057600080fd5b809150509295509295909350565b600060208284031215610b7057600080fd5b5051919050565b600060208284031215610b8957600080fd5b81518015158114610ad457600080fd5b634e487b7160e01b600052601160045260246000fd5b600082610bcc57634e487b7160e01b600052601260045260246000fd5b500490565b8082028115828204841417610be857610be8610b99565b92915050565b81810381811115610be857610be8610b99565b81516001600160a01b03908116825260208084015182169083015260408084015162ffffff169083015260608084015191821690830152610100820190506080830151608083015260a083015160a083015260c083015160c083015260e0830151610c7760e08401826001600160a01b03169052565b509291505056fea2646970667358221220288ad5f5ec98f475e6aa124be42af4c8d54cf9e64c59d926157116975dd3fcdf64736f6c634300081c0033000000000000000000000000ca9f9929b46e98a8b2d760bfa72bebb7416f9d1e0000000000000000000000003ea5539ba6a34341a222a47f19704567da60a58c

Deployed Bytecode

0x6080604052600436106100955760003560e01c80638da5cb5b116100595780638da5cb5b14610131578063c0d7865514610159578063db2e21bc14610179578063ddca3f431461018e578063f2fde38b146101a457600080fd5b80631af03203146100a15780633e58c58c146100c357806369fe0e2d146100d6578063715018a6146100f65780638403adab1461010b57600080fd5b3661009c57005b600080fd5b3480156100ad57600080fd5b506100c16100bc366004610ab9565b6101c4565b005b6100c16100d1366004610ab9565b6102c2565b3480156100e257600080fd5b506100c16100f1366004610adb565b6103ef565b34801561010257600080fd5b506100c16103fc565b61011e610119366004610af4565b610410565b6040519081526020015b60405180910390f35b34801561013d57600080fd5b506000546040516001600160a01b039091168152602001610128565b34801561016557600080fd5b506100c1610174366004610ab9565b61071f565b34801561018557600080fd5b506100c1610749565b34801561019a57600080fd5b5061011e60045481565b3480156101b057600080fd5b506100c16101bf366004610ab9565b610764565b806001600160a01b03811663a9059cbb6101e66000546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa15801561022a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061024e9190610b5e565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610299573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102bd9190610b77565b505050565b34806103055760405162461bcd60e51b815260206004820152600d60248201526c56616c7565206973207a65726f60981b60448201526064015b60405180910390fd5b6000610319670de0b6b3a764000083610baf565b90508015610394576001546001600160a01b03166340c10f19336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b15801561037b57600080fd5b505af115801561038f573d6000803e3d6000fd5b505050505b600454156103e5576000620f4240600454846103b09190610bd1565b6103ba9190610baf565b90506103c68184610bee565b92506103e36103dd6000546001600160a01b031690565b826107a2565b505b6102bd83836107a2565b6103f7610838565b600455565b610404610838565b61040e6000610865565b565b600033818061043589846001600160a01b0382161561042f57886108b5565b346108b5565b9050886001600160a01b038084169082160361054d57600061045f678ac7230489e8000084610baf565b11156104e8576001546001600160a01b03166340c10f1989610489678ac7230489e8000086610baf565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156104cf57600080fd5b505af11580156104e3573d6000803e3d6000fd5b505050505b5060035460408051630d0e30db60e41b815290516001600160a01b0390921691829163d0e30db091859160048082019260009290919082900301818588803b15801561053357600080fd5b505af1158015610547573d6000803e3d6000fd5b50505050505b88886001600160a01b03808616908316036105725750506003546001600160a01b0316305b6003548c906001600160a01b03808316911614610604576040516323b872dd60e01b81526001600160a01b038881166004830152306024830152604482018c90528216906323b872dd906064016020604051808303816000875af11580156105de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106029190610b77565b505b60025460405163095ea7b360e01b81526001600160a01b039182166004820152602481018c90529082169063095ea7b3906044016020604051808303816000875af1158015610657573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061067b9190610b77565b50600061068b838686898e6109ad565b9050866001600160a01b03168d6001600160a01b03160361070e57600354604051632e1a7d4d60e01b8152600481018390526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b1580156106ec57600080fd5b505af1158015610700573d6000803e3d6000fd5b5050505061070e8c826107a2565b9d9c50505050505050505050505050565b610727610838565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b61040e61075e6000546001600160a01b031690565b476107a2565b61076c610838565b6001600160a01b03811661079657604051631e4fbdf760e01b8152600060048201526024016102fc565b61079f81610865565b50565b804710156107cc5760405163cf47918160e01b8152476004820152602481018290526044016102fc565b600080836001600160a01b03168360405160006040518083038185875af1925050503d806000811461081a576040519150601f19603f3d011682016040523d82523d6000602084013e61081f565b606091505b5091509150816108325761083281610a74565b50505050565b6000546001600160a01b0316331461040e5760405163118cdaa760e01b81523360048201526024016102fc565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080620f4240600454846108ca9190610bd1565b6108d49190610baf565b90506001600160a01b0385166108fe576108f96103dd6000546001600160a01b031690565b61099a565b846001600160a01b03166323b872dd856109206000546001600160a01b031690565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604481018490526064016020604051808303816000875af1158015610974573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109989190610b77565b505b6109a48184610bee565b95945050505050565b60408051610100810182526001600160a01b038087168252858116602083015262ffffff841682840152878116606083015242608083015260a08201859052600060c0830181905260e08301819052600254935163414bf38960e01b815290938492169063414bf38990610a25908590600401610c01565b6020604051808303816000875af1158015610a44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a689190610b5e565b98975050505050505050565b805115610a845780518082602001fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610ab457600080fd5b919050565b600060208284031215610acb57600080fd5b610ad482610a9d565b9392505050565b600060208284031215610aed57600080fd5b5035919050565b600080600080600060a08688031215610b0c57600080fd5b610b1586610a9d565b9450610b2360208701610a9d565b9350610b3160408701610a9d565b925060608601359150608086013562ffffff81168114610b5057600080fd5b809150509295509295909350565b600060208284031215610b7057600080fd5b5051919050565b600060208284031215610b8957600080fd5b81518015158114610ad457600080fd5b634e487b7160e01b600052601160045260246000fd5b600082610bcc57634e487b7160e01b600052601260045260246000fd5b500490565b8082028115828204841417610be857610be8610b99565b92915050565b81810381811115610be857610be8610b99565b81516001600160a01b03908116825260208084015182169083015260408084015162ffffff169083015260608084015191821690830152610100820190506080830151608083015260a083015160a083015260c083015160c083015260e0830151610c7760e08401826001600160a01b03169052565b509291505056fea2646970667358221220288ad5f5ec98f475e6aa124be42af4c8d54cf9e64c59d926157116975dd3fcdf64736f6c634300081c0033

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

000000000000000000000000ca9f9929b46e98a8b2d760bfa72bebb7416f9d1e0000000000000000000000003ea5539ba6a34341a222a47f19704567da60a58c

-----Decoded View---------------
Arg [0] : _wS (address): 0xcA9F9929B46E98a8B2D760bFA72bEBb7416F9d1E
Arg [1] : _point (address): 0x3Ea5539ba6A34341A222a47F19704567da60a58C

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000ca9f9929b46e98a8b2d760bfa72bebb7416f9d1e
Arg [1] : 0000000000000000000000003ea5539ba6a34341a222a47f19704567da60a58c


Block Transaction 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
[ Download: CSV Export  ]
[ 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.