Overview
S Balance
S Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Fee | 5465323 | 13 days ago | IN | 0 S | 0.00228855 |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
NolazHelper
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)
pragma solidity ^0.8.28; import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol"; import { Address } from "@openzeppelin/contracts/utils/Address.sol"; import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import { ISwapRouter } from "@uniswap/v3-periphery/contracts/interfaces/ISwapRouter.sol"; import { INolazPoint } from "./interfaces/INolazPoint.sol"; import { IwS } from "./interfaces/IwS.sol"; contract NolazHelper is Ownable { INolazPoint private point; ISwapRouter private swapRouter; IwS private wS; uint256 public fee; constructor(address _wS, address _point) Ownable(_msgSender()) { wS = IwS(_wS); point = INolazPoint(_point); } receive() external payable {} 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 returns (uint256) { uint256 value = msg.value; require(value > 0, "Value is zero"); uint256 pointAmount = value / 1e18; if (pointAmount > 0) { point.mint(_msgSender(), pointAmount); } uint256 tempFee = fee; if (tempFee > 0) { uint256 valueFee = value * tempFee / 1e6; value -= valueFee; Address.sendValue(payable(owner()), valueFee); } Address.sendValue(payable(_to), value); return value; } function sendToken(address _token, address _to, uint256 _value) external returns (uint256) { uint256 value = _value; require(value > 0, "Amount is zero"); IERC20 token = IERC20(_token); uint256 tempFee = fee; if (tempFee > 0) { uint256 valueFee = value * tempFee / 1e6; value -= valueFee; token.transferFrom(_msgSender(), owner(), valueFee); } token.transferFrom(_msgSender(), _to, value); return value; } 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; } }
// 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); } }
// 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); }
// 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(); } } }
// 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; } }
// 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); }
// 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; }
// 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); }
pragma solidity ^0.8.28; interface INolazPoint { function mint(address, uint256) external; function burn(address, uint256) external; }
pragma solidity ^0.8.28; interface IwS { function deposit() external payable; function withdraw(uint) external; }
{ "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"sendToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","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"}]
Contract Creation Code
608060405234801561001057600080fd5b50604051610fde380380610fde83398101604081905261002f916100fc565b338061005557604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b61005e81610090565b50600380546001600160a01b039384166001600160a01b0319918216179091556001805492909316911617905561012f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146100f757600080fd5b919050565b6000806040838503121561010f57600080fd5b610118836100e0565b9150610126602084016100e0565b90509250929050565b610ea08061013e6000396000f3fe6080604052600436106100a05760003560e01c80638403adab116100645780638403adab146101495780638da5cb5b1461015c578063c0d7865514610184578063db2e21bc146101a4578063ddca3f43146101b9578063f2fde38b146101cf57600080fd5b80631af03203146100ac5780632fdcfbd2146100ce5780633e58c58c1461010157806369fe0e2d14610114578063715018a61461013457600080fd5b366100a757005b600080fd5b3480156100b857600080fd5b506100cc6100c7366004610c44565b6101ef565b005b3480156100da57600080fd5b506100ee6100e9366004610c66565b6102ed565b6040519081526020015b60405180910390f35b6100ee61010f366004610c44565b610466565b34801561012057600080fd5b506100cc61012f366004610ca3565b610596565b34801561014057600080fd5b506100cc6105a3565b6100ee610157366004610cbc565b6105b7565b34801561016857600080fd5b506000546040516001600160a01b0390911681526020016100f8565b34801561019057600080fd5b506100cc61019f366004610c44565b6108c0565b3480156101b057600080fd5b506100cc6108ea565b3480156101c557600080fd5b506100ee60045481565b3480156101db57600080fd5b506100cc6101ea366004610c44565b610905565b806001600160a01b03811663a9059cbb6102116000546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa158015610255573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102799190610d26565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af11580156102c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102e89190610d3f565b505050565b600081806103335760405162461bcd60e51b815260206004820152600e60248201526d416d6f756e74206973207a65726f60901b60448201526064015b60405180910390fd5b600454859080156103e7576000620f424061034e8386610d77565b6103589190610d94565b90506103648185610db6565b93506001600160a01b0383166323b872dd336000546001600160a01b0316846040518463ffffffff1660e01b81526004016103a193929190610dc9565b6020604051808303816000875af11580156103c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103e49190610d3f565b50505b6040516323b872dd60e01b81526001600160a01b038316906323b872dd906104179033908a908890600401610dc9565b6020604051808303816000875af1158015610436573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061045a9190610d3f565b50919695505050505050565b600034806104a65760405162461bcd60e51b815260206004820152600d60248201526c56616c7565206973207a65726f60981b604482015260640161032a565b60006104ba670de0b6b3a764000083610d94565b90508015610535576001546001600160a01b03166340c10f19336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b15801561051c57600080fd5b505af1158015610530573d6000803e3d6000fd5b505050505b6004548015610583576000620f424061054e8386610d77565b6105589190610d94565b90506105648185610db6565b935061058161057b6000546001600160a01b031690565b82610943565b505b61058d8584610943565b50909392505050565b61059e6109d9565b600455565b6105ab6109d9565b6105b56000610a06565b565b60003381806105dc89846001600160a01b038216156105d65788610a56565b34610a56565b9050886001600160a01b03808416908216036106f4576000610606678ac7230489e8000084610d94565b111561068f576001546001600160a01b03166340c10f1989610630678ac7230489e8000086610d94565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561067657600080fd5b505af115801561068a573d6000803e3d6000fd5b505050505b5060035460408051630d0e30db60e41b815290516001600160a01b0390921691829163d0e30db091859160048082019260009290919082900301818588803b1580156106da57600080fd5b505af11580156106ee573d6000803e3d6000fd5b50505050505b88886001600160a01b03808616908316036107195750506003546001600160a01b0316305b6003548c906001600160a01b038083169116146107a5576040516323b872dd60e01b81526001600160a01b038216906323b872dd90610760908a9030908f90600401610dc9565b6020604051808303816000875af115801561077f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a39190610d3f565b505b60025460405163095ea7b360e01b81526001600160a01b039182166004820152602481018c90529082169063095ea7b3906044016020604051808303816000875af11580156107f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061081c9190610d3f565b50600061082c838686898e610b38565b9050866001600160a01b03168d6001600160a01b0316036108af57600354604051632e1a7d4d60e01b8152600481018390526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b15801561088d57600080fd5b505af11580156108a1573d6000803e3d6000fd5b505050506108af8c82610943565b9d9c50505050505050505050505050565b6108c86109d9565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6105b56108ff6000546001600160a01b031690565b47610943565b61090d6109d9565b6001600160a01b03811661093757604051631e4fbdf760e01b81526000600482015260240161032a565b61094081610a06565b50565b8047101561096d5760405163cf47918160e01b81524760048201526024810182905260440161032a565b600080836001600160a01b03168360405160006040518083038185875af1925050503d80600081146109bb576040519150601f19603f3d011682016040523d82523d6000602084013e6109c0565b606091505b5091509150816109d3576109d381610bff565b50505050565b6000546001600160a01b031633146105b55760405163118cdaa760e01b815233600482015260240161032a565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080620f424060045484610a6b9190610d77565b610a759190610d94565b90506001600160a01b038516610a9f57610a9a61057b6000546001600160a01b031690565b610b25565b846001600160a01b03166323b872dd85610ac16000546001600160a01b031690565b846040518463ffffffff1660e01b8152600401610ae093929190610dc9565b6020604051808303816000875af1158015610aff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b239190610d3f565b505b610b2f8184610db6565b95945050505050565b60408051610100810182526001600160a01b038087168252858116602083015262ffffff841682840152878116606083015242608083015260a08201859052600060c0830181905260e08301819052600254935163414bf38960e01b815290938492169063414bf38990610bb0908590600401610ded565b6020604051808303816000875af1158015610bcf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bf39190610d26565b98975050505050505050565b805115610c0f5780518082602001fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c3f57600080fd5b919050565b600060208284031215610c5657600080fd5b610c5f82610c28565b9392505050565b600080600060608486031215610c7b57600080fd5b610c8484610c28565b9250610c9260208501610c28565b929592945050506040919091013590565b600060208284031215610cb557600080fd5b5035919050565b600080600080600060a08688031215610cd457600080fd5b610cdd86610c28565b9450610ceb60208701610c28565b9350610cf960408701610c28565b925060608601359150608086013562ffffff81168114610d1857600080fd5b809150509295509295909350565b600060208284031215610d3857600080fd5b5051919050565b600060208284031215610d5157600080fd5b81518015158114610c5f57600080fd5b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610d8e57610d8e610d61565b92915050565b600082610db157634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610d8e57610d8e610d61565b6001600160a01b039384168152919092166020820152604081019190915260600190565b81516001600160a01b03908116825260208084015182169083015260408084015162ffffff169083015260608084015191821690830152610100820190506080830151608083015260a083015160a083015260c083015160c083015260e0830151610e6360e08401826001600160a01b03169052565b509291505056fea26469706673582212200cf58708e3715090002c378afae81ac0edeb86f941900a19835fdd51e92717f664736f6c634300081c0033000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad380000000000000000000000005aeb1047ff6c482a6859e20dff5418317f53bc7f
Deployed Bytecode
0x6080604052600436106100a05760003560e01c80638403adab116100645780638403adab146101495780638da5cb5b1461015c578063c0d7865514610184578063db2e21bc146101a4578063ddca3f43146101b9578063f2fde38b146101cf57600080fd5b80631af03203146100ac5780632fdcfbd2146100ce5780633e58c58c1461010157806369fe0e2d14610114578063715018a61461013457600080fd5b366100a757005b600080fd5b3480156100b857600080fd5b506100cc6100c7366004610c44565b6101ef565b005b3480156100da57600080fd5b506100ee6100e9366004610c66565b6102ed565b6040519081526020015b60405180910390f35b6100ee61010f366004610c44565b610466565b34801561012057600080fd5b506100cc61012f366004610ca3565b610596565b34801561014057600080fd5b506100cc6105a3565b6100ee610157366004610cbc565b6105b7565b34801561016857600080fd5b506000546040516001600160a01b0390911681526020016100f8565b34801561019057600080fd5b506100cc61019f366004610c44565b6108c0565b3480156101b057600080fd5b506100cc6108ea565b3480156101c557600080fd5b506100ee60045481565b3480156101db57600080fd5b506100cc6101ea366004610c44565b610905565b806001600160a01b03811663a9059cbb6102116000546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa158015610255573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102799190610d26565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af11580156102c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102e89190610d3f565b505050565b600081806103335760405162461bcd60e51b815260206004820152600e60248201526d416d6f756e74206973207a65726f60901b60448201526064015b60405180910390fd5b600454859080156103e7576000620f424061034e8386610d77565b6103589190610d94565b90506103648185610db6565b93506001600160a01b0383166323b872dd336000546001600160a01b0316846040518463ffffffff1660e01b81526004016103a193929190610dc9565b6020604051808303816000875af11580156103c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103e49190610d3f565b50505b6040516323b872dd60e01b81526001600160a01b038316906323b872dd906104179033908a908890600401610dc9565b6020604051808303816000875af1158015610436573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061045a9190610d3f565b50919695505050505050565b600034806104a65760405162461bcd60e51b815260206004820152600d60248201526c56616c7565206973207a65726f60981b604482015260640161032a565b60006104ba670de0b6b3a764000083610d94565b90508015610535576001546001600160a01b03166340c10f19336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b15801561051c57600080fd5b505af1158015610530573d6000803e3d6000fd5b505050505b6004548015610583576000620f424061054e8386610d77565b6105589190610d94565b90506105648185610db6565b935061058161057b6000546001600160a01b031690565b82610943565b505b61058d8584610943565b50909392505050565b61059e6109d9565b600455565b6105ab6109d9565b6105b56000610a06565b565b60003381806105dc89846001600160a01b038216156105d65788610a56565b34610a56565b9050886001600160a01b03808416908216036106f4576000610606678ac7230489e8000084610d94565b111561068f576001546001600160a01b03166340c10f1989610630678ac7230489e8000086610d94565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561067657600080fd5b505af115801561068a573d6000803e3d6000fd5b505050505b5060035460408051630d0e30db60e41b815290516001600160a01b0390921691829163d0e30db091859160048082019260009290919082900301818588803b1580156106da57600080fd5b505af11580156106ee573d6000803e3d6000fd5b50505050505b88886001600160a01b03808616908316036107195750506003546001600160a01b0316305b6003548c906001600160a01b038083169116146107a5576040516323b872dd60e01b81526001600160a01b038216906323b872dd90610760908a9030908f90600401610dc9565b6020604051808303816000875af115801561077f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a39190610d3f565b505b60025460405163095ea7b360e01b81526001600160a01b039182166004820152602481018c90529082169063095ea7b3906044016020604051808303816000875af11580156107f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061081c9190610d3f565b50600061082c838686898e610b38565b9050866001600160a01b03168d6001600160a01b0316036108af57600354604051632e1a7d4d60e01b8152600481018390526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b15801561088d57600080fd5b505af11580156108a1573d6000803e3d6000fd5b505050506108af8c82610943565b9d9c50505050505050505050505050565b6108c86109d9565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6105b56108ff6000546001600160a01b031690565b47610943565b61090d6109d9565b6001600160a01b03811661093757604051631e4fbdf760e01b81526000600482015260240161032a565b61094081610a06565b50565b8047101561096d5760405163cf47918160e01b81524760048201526024810182905260440161032a565b600080836001600160a01b03168360405160006040518083038185875af1925050503d80600081146109bb576040519150601f19603f3d011682016040523d82523d6000602084013e6109c0565b606091505b5091509150816109d3576109d381610bff565b50505050565b6000546001600160a01b031633146105b55760405163118cdaa760e01b815233600482015260240161032a565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080620f424060045484610a6b9190610d77565b610a759190610d94565b90506001600160a01b038516610a9f57610a9a61057b6000546001600160a01b031690565b610b25565b846001600160a01b03166323b872dd85610ac16000546001600160a01b031690565b846040518463ffffffff1660e01b8152600401610ae093929190610dc9565b6020604051808303816000875af1158015610aff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b239190610d3f565b505b610b2f8184610db6565b95945050505050565b60408051610100810182526001600160a01b038087168252858116602083015262ffffff841682840152878116606083015242608083015260a08201859052600060c0830181905260e08301819052600254935163414bf38960e01b815290938492169063414bf38990610bb0908590600401610ded565b6020604051808303816000875af1158015610bcf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bf39190610d26565b98975050505050505050565b805115610c0f5780518082602001fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c3f57600080fd5b919050565b600060208284031215610c5657600080fd5b610c5f82610c28565b9392505050565b600080600060608486031215610c7b57600080fd5b610c8484610c28565b9250610c9260208501610c28565b929592945050506040919091013590565b600060208284031215610cb557600080fd5b5035919050565b600080600080600060a08688031215610cd457600080fd5b610cdd86610c28565b9450610ceb60208701610c28565b9350610cf960408701610c28565b925060608601359150608086013562ffffff81168114610d1857600080fd5b809150509295509295909350565b600060208284031215610d3857600080fd5b5051919050565b600060208284031215610d5157600080fd5b81518015158114610c5f57600080fd5b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610d8e57610d8e610d61565b92915050565b600082610db157634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610d8e57610d8e610d61565b6001600160a01b039384168152919092166020820152604081019190915260600190565b81516001600160a01b03908116825260208084015182169083015260408084015162ffffff169083015260608084015191821690830152610100820190506080830151608083015260a083015160a083015260c083015160c083015260e0830151610e6360e08401826001600160a01b03169052565b509291505056fea26469706673582212200cf58708e3715090002c378afae81ac0edeb86f941900a19835fdd51e92717f664736f6c634300081c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad380000000000000000000000005aeb1047ff6c482a6859e20dff5418317f53bc7f
-----Decoded View---------------
Arg [0] : _wS (address): 0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38
Arg [1] : _point (address): 0x5AEb1047Ff6C482a6859e20dfF5418317F53Bc7f
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad38
Arg [1] : 0000000000000000000000005aeb1047ff6c482a6859e20dff5418317f53bc7f
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ 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.