Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 6 from a total of 6 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Bid | 16253996 | 629 days ago | IN | 0 ETH | 0.00055825 | ||||
End Game | 16253988 | 629 days ago | IN | 0 ETH | 0.00195537 | ||||
Connect Game | 16253981 | 629 days ago | IN | 0 ETH | 0.00117459 | ||||
Connect Game | 16253980 | 629 days ago | IN | 0 ETH | 0.00193665 | ||||
Transfer Operato... | 16253950 | 629 days ago | IN | 0 ETH | 0.00034632 | ||||
0x60806040 | 16253935 | 629 days ago | IN | 0 ETH | 0.01320653 |
Loading...
Loading
Contract Name:
SZNGameV2
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: Unlicensed pragma solidity ^0.8.0; import '@openzeppelin/contracts/token/ERC20/ERC20.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; import '@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol'; import '@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol'; import '@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol'; contract Operator is Context, Ownable { address private _operator; event OperatorTransferred(address indexed previousOperator, address indexed newOperator); constructor() { _operator = _msgSender(); emit OperatorTransferred(address(0), _operator); } function operator() public view returns (address) { return _operator; } modifier onlyOperator() { require(_operator == msg.sender, "operator: caller is not the operator"); _; } function isOperator() public view returns (bool) { return _msgSender() == _operator; } function transferOperator(address newOperator_) public onlyOwner { _transferOperator(newOperator_); } function _transferOperator(address newOperator_) internal { require(newOperator_ != address(0), "operator: zero address given for new operator"); emit OperatorTransferred(address(0), newOperator_); _operator = newOperator_; } } contract SZNGameV2 is Ownable, Operator { struct Game { uint gameId; address player1; address player2; address winner; bool canceled; uint bid; uint8 bidType; uint started; uint finished; } mapping(uint8 => uint) public _gameIds; mapping(uint => Game) public _games; mapping(uint8 => uint) public _bids; mapping(uint8 => uint) public _gameQueue; mapping(address => uint) public _walletGameIds; address public _sznAddress; event GameCreated(uint gameId, address player1); event GameStarted(uint gameId, address player1, address player2); constructor(address sznAddress) { _sznAddress = sznAddress; } function myGame() external view returns (Game memory) { uint gameId = _walletGameIds[msg.sender]; require(gameId != 0); return _games[gameId]; } function connectGame(uint8 bidType) external { require(_walletGameIds[_msgSender()] == 0, "You already have a game"); if (_bids[bidType] > 0) { ERC20(_sznAddress).transferFrom(_msgSender(), address(this), _bids[bidType]); } if (_gameQueue[bidType] != 0) { startGame(_gameQueue[bidType]); } else { _gameIds[bidType] += 1; createGame(_gameIds[bidType], bidType); } } function createGame(uint gameId, uint8 bidType) internal { _games[gameId].gameId = gameId; _games[gameId].bid = _bids[bidType]; _games[gameId].player1 = _msgSender(); _games[gameId].bidType = bidType; _walletGameIds[_msgSender()] = gameId; _gameQueue[bidType] = gameId; emit GameCreated(gameId, _games[gameId].player1); } function startGame(uint gameId) internal { _games[gameId].player2 = _msgSender(); _games[gameId].started = block.number; _walletGameIds[_msgSender()] = gameId; _gameQueue[_games[gameId].bidType] = 0; emit GameStarted(gameId, _games[gameId].player1, _games[gameId].player2); } function cancelGameWaiting(uint gameId) external { checkGameCreated(gameId); require(_games[gameId].canceled == false, "Already cancelled"); _games[gameId].canceled = true; _gameQueue[_games[gameId].bidType] = 0; _walletGameIds[_msgSender()] = 0; if (_games[gameId].bid > 0) { transferToken(_msgSender(), _games[gameId].bid); } } function endGame(uint gameId, address winner) external onlyOperator { if (_games[gameId].winner == address(0)) { checkGameActive(gameId); require(_games[gameId].player1 == winner || _games[gameId].player2 == winner); if (_games[gameId].bid > 0) { uint rewards = _games[gameId].bid * 2 * 3 / 4; uint burnRewards = _games[gameId].bid * 2 * 1 / 4; transferToken(winner, rewards); transferToken(address(0xdead), burnRewards); } finishGame(gameId, winner); } } function endDrawGame(uint gameId) external onlyOperator { if (_games[gameId].winner == address(0)) { checkGameActive(gameId); if (_games[gameId].bid > 0) { transferToken(_games[gameId].player1, _games[gameId].bid); transferToken(_games[gameId].player2, _games[gameId].bid); } finishGame(gameId, address(0xdead)); } } function checkGameActive(uint gameId) internal { require(_games[gameId].started != 0); require(_games[gameId].finished == 0); } function checkGameCreated(uint gameId) internal { require(_games[gameId].started == 0); require(_games[gameId].player1 == _msgSender()); require(_games[gameId].player2 == address(0)); } function finishGame(uint gameId, address winner) internal { _games[gameId].finished = block.number; _games[gameId].winner = winner; _walletGameIds[_games[gameId].player1] = 0; _walletGameIds[_games[gameId].player2] = 0; } function transferToken(address to, uint tokens) internal { ERC20(_sznAddress).transfer(to, tokens); } function setBid(uint8 bidType, uint bid) external onlyOperator { require(bid > 0); _bids[bidType] = bid; } }
pragma solidity >=0.6.2; import './IUniswapV2Router01.sol'; interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; }
pragma solidity >=0.5.0; interface IUniswapV2Pair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint); function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; event Mint(address indexed sender, uint amount0, uint amount1); event Burn(address indexed sender, uint amount0, uint amount1, address indexed to); event Swap( address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function price0CumulativeLast() external view returns (uint); function price1CumulativeLast() external view returns (uint); function kLast() external view returns (uint); function mint(address to) external returns (uint liquidity); function burn(address to) external returns (uint amount0, uint amount1); function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external; function skim(address to) external; function sync() external; function initialize(address, address) external; }
pragma solidity >=0.5.0; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) 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() { _transferOwnership(_msgSender()); } /** * @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 { 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 { _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 { require(newOwner != address(0), "Ownable: new owner is the zero address"); _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 v4.7.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
pragma solidity >=0.6.2; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) 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 // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ 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 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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount ) external returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"sznAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"gameId","type":"uint256"},{"indexed":false,"internalType":"address","name":"player1","type":"address"}],"name":"GameCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"gameId","type":"uint256"},{"indexed":false,"internalType":"address","name":"player1","type":"address"},{"indexed":false,"internalType":"address","name":"player2","type":"address"}],"name":"GameStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOperator","type":"address"},{"indexed":true,"internalType":"address","name":"newOperator","type":"address"}],"name":"OperatorTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"_bids","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"_gameIds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"_gameQueue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_games","outputs":[{"internalType":"uint256","name":"gameId","type":"uint256"},{"internalType":"address","name":"player1","type":"address"},{"internalType":"address","name":"player2","type":"address"},{"internalType":"address","name":"winner","type":"address"},{"internalType":"bool","name":"canceled","type":"bool"},{"internalType":"uint256","name":"bid","type":"uint256"},{"internalType":"uint8","name":"bidType","type":"uint8"},{"internalType":"uint256","name":"started","type":"uint256"},{"internalType":"uint256","name":"finished","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_sznAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_walletGameIds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"gameId","type":"uint256"}],"name":"cancelGameWaiting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"bidType","type":"uint8"}],"name":"connectGame","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"gameId","type":"uint256"}],"name":"endDrawGame","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"gameId","type":"uint256"},{"internalType":"address","name":"winner","type":"address"}],"name":"endGame","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isOperator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"myGame","outputs":[{"components":[{"internalType":"uint256","name":"gameId","type":"uint256"},{"internalType":"address","name":"player1","type":"address"},{"internalType":"address","name":"player2","type":"address"},{"internalType":"address","name":"winner","type":"address"},{"internalType":"bool","name":"canceled","type":"bool"},{"internalType":"uint256","name":"bid","type":"uint256"},{"internalType":"uint8","name":"bidType","type":"uint8"},{"internalType":"uint256","name":"started","type":"uint256"},{"internalType":"uint256","name":"finished","type":"uint256"}],"internalType":"struct SZNGameV2.Game","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"uint8","name":"bidType","type":"uint8"},{"internalType":"uint256","name":"bid","type":"uint256"}],"name":"setBid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOperator_","type":"address"}],"name":"transferOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b506040516111f93803806111f983398101604081905261002f916100ed565b6100383361009d565b600180546001600160a01b031916339081179091556040516000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a3600780546001600160a01b0319166001600160a01b039290921691909117905561011d565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100ff57600080fd5b81516001600160a01b038116811461011657600080fd5b9392505050565b6110cd8061012c6000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c80639461a680116100a2578063b54c97c911610071578063b54c97c914610304578063c792fcd714610317578063cf35189e14610337578063e00ac20214610357578063f2fde38b1461036a57600080fd5b80639461a680146102a95780639805cc2d146102c9578063abc4cb3b146102de578063ae1cffc9146102f157600080fd5b8063570ca735116100e9578063570ca7351461022a5780635a00aad91461024f578063715018a61461027d57806386514131146102855780638da5cb5b1461029857600080fd5b806329605e771461011b57806341eb8b8b14610130578063444384a6146101f95780634456eda21461020c575b600080fd5b61012e610129366004610e8b565b61037d565b005b61019e61013e366004610ecf565b60036020819052600091825260409091208054600182015460028301549383015460048401546005850154600686015460079096015494966001600160a01b03948516969085169594841694600160a01b90940460ff9081169492169189565b60408051998a526001600160a01b0398891660208b015296881696890196909652959093166060870152901515608086015260a085015260ff1660c084015260e0830191909152610100820152610120015b60405180910390f35b61012e610207366004610ecf565b610391565b6001546001600160a01b0316331460405190151581526020016101f0565b6001546001600160a01b03165b6040516001600160a01b0390911681526020016101f0565b61026f61025d366004610f14565b60056020526000908152604090205481565b6040519081526020016101f0565b61012e61048f565b61012e610293366004610ee8565b6104a3565b6000546001600160a01b0316610237565b61026f6102b7366004610f14565b60046020526000908152604090205481565b6102d16105f3565b6040516101f09190610f9d565b600754610237906001600160a01b031681565b61012e6102ff366004610f14565b6106e3565b61012e610312366004610f2f565b61087e565b61026f610325366004610f14565b60026020526000908152604090205481565b61026f610345366004610e8b565b60066020526000908152604090205481565b61012e610365366004610ecf565b6108cb565b61012e610378366004610e8b565b610999565b610385610a0f565b61038e81610a69565b50565b61039a81610b2d565b60008181526003602081905260409091200154600160a01b900460ff16156103fd5760405162461bcd60e51b8152602060048201526011602482015270105b1c9958591e4818d85b98d95b1b1959607a1b60448201526064015b60405180910390fd5b6000818152600360208181526040808420928301805460ff60a01b1916600160a01b17905560059283015460ff168452919052812081905560068161043f3390565b6001600160a01b03168152602080820192909252604090810160009081209390935583835260039091529020600401541561038e5761038e33600083815260036020526040902060040154610b94565b610497610a0f565b6104a16000610c1f565b565b6001546001600160a01b031633146104cd5760405162461bcd60e51b81526004016103f490610f59565b600082815260036020819052604090912001546001600160a01b03166105ef576104f682610c6f565b6000828152600360205260409020600101546001600160a01b038281169116148061053d57506000828152600360205260409020600201546001600160a01b038281169116145b61054657600080fd5b600082815260036020526040902060040154156105e557600082815260036020526040812060049081015461057c906002611062565b610587906003611062565b6105919190611040565b600084815260036020526040812060049081015492935090916105b5906002611062565b6105c0906001611062565b6105ca9190611040565b90506105d68383610b94565b6105e261dead82610b94565b50505b6105ef8282610ca6565b5050565b604080516101208101825260008082526020808301829052828401829052606083018290526080830182905260a0830182905260c0830182905260e0830182905261010083018290523382526006905291909120548061065257600080fd5b6000908152600360208181526040928390208351610120810185528154815260018201546001600160a01b0390811693820193909352600282015483169481019490945291820154908116606084015260ff600160a01b909104811615156080840152600482015460a084015260058201541660c0830152600681015460e083015260070154610100820152919050565b33600090815260066020526040902054156107405760405162461bcd60e51b815260206004820152601760248201527f596f7520616c7265616479206861766520612067616d6500000000000000000060448201526064016103f4565b60ff811660009081526004602052604090205415610805576007546001600160a01b03166323b872dd3360ff84166000908152600460208190526040918290205491516001600160e01b031960e086901b1681526001600160a01b03909316908301523060248301526044820152606401602060405180830381600087803b1580156107cb57600080fd5b505af11580156107df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108039190610ead565b505b60ff8116600090815260056020526040902054156108395760ff811660009081526005602052604090205461038e90610cfe565b60ff8116600090815260026020526040812080546001929061085c908490611028565b909155505060ff811660009081526002602052604090205461038e9082610da8565b6001546001600160a01b031633146108a85760405162461bcd60e51b81526004016103f490610f59565b600081116108b557600080fd5b60ff909116600090815260046020526040902055565b6001546001600160a01b031633146108f55760405162461bcd60e51b81526004016103f490610f59565b600081815260036020819052604090912001546001600160a01b031661038e5761091e81610c6f565b6000818152600360205260409020600401541561098d5760008181526003602052604090206001810154600490910154610961916001600160a01b031690610b94565b6000818152600360205260409020600281015460049091015461098d916001600160a01b031690610b94565b61038e8161dead610ca6565b6109a1610a0f565b6001600160a01b038116610a065760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103f4565b61038e81610c1f565b6000546001600160a01b031633146104a15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103f4565b6001600160a01b038116610ad55760405162461bcd60e51b815260206004820152602d60248201527f6f70657261746f723a207a65726f206164647265737320676976656e20666f7260448201526c103732bb9037b832b930ba37b960991b60648201526084016103f4565b6040516001600160a01b038216906000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b60008181526003602052604090206006015415610b4957600080fd5b6000818152600360205260409020600101546001600160a01b03163314610b6f57600080fd5b6000818152600360205260409020600201546001600160a01b03161561038e57600080fd5b60075460405163a9059cbb60e01b81526001600160a01b038481166004830152602482018490529091169063a9059cbb90604401602060405180830381600087803b158015610be257600080fd5b505af1158015610bf6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c1a9190610ead565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600081815260036020526040902060060154610c8a57600080fd5b6000818152600360205260409020600701541561038e57600080fd5b600091825260036020818152604080852043600782015592830180546001600160a01b0319166001600160a01b0395861617905560018301548416855260069091528084208490556002909101549091168252812055565b60008181526003602081815260408084206002810180546001600160a01b03191633908117825543600680850191909155908752845282862087905560058083015460ff168752845282862086905594869052928252600190920154925482518581526001600160a01b039485169281019290925290921682820152517f5b11b2d1f1a29e94e8fd947f6b5b713f3dd7fa6e1d9d5b65826d69b9aeb664eb9181900360600190a150565b600082815260036020818152604080842086815560ff8616808652600480855283872054908301556001820180546001600160a01b0319163390811782556005938401805460ff19168417905587526006855283872089905590865290835281852087905593869052918152915481518581526001600160a01b03919091169281019290925280517fc3e0f84839dc888c892a013d10c8f9d6dc05a21a879d0ce468ca558013e9121c9281900390910190a15050565b80356001600160a01b0381168114610e7557600080fd5b919050565b803560ff81168114610e7557600080fd5b600060208284031215610e9d57600080fd5b610ea682610e5e565b9392505050565b600060208284031215610ebf57600080fd5b81518015158114610ea657600080fd5b600060208284031215610ee157600080fd5b5035919050565b60008060408385031215610efb57600080fd5b82359150610f0b60208401610e5e565b90509250929050565b600060208284031215610f2657600080fd5b610ea682610e7a565b60008060408385031215610f4257600080fd5b610f4b83610e7a565b946020939093013593505050565b60208082526024908201527f6f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657260408201526330ba37b960e11b606082015260800190565b815181526020808301516001600160a01b039081169183019190915260408084015182169083015260608084015191821690830152610120820190506080830151610fec608084018215159052565b5060a083015160a083015260c083015161100b60c084018260ff169052565b5060e083015160e083015261010080840151818401525092915050565b6000821982111561103b5761103b611081565b500190565b60008261105d57634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561107c5761107c611081565b500290565b634e487b7160e01b600052601160045260246000fdfea26469706673582212203396f618ff953fadb81a29730adf8201c4312ac8562faa65430e7970a0c2e30b64736f6c634300080700330000000000000000000000001c906276f11c84fba499b9856d6f8453a8e6b93d
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101165760003560e01c80639461a680116100a2578063b54c97c911610071578063b54c97c914610304578063c792fcd714610317578063cf35189e14610337578063e00ac20214610357578063f2fde38b1461036a57600080fd5b80639461a680146102a95780639805cc2d146102c9578063abc4cb3b146102de578063ae1cffc9146102f157600080fd5b8063570ca735116100e9578063570ca7351461022a5780635a00aad91461024f578063715018a61461027d57806386514131146102855780638da5cb5b1461029857600080fd5b806329605e771461011b57806341eb8b8b14610130578063444384a6146101f95780634456eda21461020c575b600080fd5b61012e610129366004610e8b565b61037d565b005b61019e61013e366004610ecf565b60036020819052600091825260409091208054600182015460028301549383015460048401546005850154600686015460079096015494966001600160a01b03948516969085169594841694600160a01b90940460ff9081169492169189565b60408051998a526001600160a01b0398891660208b015296881696890196909652959093166060870152901515608086015260a085015260ff1660c084015260e0830191909152610100820152610120015b60405180910390f35b61012e610207366004610ecf565b610391565b6001546001600160a01b0316331460405190151581526020016101f0565b6001546001600160a01b03165b6040516001600160a01b0390911681526020016101f0565b61026f61025d366004610f14565b60056020526000908152604090205481565b6040519081526020016101f0565b61012e61048f565b61012e610293366004610ee8565b6104a3565b6000546001600160a01b0316610237565b61026f6102b7366004610f14565b60046020526000908152604090205481565b6102d16105f3565b6040516101f09190610f9d565b600754610237906001600160a01b031681565b61012e6102ff366004610f14565b6106e3565b61012e610312366004610f2f565b61087e565b61026f610325366004610f14565b60026020526000908152604090205481565b61026f610345366004610e8b565b60066020526000908152604090205481565b61012e610365366004610ecf565b6108cb565b61012e610378366004610e8b565b610999565b610385610a0f565b61038e81610a69565b50565b61039a81610b2d565b60008181526003602081905260409091200154600160a01b900460ff16156103fd5760405162461bcd60e51b8152602060048201526011602482015270105b1c9958591e4818d85b98d95b1b1959607a1b60448201526064015b60405180910390fd5b6000818152600360208181526040808420928301805460ff60a01b1916600160a01b17905560059283015460ff168452919052812081905560068161043f3390565b6001600160a01b03168152602080820192909252604090810160009081209390935583835260039091529020600401541561038e5761038e33600083815260036020526040902060040154610b94565b610497610a0f565b6104a16000610c1f565b565b6001546001600160a01b031633146104cd5760405162461bcd60e51b81526004016103f490610f59565b600082815260036020819052604090912001546001600160a01b03166105ef576104f682610c6f565b6000828152600360205260409020600101546001600160a01b038281169116148061053d57506000828152600360205260409020600201546001600160a01b038281169116145b61054657600080fd5b600082815260036020526040902060040154156105e557600082815260036020526040812060049081015461057c906002611062565b610587906003611062565b6105919190611040565b600084815260036020526040812060049081015492935090916105b5906002611062565b6105c0906001611062565b6105ca9190611040565b90506105d68383610b94565b6105e261dead82610b94565b50505b6105ef8282610ca6565b5050565b604080516101208101825260008082526020808301829052828401829052606083018290526080830182905260a0830182905260c0830182905260e0830182905261010083018290523382526006905291909120548061065257600080fd5b6000908152600360208181526040928390208351610120810185528154815260018201546001600160a01b0390811693820193909352600282015483169481019490945291820154908116606084015260ff600160a01b909104811615156080840152600482015460a084015260058201541660c0830152600681015460e083015260070154610100820152919050565b33600090815260066020526040902054156107405760405162461bcd60e51b815260206004820152601760248201527f596f7520616c7265616479206861766520612067616d6500000000000000000060448201526064016103f4565b60ff811660009081526004602052604090205415610805576007546001600160a01b03166323b872dd3360ff84166000908152600460208190526040918290205491516001600160e01b031960e086901b1681526001600160a01b03909316908301523060248301526044820152606401602060405180830381600087803b1580156107cb57600080fd5b505af11580156107df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108039190610ead565b505b60ff8116600090815260056020526040902054156108395760ff811660009081526005602052604090205461038e90610cfe565b60ff8116600090815260026020526040812080546001929061085c908490611028565b909155505060ff811660009081526002602052604090205461038e9082610da8565b6001546001600160a01b031633146108a85760405162461bcd60e51b81526004016103f490610f59565b600081116108b557600080fd5b60ff909116600090815260046020526040902055565b6001546001600160a01b031633146108f55760405162461bcd60e51b81526004016103f490610f59565b600081815260036020819052604090912001546001600160a01b031661038e5761091e81610c6f565b6000818152600360205260409020600401541561098d5760008181526003602052604090206001810154600490910154610961916001600160a01b031690610b94565b6000818152600360205260409020600281015460049091015461098d916001600160a01b031690610b94565b61038e8161dead610ca6565b6109a1610a0f565b6001600160a01b038116610a065760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103f4565b61038e81610c1f565b6000546001600160a01b031633146104a15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103f4565b6001600160a01b038116610ad55760405162461bcd60e51b815260206004820152602d60248201527f6f70657261746f723a207a65726f206164647265737320676976656e20666f7260448201526c103732bb9037b832b930ba37b960991b60648201526084016103f4565b6040516001600160a01b038216906000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b60008181526003602052604090206006015415610b4957600080fd5b6000818152600360205260409020600101546001600160a01b03163314610b6f57600080fd5b6000818152600360205260409020600201546001600160a01b03161561038e57600080fd5b60075460405163a9059cbb60e01b81526001600160a01b038481166004830152602482018490529091169063a9059cbb90604401602060405180830381600087803b158015610be257600080fd5b505af1158015610bf6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c1a9190610ead565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600081815260036020526040902060060154610c8a57600080fd5b6000818152600360205260409020600701541561038e57600080fd5b600091825260036020818152604080852043600782015592830180546001600160a01b0319166001600160a01b0395861617905560018301548416855260069091528084208490556002909101549091168252812055565b60008181526003602081815260408084206002810180546001600160a01b03191633908117825543600680850191909155908752845282862087905560058083015460ff168752845282862086905594869052928252600190920154925482518581526001600160a01b039485169281019290925290921682820152517f5b11b2d1f1a29e94e8fd947f6b5b713f3dd7fa6e1d9d5b65826d69b9aeb664eb9181900360600190a150565b600082815260036020818152604080842086815560ff8616808652600480855283872054908301556001820180546001600160a01b0319163390811782556005938401805460ff19168417905587526006855283872089905590865290835281852087905593869052918152915481518581526001600160a01b03919091169281019290925280517fc3e0f84839dc888c892a013d10c8f9d6dc05a21a879d0ce468ca558013e9121c9281900390910190a15050565b80356001600160a01b0381168114610e7557600080fd5b919050565b803560ff81168114610e7557600080fd5b600060208284031215610e9d57600080fd5b610ea682610e5e565b9392505050565b600060208284031215610ebf57600080fd5b81518015158114610ea657600080fd5b600060208284031215610ee157600080fd5b5035919050565b60008060408385031215610efb57600080fd5b82359150610f0b60208401610e5e565b90509250929050565b600060208284031215610f2657600080fd5b610ea682610e7a565b60008060408385031215610f4257600080fd5b610f4b83610e7a565b946020939093013593505050565b60208082526024908201527f6f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657260408201526330ba37b960e11b606082015260800190565b815181526020808301516001600160a01b039081169183019190915260408084015182169083015260608084015191821690830152610120820190506080830151610fec608084018215159052565b5060a083015160a083015260c083015161100b60c084018260ff169052565b5060e083015160e083015261010080840151818401525092915050565b6000821982111561103b5761103b611081565b500190565b60008261105d57634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561107c5761107c611081565b500290565b634e487b7160e01b600052601160045260246000fdfea26469706673582212203396f618ff953fadb81a29730adf8201c4312ac8562faa65430e7970a0c2e30b64736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000001c906276f11c84fba499b9856d6f8453a8e6b93d
-----Decoded View---------------
Arg [0] : sznAddress (address): 0x1C906276f11C84fba499B9856D6f8453a8e6b93D
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000001c906276f11c84fba499b9856d6f8453a8e6b93d
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 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.