More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 1,574 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer | 16637201 | 717 days ago | IN | 0.05991647 ETH | 0.00088321 | ||||
Swap | 16545568 | 730 days ago | IN | 0 ETH | 0.00158406 | ||||
Swap | 16545556 | 730 days ago | IN | 0 ETH | 0.00186818 | ||||
Swap | 16542824 | 730 days ago | IN | 0 ETH | 0.00358483 | ||||
Swap | 16542791 | 730 days ago | IN | 0 ETH | 0.00137993 | ||||
Swap | 16542773 | 730 days ago | IN | 0 ETH | 0.00134008 | ||||
Swap | 16491055 | 737 days ago | IN | 0 ETH | 0.00200722 | ||||
Swap | 16491054 | 737 days ago | IN | 0 ETH | 0.00178193 | ||||
Swap | 16491041 | 737 days ago | IN | 0 ETH | 0.00185005 | ||||
Swap | 16491027 | 737 days ago | IN | 0 ETH | 0.00190937 | ||||
Swap | 16463938 | 741 days ago | IN | 0 ETH | 0.0010592 | ||||
Swap | 16460272 | 742 days ago | IN | 0 ETH | 0.00096787 | ||||
Swap | 16460269 | 742 days ago | IN | 0 ETH | 0.0008773 | ||||
Swap | 16460266 | 742 days ago | IN | 0 ETH | 0.00084993 | ||||
Swap | 16437493 | 745 days ago | IN | 0 ETH | 0.00483141 | ||||
Swap | 16416612 | 748 days ago | IN | 0 ETH | 0.00233675 | ||||
Swap | 16416274 | 748 days ago | IN | 0 ETH | 0.0022641 | ||||
Swap | 16412037 | 748 days ago | IN | 0 ETH | 0.00037788 | ||||
Swap | 16412037 | 748 days ago | IN | 0 ETH | 0.00037788 | ||||
Swap | 16411331 | 749 days ago | IN | 0 ETH | 0.00241893 | ||||
Swap | 16411323 | 749 days ago | IN | 0 ETH | 0.00199206 | ||||
Swap | 16398156 | 750 days ago | IN | 0 ETH | 0.00250665 | ||||
Swap | 16398150 | 750 days ago | IN | 0 ETH | 0.00226866 | ||||
Swap | 16398146 | 750 days ago | IN | 0 ETH | 0.00235247 | ||||
Swap | 16394389 | 751 days ago | IN | 0 ETH | 0.00272618 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
WCIBCBSwap
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol'; interface IERC20Decimals is IERC20 { function decimals() external view returns (uint8); } /** * @title WCIBCBSwap * @dev Swap WCI for BCB */ contract WCIBCBSwap is Ownable { using SafeERC20 for IERC20Decimals; IERC20Decimals private wciV1; IERC20Decimals private wciV2; mapping(address => bool) public swapped; constructor(address _v1, address _v2) { wciV1 = IERC20Decimals(_v1); wciV2 = IERC20Decimals(_v2); } function swap() external { require(!swapped[msg.sender], 'SWAP1: already swapped'); swapped[msg.sender] = true; uint256 _v1Bal = wciV1.balanceOf(msg.sender); require(_v1Bal > 0, 'SWAP2: no V1 tokens'); uint256 _v2Amount = (_v1Bal * 10**wciV2.decimals()) / 10**wciV1.decimals(); require(wciV2.balanceOf(owner()) >= _v2Amount, 'SWAP3: V2 liquidity'); wciV1.safeTransferFrom(msg.sender, address(this), _v1Bal); wciV2.safeTransferFrom(owner(), msg.sender, _v2Amount); } function v1() external view returns (address) { return address(wciV1); } function v2() external view returns (address) { return address(wciV2); } function setSwapped(address _wallet, bool _swapped) external onlyOwner { swapped[_wallet] = _swapped; } function withdrawTokens(address _tokenAddy, uint256 _amount) external onlyOwner { IERC20Decimals _token = IERC20Decimals(_tokenAddy); _amount = _amount > 0 ? _amount : _token.balanceOf(address(this)); require(_amount > 0, 'make sure there is a balance available to withdraw'); _token.safeTransfer(owner(), _amount); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../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. * * By default, the owner account will be the one that deploys the contract. 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; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(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 { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using 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' 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) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _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 require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @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; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @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"); (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"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private pure returns (bytes memory) { 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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
{ "metadata": { "bytecodeHash": "none" }, "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_v1","type":"address"},{"internalType":"address","name":"_v2","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"},{"internalType":"bool","name":"_swapped","type":"bool"}],"name":"setSwapped","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"swapped","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"v1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"v2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddy","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50604051610e68380380610e6883398101604081905261002f916100d5565b61003833610069565b600180546001600160a01b039384166001600160a01b03199182161790915560028054929093169116179055610108565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146100d057600080fd5b919050565b600080604083850312156100e857600080fd5b6100f1836100b9565b91506100ff602084016100b9565b90509250929050565b610d51806101176000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c80638119c065116100665780638119c065146100f257806381c61090146100fa5780638da5cb5b1461012d578063f2fde38b1461013e578063f3acae3a1461015157600080fd5b806306b091f91461009857806307127168146100ad5780636854171d146100c0578063715018a6146100ea575b600080fd5b6100ab6100a6366004610a75565b610162565b005b6100ab6100bb366004610aad565b6102a2565b6001546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b6100ab6102f7565b6100ab61032d565b61011d610108366004610ae4565b60036020526000908152604090205460ff1681565b60405190151581526020016100e1565b6000546001600160a01b03166100cd565b6100ab61014c366004610ae4565b610681565b6002546001600160a01b03166100cd565b6000546001600160a01b031633146101955760405162461bcd60e51b815260040161018c90610aff565b60405180910390fd5b8181610208576040516370a0823160e01b81523060048201526001600160a01b038216906370a0823190602401602060405180830381865afa1580156101df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102039190610b34565b61020a565b815b9150600082116102775760405162461bcd60e51b815260206004820152603260248201527f6d616b65207375726520746865726520697320612062616c616e636520617661604482015271696c61626c6520746f20776974686472617760701b606482015260840161018c565b61029d61028c6000546001600160a01b031690565b6001600160a01b038316908461071c565b505050565b6000546001600160a01b031633146102cc5760405162461bcd60e51b815260040161018c90610aff565b6001600160a01b03919091166000908152600360205260409020805460ff1916911515919091179055565b6000546001600160a01b031633146103215760405162461bcd60e51b815260040161018c90610aff565b61032b600061077f565b565b3360009081526003602052604090205460ff16156103865760405162461bcd60e51b815260206004820152601660248201527514d5d0540c4e88185b1c9958591e481cddd85c1c195960521b604482015260640161018c565b33600081815260036020526040808220805460ff191660019081179091555490516370a0823160e01b8152600481019390935290916001600160a01b03909116906370a0823190602401602060405180830381865afa1580156103ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104119190610b34565b9050600081116104595760405162461bcd60e51b815260206004820152601360248201527253574150323a206e6f20563120746f6b656e7360681b604482015260640161018c565b6001546040805163313ce56760e01b815290516000926001600160a01b03169163313ce5679160048083019260209291908290030181865afa1580156104a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104c79190610b4d565b6104d290600a610c6c565b600260009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610525573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105499190610b4d565b61055490600a610c6c565b61055e9084610c7b565b6105689190610c92565b60025490915081906001600160a01b03166370a082316105906000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa1580156105d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f89190610b34565b101561063c5760405162461bcd60e51b815260206004820152601360248201527253574150333a205632206c697175696469747960681b604482015260640161018c565b600154610654906001600160a01b03163330856107cf565b61067d6106696000546001600160a01b031690565b6002546001600160a01b03169033846107cf565b5050565b6000546001600160a01b031633146106ab5760405162461bcd60e51b815260040161018c90610aff565b6001600160a01b0381166107105760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161018c565b6107198161077f565b50565b6040516001600160a01b03831660248201526044810182905261029d90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261080d565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b03808516602483015283166044820152606481018290526108079085906323b872dd60e01b90608401610748565b50505050565b6000610862826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166108df9092919063ffffffff16565b80519091501561029d57808060200190518101906108809190610cb4565b61029d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161018c565b60606108ee84846000856108f8565b90505b9392505050565b6060824710156109595760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161018c565b843b6109a75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161018c565b600080866001600160a01b031685876040516109c39190610cf5565b60006040518083038185875af1925050503d8060008114610a00576040519150601f19603f3d011682016040523d82523d6000602084013e610a05565b606091505b5091509150610a15828286610a20565b979650505050505050565b60608315610a2f5750816108f1565b825115610a3f5782518084602001fd5b8160405162461bcd60e51b815260040161018c9190610d11565b80356001600160a01b0381168114610a7057600080fd5b919050565b60008060408385031215610a8857600080fd5b610a9183610a59565b946020939093013593505050565b801515811461071957600080fd5b60008060408385031215610ac057600080fd5b610ac983610a59565b91506020830135610ad981610a9f565b809150509250929050565b600060208284031215610af657600080fd5b6108f182610a59565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215610b4657600080fd5b5051919050565b600060208284031215610b5f57600080fd5b815160ff811681146108f157600080fd5b634e487b7160e01b600052601160045260246000fd5b600181815b80851115610bc1578160001904821115610ba757610ba7610b70565b80851615610bb457918102915b93841c9390800290610b8b565b509250929050565b600082610bd857506001610c66565b81610be557506000610c66565b8160018114610bfb5760028114610c0557610c21565b6001915050610c66565b60ff841115610c1657610c16610b70565b50506001821b610c66565b5060208310610133831016604e8410600b8410161715610c44575081810a610c66565b610c4e8383610b86565b8060001904821115610c6257610c62610b70565b0290505b92915050565b60006108f160ff841683610bc9565b8082028115828204841417610c6657610c66610b70565b600082610caf57634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215610cc657600080fd5b81516108f181610a9f565b60005b83811015610cec578181015183820152602001610cd4565b50506000910152565b60008251610d07818460208701610cd1565b9190910192915050565b6020815260008251806020840152610d30816040850160208701610cd1565b601f01601f1916919091016040019291505056fea164736f6c6343000811000a000000000000000000000000c5a9bc46a7dbe1c6de493e84a18f02e70e2c5a320000000000000000000000002d886570a0da04885bfd6eb48ed8b8ff01a0eb7e
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100935760003560e01c80638119c065116100665780638119c065146100f257806381c61090146100fa5780638da5cb5b1461012d578063f2fde38b1461013e578063f3acae3a1461015157600080fd5b806306b091f91461009857806307127168146100ad5780636854171d146100c0578063715018a6146100ea575b600080fd5b6100ab6100a6366004610a75565b610162565b005b6100ab6100bb366004610aad565b6102a2565b6001546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b6100ab6102f7565b6100ab61032d565b61011d610108366004610ae4565b60036020526000908152604090205460ff1681565b60405190151581526020016100e1565b6000546001600160a01b03166100cd565b6100ab61014c366004610ae4565b610681565b6002546001600160a01b03166100cd565b6000546001600160a01b031633146101955760405162461bcd60e51b815260040161018c90610aff565b60405180910390fd5b8181610208576040516370a0823160e01b81523060048201526001600160a01b038216906370a0823190602401602060405180830381865afa1580156101df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102039190610b34565b61020a565b815b9150600082116102775760405162461bcd60e51b815260206004820152603260248201527f6d616b65207375726520746865726520697320612062616c616e636520617661604482015271696c61626c6520746f20776974686472617760701b606482015260840161018c565b61029d61028c6000546001600160a01b031690565b6001600160a01b038316908461071c565b505050565b6000546001600160a01b031633146102cc5760405162461bcd60e51b815260040161018c90610aff565b6001600160a01b03919091166000908152600360205260409020805460ff1916911515919091179055565b6000546001600160a01b031633146103215760405162461bcd60e51b815260040161018c90610aff565b61032b600061077f565b565b3360009081526003602052604090205460ff16156103865760405162461bcd60e51b815260206004820152601660248201527514d5d0540c4e88185b1c9958591e481cddd85c1c195960521b604482015260640161018c565b33600081815260036020526040808220805460ff191660019081179091555490516370a0823160e01b8152600481019390935290916001600160a01b03909116906370a0823190602401602060405180830381865afa1580156103ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104119190610b34565b9050600081116104595760405162461bcd60e51b815260206004820152601360248201527253574150323a206e6f20563120746f6b656e7360681b604482015260640161018c565b6001546040805163313ce56760e01b815290516000926001600160a01b03169163313ce5679160048083019260209291908290030181865afa1580156104a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104c79190610b4d565b6104d290600a610c6c565b600260009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610525573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105499190610b4d565b61055490600a610c6c565b61055e9084610c7b565b6105689190610c92565b60025490915081906001600160a01b03166370a082316105906000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa1580156105d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f89190610b34565b101561063c5760405162461bcd60e51b815260206004820152601360248201527253574150333a205632206c697175696469747960681b604482015260640161018c565b600154610654906001600160a01b03163330856107cf565b61067d6106696000546001600160a01b031690565b6002546001600160a01b03169033846107cf565b5050565b6000546001600160a01b031633146106ab5760405162461bcd60e51b815260040161018c90610aff565b6001600160a01b0381166107105760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161018c565b6107198161077f565b50565b6040516001600160a01b03831660248201526044810182905261029d90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261080d565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b03808516602483015283166044820152606481018290526108079085906323b872dd60e01b90608401610748565b50505050565b6000610862826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166108df9092919063ffffffff16565b80519091501561029d57808060200190518101906108809190610cb4565b61029d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161018c565b60606108ee84846000856108f8565b90505b9392505050565b6060824710156109595760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161018c565b843b6109a75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161018c565b600080866001600160a01b031685876040516109c39190610cf5565b60006040518083038185875af1925050503d8060008114610a00576040519150601f19603f3d011682016040523d82523d6000602084013e610a05565b606091505b5091509150610a15828286610a20565b979650505050505050565b60608315610a2f5750816108f1565b825115610a3f5782518084602001fd5b8160405162461bcd60e51b815260040161018c9190610d11565b80356001600160a01b0381168114610a7057600080fd5b919050565b60008060408385031215610a8857600080fd5b610a9183610a59565b946020939093013593505050565b801515811461071957600080fd5b60008060408385031215610ac057600080fd5b610ac983610a59565b91506020830135610ad981610a9f565b809150509250929050565b600060208284031215610af657600080fd5b6108f182610a59565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215610b4657600080fd5b5051919050565b600060208284031215610b5f57600080fd5b815160ff811681146108f157600080fd5b634e487b7160e01b600052601160045260246000fd5b600181815b80851115610bc1578160001904821115610ba757610ba7610b70565b80851615610bb457918102915b93841c9390800290610b8b565b509250929050565b600082610bd857506001610c66565b81610be557506000610c66565b8160018114610bfb5760028114610c0557610c21565b6001915050610c66565b60ff841115610c1657610c16610b70565b50506001821b610c66565b5060208310610133831016604e8410600b8410161715610c44575081810a610c66565b610c4e8383610b86565b8060001904821115610c6257610c62610b70565b0290505b92915050565b60006108f160ff841683610bc9565b8082028115828204841417610c6657610c66610b70565b600082610caf57634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215610cc657600080fd5b81516108f181610a9f565b60005b83811015610cec578181015183820152602001610cd4565b50506000910152565b60008251610d07818460208701610cd1565b9190910192915050565b6020815260008251806020840152610d30816040850160208701610cd1565b601f01601f1916919091016040019291505056fea164736f6c6343000811000a
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c5a9bc46a7dbe1c6de493e84a18f02e70e2c5a320000000000000000000000002d886570a0da04885bfd6eb48ed8b8ff01a0eb7e
-----Decoded View---------------
Arg [0] : _v1 (address): 0xC5a9BC46A7dbe1c6dE493E84A18f02E70E2c5A32
Arg [1] : _v2 (address): 0x2d886570A0dA04885bfD6eb48eD8b8ff01A0eb7e
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000c5a9bc46a7dbe1c6de493e84a18f02e70e2c5a32
Arg [1] : 0000000000000000000000002d886570a0da04885bfd6eb48ed8b8ff01a0eb7e
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.