More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
AlienDegenStaker
Compiler Version
v0.8.21+commit.d9974bed
Optimization Enabled:
No with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; contract AlienDegenStaker is Ownable { error StakeExists(); error StakeExpired(); error TooEarlyToClaim(); error BetNotFinalized(); error WrongOutcome(); error AlreadyClaimed(); enum StakeChoice { None, Lower, Maintain, Raise } struct Stake { uint256 timestamp; uint256 amount; StakeChoice choice; bool claimed; } uint256 public payoutFactor = 95; // 95% uint256[] public AlienTimestamps; uint256 public previousAlienTimestamp = 1683136800; uint256 public upcomingAlienTimestamp = 1686765600; uint256 public stakeCutoutTimestamp = 1686765600; address public taxWallet; uint256 public burned = 0; ERC20 public token; mapping(uint256 => mapping(address => Stake)) public stakes; mapping(uint256 => mapping(StakeChoice => uint256)) public stakesPerSide; mapping(uint256 => uint256) public pools; mapping(uint256 => mapping(StakeChoice => uint256)) public poolsPerSide; mapping(uint256 => uint256) public userTotal; mapping(uint256 => StakeChoice) public outcomes; uint256 public stakeIndex = 1; constructor( address _tokenAddress, address _taxWallet, uint256 _upcomingAlienTimestamp ) Ownable(msg.sender) { token = ERC20(_tokenAddress); taxWallet = _taxWallet; if (_upcomingAlienTimestamp != 0) { upcomingAlienTimestamp = _upcomingAlienTimestamp; } AlienTimestamps.push(previousAlienTimestamp); AlienTimestamps.push(upcomingAlienTimestamp); } // you can only stake till 3 days before meeting and you can start staking again after new date is set function stake(StakeChoice stakeChoice, uint256 amount) public payable { if(stakes[stakeIndex][_msgSender()].timestamp != 0){ revert StakeExists(); } if(block.timestamp > stakeCutoutTimestamp){ revert StakeExpired(); } Stake memory _stake = Stake(block.timestamp, amount, stakeChoice, false); stakes[stakeIndex][_msgSender()] = _stake; stakesPerSide[stakeIndex][stakeChoice] += amount; uint256 timeScalar = calculateTimeScalar(_stake, 0); userTotal[stakeIndex] += (amount*timeScalar) /1000; pools[stakeIndex] += amount; poolsPerSide[stakeIndex][stakeChoice] += amount; token.transferFrom(_msgSender(), address(this), amount); } // claim based on allocation in losing side's pool function claimFunds(uint256 index) public payable { Stake storage _stake = stakes[index][_msgSender()]; if(block.timestamp < AlienTimestamps[index]){ revert BetNotFinalized(); } if(_stake.choice != outcomes[index]){ revert WrongOutcome(); } if(_stake.claimed == true){ revert AlreadyClaimed(); } uint256 totalLosingPool = 0; for(uint256 i = 1; i <= uint256(StakeChoice.Raise); i++) { if(StakeChoice(i) != outcomes[index]) { totalLosingPool += poolsPerSide[index][StakeChoice(i)]; } } if(totalLosingPool > 0){ uint256 timeFactor = calculateTimeScalar(_stake, 1); uint256 rewardFactor = ((_stake.amount * timeFactor) / userTotal[index]) * 1000; // Calculate reward based on the losing side's pool and ensure the bet is always returned uint256 reward = (rewardFactor * totalLosingPool) / 1000 / 1000 * payoutFactor / 100; token.transfer(_msgSender(), _stake.amount + reward); // Return initial bet + reward _stake.claimed = true; }else{ token.transfer(_msgSender(), _stake.amount); // Return initial bet _stake.claimed = true; } } function calculateTimeScalar( Stake memory _stake, uint256 offset ) private view returns (uint256) { uint256 totalTime = AlienTimestamps[stakeIndex - offset] - AlienTimestamps[stakeIndex - offset - 1]; uint256 time = AlienTimestamps[stakeIndex - offset] - _stake.timestamp; uint256 scalar = 1000 - ((totalTime - time) * 1000) / totalTime; require(scalar > 0, "nothing to claim"); uint256 minValue = 0; uint256 maxValue = 1000; uint256 mappedMinValue = 500; uint256 mappedMaxValue = 1000; return (((((scalar * 1000) / (maxValue - minValue)) * (mappedMaxValue - mappedMinValue)) / 1000) + mappedMinValue); } function setUpcomingAlienTimestamp( uint256 timestamp, uint256 cutOut ) public onlyOwner { require( AlienTimestamps[stakeIndex] < block.timestamp, "can only set timestamp after meeting" ); require(timestamp > AlienTimestamps[stakeIndex]); stakeCutoutTimestamp = cutOut; AlienTimestamps.push(timestamp); stakeIndex++; } function setOutcome( StakeChoice outcome, uint256 index ) public onlyOwner { outcomes[index] = outcome; } function withdrawTokens( uint256 amount ) public onlyOwner { token.transfer(_msgSender(), amount); } function setPayoutFactor(uint256 newPayoutFactor) public onlyOwner { payoutFactor = newPayoutFactor; } function withdrawTokens( uint256 amount, address recipient ) public onlyOwner { token.transfer(recipient, amount); } }
// 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.0.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "./IERC20.sol"; import {IERC20Metadata} from "./extensions/IERC20Metadata.sol"; import {Context} from "../../utils/Context.sol"; import {IERC20Errors} from "../../interfaces/draft-IERC6093.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}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * 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. */ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors { mapping(address account => uint256) private _balances; mapping(address account => mapping(address spender => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * 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 returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual 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 default value returned by this function, unless * it's 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 returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual 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 `value`. */ function transfer(address to, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _transfer(owner, to, value); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `value` 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 value) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, value); 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 `value`. * - the caller must have allowance for ``from``'s tokens of at least * `value`. */ function transferFrom(address from, address to, uint256 value) public virtual returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, value); _transfer(from, to, value); return true; } /** * @dev Moves a `value` 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. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _transfer(address from, address to, uint256 value) internal { if (from == address(0)) { revert ERC20InvalidSender(address(0)); } if (to == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(from, to, value); } /** * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from` * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding * this function. * * Emits a {Transfer} event. */ function _update(address from, address to, uint256 value) internal virtual { if (from == address(0)) { // Overflow check required: The rest of the code assumes that totalSupply never overflows _totalSupply += value; } else { uint256 fromBalance = _balances[from]; if (fromBalance < value) { revert ERC20InsufficientBalance(from, fromBalance, value); } unchecked { // Overflow not possible: value <= fromBalance <= totalSupply. _balances[from] = fromBalance - value; } } if (to == address(0)) { unchecked { // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply. _totalSupply -= value; } } else { unchecked { // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256. _balances[to] += value; } } emit Transfer(from, to, value); } /** * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0). * Relies on the `_update` mechanism * * Emits a {Transfer} event with `from` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _mint(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(address(0), account, value); } /** * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply. * Relies on the `_update` mechanism. * * Emits a {Transfer} event with `to` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead */ function _burn(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidSender(address(0)); } _update(account, address(0), value); } /** * @dev Sets `value` 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. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address owner, address spender, uint256 value) internal { _approve(owner, spender, value, true); } /** * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event. * * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any * `Approval` event during `transferFrom` operations. * * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to * true using the following override: * ``` * function _approve(address owner, address spender, uint256 value, bool) internal virtual override { * super._approve(owner, spender, value, true); * } * ``` * * Requirements are the same as {_approve}. */ function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual { if (owner == address(0)) { revert ERC20InvalidApprover(address(0)); } if (spender == address(0)) { revert ERC20InvalidSpender(address(0)); } _allowances[owner][spender] = value; if (emitEvent) { emit Approval(owner, spender, value); } } /** * @dev Updates `owner` s allowance for `spender` based on spent `value`. * * Does not update the allowance value in case of infinite allowance. * Revert if not enough allowance is available. * * Does not emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 value) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { if (currentAllowance < value) { revert ERC20InsufficientAllowance(spender, currentAllowance, value); } unchecked { _approve(owner, spender, currentAllowance - value, false); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. */ 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 v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @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 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.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; } }
{ "evmVersion": "paris", "optimizer": { "enabled": false, "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":"_tokenAddress","type":"address"},{"internalType":"address","name":"_taxWallet","type":"address"},{"internalType":"uint256","name":"_upcomingAlienTimestamp","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyClaimed","type":"error"},{"inputs":[],"name":"BetNotFinalized","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"StakeExists","type":"error"},{"inputs":[],"name":"StakeExpired","type":"error"},{"inputs":[],"name":"TooEarlyToClaim","type":"error"},{"inputs":[],"name":"WrongOutcome","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"AlienTimestamps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"claimFunds","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"outcomes","outputs":[{"internalType":"enum AlienDegenStaker.StakeChoice","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"payoutFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"pools","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"enum AlienDegenStaker.StakeChoice","name":"","type":"uint8"}],"name":"poolsPerSide","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"previousAlienTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum AlienDegenStaker.StakeChoice","name":"outcome","type":"uint8"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"setOutcome","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPayoutFactor","type":"uint256"}],"name":"setPayoutFactor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"cutOut","type":"uint256"}],"name":"setUpcomingAlienTimestamp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum AlienDegenStaker.StakeChoice","name":"stakeChoice","type":"uint8"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"stakeCutoutTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakeIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"stakes","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"enum AlienDegenStaker.StakeChoice","name":"choice","type":"uint8"},{"internalType":"bool","name":"claimed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"enum AlienDegenStaker.StakeChoice","name":"","type":"uint8"}],"name":"stakesPerSide","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"upcomingAlienTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"userTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052605f600155636452a12060035563648a002060045563648a002060055560006007556001600f553480156200003857600080fd5b506040516200221a3803806200221a83398181016040528101906200005e919062000341565b33600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620000d45760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401620000cb9190620003ae565b60405180910390fd5b620000e581620001d860201b60201c565b5082600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600081146200017957806004819055505b6002600354908060018154018082558091505060019003906000526020600020016000909190919091505560026004549080600181540180825580915050600190039060005260206000200160009091909190915055505050620003cb565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620002ce82620002a1565b9050919050565b620002e081620002c1565b8114620002ec57600080fd5b50565b6000815190506200030081620002d5565b92915050565b6000819050919050565b6200031b8162000306565b81146200032757600080fd5b50565b6000815190506200033b8162000310565b92915050565b6000806000606084860312156200035d576200035c6200029c565b5b60006200036d86828701620002ef565b93505060206200038086828701620002ef565b925050604062000393868287016200032a565b9150509250925092565b620003a881620002c1565b82525050565b6000602082019050620003c560008301846200039d565b92915050565b611e3f80620003db6000396000f3fe6080604052600436106101665760003560e01c80638c0e0073116100d1578063ac4afa381161008a578063eb2106e411610064578063eb2106e414610527578063eed2a14714610550578063f2fde38b1461058d578063fc0c546a146105b657610166565b8063ac4afa3814610491578063d17cb5e3146104ce578063dd752e551461050b57610166565b80638c0e00731461036a5780638da5cb5b14610393578063941d82d6146103be5780639c215478146103e9578063a2f4b91514610414578063a9a3bba41461045157610166565b80633eb98c21116101235780633eb98c211461026c57806361bc83fa14610297578063664849d6146102c0578063715018a6146102eb57806373f42561146103025780638331f6ae1461032d57610166565b806316f043ad1461016b5780631b55e338146101a857806329121f18146101c45780632dc0562d146101ef578063315a095d1461021a578063398d92bb14610243575b600080fd5b34801561017757600080fd5b50610192600480360381019061018d9190611719565b6105e1565b60405161019f9190611768565b60405180910390f35b6101c260048036038101906101bd9190611783565b610606565b005b3480156101d057600080fd5b506101d9610b49565b6040516101e69190611768565b60405180910390f35b3480156101fb57600080fd5b50610204610b4f565b60405161021191906117f1565b60405180910390f35b34801561022657600080fd5b50610241600480360381019061023c9190611783565b610b75565b005b34801561024f57600080fd5b5061026a60048036038101906102659190611838565b610c28565b005b34801561027857600080fd5b50610281610cd5565b60405161028e9190611768565b60405180910390f35b3480156102a357600080fd5b506102be60048036038101906102b99190611783565b610cdb565b005b3480156102cc57600080fd5b506102d5610ced565b6040516102e29190611768565b60405180910390f35b3480156102f757600080fd5b50610300610cf3565b005b34801561030e57600080fd5b50610317610d07565b6040516103249190611768565b60405180910390f35b34801561033957600080fd5b50610354600480360381019061034f9190611783565b610d0d565b6040516103619190611768565b60405180910390f35b34801561037657600080fd5b50610391600480360381019061038c9190611878565b610d31565b005b34801561039f57600080fd5b506103a8610d78565b6040516103b591906117f1565b60405180910390f35b3480156103ca57600080fd5b506103d3610da1565b6040516103e09190611768565b60405180910390f35b3480156103f557600080fd5b506103fe610da7565b60405161040b9190611768565b60405180910390f35b34801561042057600080fd5b5061043b60048036038101906104369190611783565b610dad565b6040516104489190611768565b60405180910390f35b34801561045d57600080fd5b5061047860048036038101906104739190611838565b610dc5565b604051610488949392919061194a565b60405180910390f35b34801561049d57600080fd5b506104b860048036038101906104b39190611783565b610e1c565b6040516104c59190611768565b60405180910390f35b3480156104da57600080fd5b506104f560048036038101906104f09190611719565b610e34565b6040516105029190611768565b60405180910390f35b61052560048036038101906105209190611878565b610e59565b005b34801561053357600080fd5b5061054e6004803603810190610549919061198f565b611217565b005b34801561055c57600080fd5b5061057760048036038101906105729190611783565b6112f9565b60405161058491906119cf565b60405180910390f35b34801561059957600080fd5b506105b460048036038101906105af91906119ea565b611319565b005b3480156105c257600080fd5b506105cb61139f565b6040516105d89190611a76565b60405180910390f35b600c602052816000526040600020602052806000526040600020600091509150505481565b60006009600083815260200190815260200160002060006106256113c5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506002828154811061067557610674611a91565b5b90600052602060002001544210156106b9576040517fd7aa673800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e600083815260200190815260200160002060009054906101000a900460ff1660038111156106ec576106eb6118b8565b5b8160020160009054906101000a900460ff1660038111156107105761070f6118b8565b5b14610747576040517f8218e4b200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600115158160020160019054906101000a900460ff16151503610796576040517f646cf55800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080600190505b6003808111156107b1576107b06118b8565b5b811161089057600e600085815260200190815260200160002060009054906101000a900460ff1660038111156107ea576107e96118b8565b5b8160038111156107fd576107fc6118b8565b5b600381111561080f5761080e6118b8565b5b1461087d57600c6000858152602001908152602001600020600082600381111561083c5761083b6118b8565b5b600381111561084e5761084d6118b8565b5b60038111156108605761085f6118b8565b5b8152602001908152602001600020548261087a9190611aef565b91505b808061088890611b23565b91505061079e565b506000811115610a7a57600061091c8360405180608001604052908160008201548152602001600182015481526020016002820160009054906101000a900460ff1660038111156108e4576108e36118b8565b5b60038111156108f6576108f56118b8565b5b81526020016002820160019054906101000a900460ff16151515158152505060016113cd565b905060006103e8600d6000878152602001908152602001600020548386600101546109479190611b6b565b6109519190611bdc565b61095b9190611b6b565b9050600060646001546103e88087866109749190611b6b565b61097e9190611bdc565b6109889190611bdc565b6109929190611b6b565b61099c9190611bdc565b9050600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6109e46113c5565b8388600101546109f49190611aef565b6040518363ffffffff1660e01b8152600401610a11929190611c0d565b6020604051808303816000875af1158015610a30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a549190611c62565b5060018560020160016101000a81548160ff021916908315150217905550505050610b44565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb610ac06113c5565b84600101546040518363ffffffff1660e01b8152600401610ae2929190611c0d565b6020604051808303816000875af1158015610b01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b259190611c62565b5060018260020160016101000a81548160ff0219169083151502179055505b505050565b60055481565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610b7d61156e565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb610bc36113c5565b836040518363ffffffff1660e01b8152600401610be1929190611c0d565b6020604051808303816000875af1158015610c00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c249190611c62565b5050565b610c3061156e565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb82846040518363ffffffff1660e01b8152600401610c8d929190611c0d565b6020604051808303816000875af1158015610cac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd09190611c62565b505050565b60045481565b610ce361156e565b8060018190555050565b60035481565b610cfb61156e565b610d0560006115f5565b565b60075481565b60028181548110610d1d57600080fd5b906000526020600020016000915090505481565b610d3961156e565b81600e600083815260200190815260200160002060006101000a81548160ff02191690836003811115610d6f57610d6e6118b8565b5b02179055505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600f5481565b60015481565b600d6020528060005260406000206000915090505481565b6009602052816000526040600020602052806000526040600020600091509150508060000154908060010154908060020160009054906101000a900460ff16908060020160019054906101000a900460ff16905084565b600b6020528060005260406000206000915090505481565b600a602052816000526040600020602052806000526040600020600091509150505481565b600060096000600f5481526020019081526020016000206000610e7a6113c5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015414610eef576040517f1c9529fa00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600554421115610f2b576040517f4ffb268b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006040518060800160405280428152602001838152602001846003811115610f5757610f566118b8565b5b81526020016000151581525090508060096000600f5481526020019081526020016000206000610f856113c5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082015181600001556020820151816001015560408201518160020160006101000a81548160ff02191690836003811115610ffe57610ffd6118b8565b5b021790555060608201518160020160016101000a81548160ff02191690831515021790555090505081600a6000600f5481526020019081526020016000206000856003811115611051576110506118b8565b5b6003811115611063576110626118b8565b5b815260200190815260200160002060008282546110809190611aef565b9250508190555060006110948260006113cd565b90506103e881846110a59190611b6b565b6110af9190611bdc565b600d6000600f54815260200190815260200160002060008282546110d39190611aef565b9250508190555082600b6000600f54815260200190815260200160002060008282546110ff9190611aef565b9250508190555082600c6000600f5481526020019081526020016000206000866003811115611131576111306118b8565b5b6003811115611143576111426118b8565b5b815260200190815260200160002060008282546111609190611aef565b92505081905550600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd6111ad6113c5565b30866040518463ffffffff1660e01b81526004016111cd93929190611c8f565b6020604051808303816000875af11580156111ec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112109190611c62565b5050505050565b61121f61156e565b426002600f548154811061123657611235611a91565b5b906000526020600020015410611281576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127890611d49565b60405180910390fd5b6002600f548154811061129757611296611a91565b5b906000526020600020015482116112ad57600080fd5b806005819055506002829080600181540180825580915050600190039060005260206000200160009091909190915055600f60008154809291906112f090611b23565b91905055505050565b600e6020528060005260406000206000915054906101000a900460ff1681565b61132161156e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036113935760006040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161138a91906117f1565b60405180910390fd5b61139c816115f5565b50565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600033905090565b6000806002600184600f546113e29190611d69565b6113ec9190611d69565b815481106113fd576113fc611a91565b5b9060005260206000200154600284600f546114189190611d69565b8154811061142957611428611a91565b5b906000526020600020015461143e9190611d69565b905060008460000151600285600f546114579190611d69565b8154811061146857611467611a91565b5b906000526020600020015461147d9190611d69565b90506000826103e883856114919190611d69565b61149b9190611b6b565b6114a59190611bdc565b6103e86114b29190611d69565b9050600081116114f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ee90611de9565b60405180910390fd5b6000806103e8905060006101f4905060006103e89050816103e8838361151d9190611d69565b86866115299190611d69565b6103e8896115379190611b6b565b6115419190611bdc565b61154b9190611b6b565b6115559190611bdc565b61155f9190611aef565b97505050505050505092915050565b6115766113c5565b73ffffffffffffffffffffffffffffffffffffffff16611594610d78565b73ffffffffffffffffffffffffffffffffffffffff16146115f3576115b76113c5565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016115ea91906117f1565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b6000819050919050565b6116d1816116be565b81146116dc57600080fd5b50565b6000813590506116ee816116c8565b92915050565b6004811061170157600080fd5b50565b600081359050611713816116f4565b92915050565b600080604083850312156117305761172f6116b9565b5b600061173e858286016116df565b925050602061174f85828601611704565b9150509250929050565b611762816116be565b82525050565b600060208201905061177d6000830184611759565b92915050565b600060208284031215611799576117986116b9565b5b60006117a7848285016116df565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006117db826117b0565b9050919050565b6117eb816117d0565b82525050565b600060208201905061180660008301846117e2565b92915050565b611815816117d0565b811461182057600080fd5b50565b6000813590506118328161180c565b92915050565b6000806040838503121561184f5761184e6116b9565b5b600061185d858286016116df565b925050602061186e85828601611823565b9150509250929050565b6000806040838503121561188f5761188e6116b9565b5b600061189d85828601611704565b92505060206118ae858286016116df565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600481106118f8576118f76118b8565b5b50565b6000819050611909826118e7565b919050565b6000611919826118fb565b9050919050565b6119298161190e565b82525050565b60008115159050919050565b6119448161192f565b82525050565b600060808201905061195f6000830187611759565b61196c6020830186611759565b6119796040830185611920565b611986606083018461193b565b95945050505050565b600080604083850312156119a6576119a56116b9565b5b60006119b4858286016116df565b92505060206119c5858286016116df565b9150509250929050565b60006020820190506119e46000830184611920565b92915050565b600060208284031215611a00576119ff6116b9565b5b6000611a0e84828501611823565b91505092915050565b6000819050919050565b6000611a3c611a37611a32846117b0565b611a17565b6117b0565b9050919050565b6000611a4e82611a21565b9050919050565b6000611a6082611a43565b9050919050565b611a7081611a55565b82525050565b6000602082019050611a8b6000830184611a67565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611afa826116be565b9150611b05836116be565b9250828201905080821115611b1d57611b1c611ac0565b5b92915050565b6000611b2e826116be565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611b6057611b5f611ac0565b5b600182019050919050565b6000611b76826116be565b9150611b81836116be565b9250828202611b8f816116be565b91508282048414831517611ba657611ba5611ac0565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000611be7826116be565b9150611bf2836116be565b925082611c0257611c01611bad565b5b828204905092915050565b6000604082019050611c2260008301856117e2565b611c2f6020830184611759565b9392505050565b611c3f8161192f565b8114611c4a57600080fd5b50565b600081519050611c5c81611c36565b92915050565b600060208284031215611c7857611c776116b9565b5b6000611c8684828501611c4d565b91505092915050565b6000606082019050611ca460008301866117e2565b611cb160208301856117e2565b611cbe6040830184611759565b949350505050565b600082825260208201905092915050565b7f63616e206f6e6c79207365742074696d657374616d70206166746572206d656560008201527f74696e6700000000000000000000000000000000000000000000000000000000602082015250565b6000611d33602483611cc6565b9150611d3e82611cd7565b604082019050919050565b60006020820190508181036000830152611d6281611d26565b9050919050565b6000611d74826116be565b9150611d7f836116be565b9250828203905081811115611d9757611d96611ac0565b5b92915050565b7f6e6f7468696e6720746f20636c61696d00000000000000000000000000000000600082015250565b6000611dd3601083611cc6565b9150611dde82611d9d565b602082019050919050565b60006020820190508181036000830152611e0281611dc6565b905091905056fea2646970667358221220da1fb9919d1951e54708307f6b39baf692f71112000a9307c85b2ea237d736c264736f6c63430008150033000000000000000000000000d0d19f52ad8705e60ff31df75a7aca8f1399a69e000000000000000000000000314dcda5696ae9005c86444208d0bb4bae1957d300000000000000000000000000000000000000000000000000000000648a0020
Deployed Bytecode
0x6080604052600436106101665760003560e01c80638c0e0073116100d1578063ac4afa381161008a578063eb2106e411610064578063eb2106e414610527578063eed2a14714610550578063f2fde38b1461058d578063fc0c546a146105b657610166565b8063ac4afa3814610491578063d17cb5e3146104ce578063dd752e551461050b57610166565b80638c0e00731461036a5780638da5cb5b14610393578063941d82d6146103be5780639c215478146103e9578063a2f4b91514610414578063a9a3bba41461045157610166565b80633eb98c21116101235780633eb98c211461026c57806361bc83fa14610297578063664849d6146102c0578063715018a6146102eb57806373f42561146103025780638331f6ae1461032d57610166565b806316f043ad1461016b5780631b55e338146101a857806329121f18146101c45780632dc0562d146101ef578063315a095d1461021a578063398d92bb14610243575b600080fd5b34801561017757600080fd5b50610192600480360381019061018d9190611719565b6105e1565b60405161019f9190611768565b60405180910390f35b6101c260048036038101906101bd9190611783565b610606565b005b3480156101d057600080fd5b506101d9610b49565b6040516101e69190611768565b60405180910390f35b3480156101fb57600080fd5b50610204610b4f565b60405161021191906117f1565b60405180910390f35b34801561022657600080fd5b50610241600480360381019061023c9190611783565b610b75565b005b34801561024f57600080fd5b5061026a60048036038101906102659190611838565b610c28565b005b34801561027857600080fd5b50610281610cd5565b60405161028e9190611768565b60405180910390f35b3480156102a357600080fd5b506102be60048036038101906102b99190611783565b610cdb565b005b3480156102cc57600080fd5b506102d5610ced565b6040516102e29190611768565b60405180910390f35b3480156102f757600080fd5b50610300610cf3565b005b34801561030e57600080fd5b50610317610d07565b6040516103249190611768565b60405180910390f35b34801561033957600080fd5b50610354600480360381019061034f9190611783565b610d0d565b6040516103619190611768565b60405180910390f35b34801561037657600080fd5b50610391600480360381019061038c9190611878565b610d31565b005b34801561039f57600080fd5b506103a8610d78565b6040516103b591906117f1565b60405180910390f35b3480156103ca57600080fd5b506103d3610da1565b6040516103e09190611768565b60405180910390f35b3480156103f557600080fd5b506103fe610da7565b60405161040b9190611768565b60405180910390f35b34801561042057600080fd5b5061043b60048036038101906104369190611783565b610dad565b6040516104489190611768565b60405180910390f35b34801561045d57600080fd5b5061047860048036038101906104739190611838565b610dc5565b604051610488949392919061194a565b60405180910390f35b34801561049d57600080fd5b506104b860048036038101906104b39190611783565b610e1c565b6040516104c59190611768565b60405180910390f35b3480156104da57600080fd5b506104f560048036038101906104f09190611719565b610e34565b6040516105029190611768565b60405180910390f35b61052560048036038101906105209190611878565b610e59565b005b34801561053357600080fd5b5061054e6004803603810190610549919061198f565b611217565b005b34801561055c57600080fd5b5061057760048036038101906105729190611783565b6112f9565b60405161058491906119cf565b60405180910390f35b34801561059957600080fd5b506105b460048036038101906105af91906119ea565b611319565b005b3480156105c257600080fd5b506105cb61139f565b6040516105d89190611a76565b60405180910390f35b600c602052816000526040600020602052806000526040600020600091509150505481565b60006009600083815260200190815260200160002060006106256113c5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506002828154811061067557610674611a91565b5b90600052602060002001544210156106b9576040517fd7aa673800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e600083815260200190815260200160002060009054906101000a900460ff1660038111156106ec576106eb6118b8565b5b8160020160009054906101000a900460ff1660038111156107105761070f6118b8565b5b14610747576040517f8218e4b200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600115158160020160019054906101000a900460ff16151503610796576040517f646cf55800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080600190505b6003808111156107b1576107b06118b8565b5b811161089057600e600085815260200190815260200160002060009054906101000a900460ff1660038111156107ea576107e96118b8565b5b8160038111156107fd576107fc6118b8565b5b600381111561080f5761080e6118b8565b5b1461087d57600c6000858152602001908152602001600020600082600381111561083c5761083b6118b8565b5b600381111561084e5761084d6118b8565b5b60038111156108605761085f6118b8565b5b8152602001908152602001600020548261087a9190611aef565b91505b808061088890611b23565b91505061079e565b506000811115610a7a57600061091c8360405180608001604052908160008201548152602001600182015481526020016002820160009054906101000a900460ff1660038111156108e4576108e36118b8565b5b60038111156108f6576108f56118b8565b5b81526020016002820160019054906101000a900460ff16151515158152505060016113cd565b905060006103e8600d6000878152602001908152602001600020548386600101546109479190611b6b565b6109519190611bdc565b61095b9190611b6b565b9050600060646001546103e88087866109749190611b6b565b61097e9190611bdc565b6109889190611bdc565b6109929190611b6b565b61099c9190611bdc565b9050600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6109e46113c5565b8388600101546109f49190611aef565b6040518363ffffffff1660e01b8152600401610a11929190611c0d565b6020604051808303816000875af1158015610a30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a549190611c62565b5060018560020160016101000a81548160ff021916908315150217905550505050610b44565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb610ac06113c5565b84600101546040518363ffffffff1660e01b8152600401610ae2929190611c0d565b6020604051808303816000875af1158015610b01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b259190611c62565b5060018260020160016101000a81548160ff0219169083151502179055505b505050565b60055481565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610b7d61156e565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb610bc36113c5565b836040518363ffffffff1660e01b8152600401610be1929190611c0d565b6020604051808303816000875af1158015610c00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c249190611c62565b5050565b610c3061156e565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb82846040518363ffffffff1660e01b8152600401610c8d929190611c0d565b6020604051808303816000875af1158015610cac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd09190611c62565b505050565b60045481565b610ce361156e565b8060018190555050565b60035481565b610cfb61156e565b610d0560006115f5565b565b60075481565b60028181548110610d1d57600080fd5b906000526020600020016000915090505481565b610d3961156e565b81600e600083815260200190815260200160002060006101000a81548160ff02191690836003811115610d6f57610d6e6118b8565b5b02179055505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600f5481565b60015481565b600d6020528060005260406000206000915090505481565b6009602052816000526040600020602052806000526040600020600091509150508060000154908060010154908060020160009054906101000a900460ff16908060020160019054906101000a900460ff16905084565b600b6020528060005260406000206000915090505481565b600a602052816000526040600020602052806000526040600020600091509150505481565b600060096000600f5481526020019081526020016000206000610e7a6113c5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015414610eef576040517f1c9529fa00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600554421115610f2b576040517f4ffb268b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006040518060800160405280428152602001838152602001846003811115610f5757610f566118b8565b5b81526020016000151581525090508060096000600f5481526020019081526020016000206000610f856113c5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082015181600001556020820151816001015560408201518160020160006101000a81548160ff02191690836003811115610ffe57610ffd6118b8565b5b021790555060608201518160020160016101000a81548160ff02191690831515021790555090505081600a6000600f5481526020019081526020016000206000856003811115611051576110506118b8565b5b6003811115611063576110626118b8565b5b815260200190815260200160002060008282546110809190611aef565b9250508190555060006110948260006113cd565b90506103e881846110a59190611b6b565b6110af9190611bdc565b600d6000600f54815260200190815260200160002060008282546110d39190611aef565b9250508190555082600b6000600f54815260200190815260200160002060008282546110ff9190611aef565b9250508190555082600c6000600f5481526020019081526020016000206000866003811115611131576111306118b8565b5b6003811115611143576111426118b8565b5b815260200190815260200160002060008282546111609190611aef565b92505081905550600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd6111ad6113c5565b30866040518463ffffffff1660e01b81526004016111cd93929190611c8f565b6020604051808303816000875af11580156111ec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112109190611c62565b5050505050565b61121f61156e565b426002600f548154811061123657611235611a91565b5b906000526020600020015410611281576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127890611d49565b60405180910390fd5b6002600f548154811061129757611296611a91565b5b906000526020600020015482116112ad57600080fd5b806005819055506002829080600181540180825580915050600190039060005260206000200160009091909190915055600f60008154809291906112f090611b23565b91905055505050565b600e6020528060005260406000206000915054906101000a900460ff1681565b61132161156e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036113935760006040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161138a91906117f1565b60405180910390fd5b61139c816115f5565b50565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600033905090565b6000806002600184600f546113e29190611d69565b6113ec9190611d69565b815481106113fd576113fc611a91565b5b9060005260206000200154600284600f546114189190611d69565b8154811061142957611428611a91565b5b906000526020600020015461143e9190611d69565b905060008460000151600285600f546114579190611d69565b8154811061146857611467611a91565b5b906000526020600020015461147d9190611d69565b90506000826103e883856114919190611d69565b61149b9190611b6b565b6114a59190611bdc565b6103e86114b29190611d69565b9050600081116114f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ee90611de9565b60405180910390fd5b6000806103e8905060006101f4905060006103e89050816103e8838361151d9190611d69565b86866115299190611d69565b6103e8896115379190611b6b565b6115419190611bdc565b61154b9190611b6b565b6115559190611bdc565b61155f9190611aef565b97505050505050505092915050565b6115766113c5565b73ffffffffffffffffffffffffffffffffffffffff16611594610d78565b73ffffffffffffffffffffffffffffffffffffffff16146115f3576115b76113c5565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016115ea91906117f1565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b6000819050919050565b6116d1816116be565b81146116dc57600080fd5b50565b6000813590506116ee816116c8565b92915050565b6004811061170157600080fd5b50565b600081359050611713816116f4565b92915050565b600080604083850312156117305761172f6116b9565b5b600061173e858286016116df565b925050602061174f85828601611704565b9150509250929050565b611762816116be565b82525050565b600060208201905061177d6000830184611759565b92915050565b600060208284031215611799576117986116b9565b5b60006117a7848285016116df565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006117db826117b0565b9050919050565b6117eb816117d0565b82525050565b600060208201905061180660008301846117e2565b92915050565b611815816117d0565b811461182057600080fd5b50565b6000813590506118328161180c565b92915050565b6000806040838503121561184f5761184e6116b9565b5b600061185d858286016116df565b925050602061186e85828601611823565b9150509250929050565b6000806040838503121561188f5761188e6116b9565b5b600061189d85828601611704565b92505060206118ae858286016116df565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600481106118f8576118f76118b8565b5b50565b6000819050611909826118e7565b919050565b6000611919826118fb565b9050919050565b6119298161190e565b82525050565b60008115159050919050565b6119448161192f565b82525050565b600060808201905061195f6000830187611759565b61196c6020830186611759565b6119796040830185611920565b611986606083018461193b565b95945050505050565b600080604083850312156119a6576119a56116b9565b5b60006119b4858286016116df565b92505060206119c5858286016116df565b9150509250929050565b60006020820190506119e46000830184611920565b92915050565b600060208284031215611a00576119ff6116b9565b5b6000611a0e84828501611823565b91505092915050565b6000819050919050565b6000611a3c611a37611a32846117b0565b611a17565b6117b0565b9050919050565b6000611a4e82611a21565b9050919050565b6000611a6082611a43565b9050919050565b611a7081611a55565b82525050565b6000602082019050611a8b6000830184611a67565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611afa826116be565b9150611b05836116be565b9250828201905080821115611b1d57611b1c611ac0565b5b92915050565b6000611b2e826116be565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611b6057611b5f611ac0565b5b600182019050919050565b6000611b76826116be565b9150611b81836116be565b9250828202611b8f816116be565b91508282048414831517611ba657611ba5611ac0565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000611be7826116be565b9150611bf2836116be565b925082611c0257611c01611bad565b5b828204905092915050565b6000604082019050611c2260008301856117e2565b611c2f6020830184611759565b9392505050565b611c3f8161192f565b8114611c4a57600080fd5b50565b600081519050611c5c81611c36565b92915050565b600060208284031215611c7857611c776116b9565b5b6000611c8684828501611c4d565b91505092915050565b6000606082019050611ca460008301866117e2565b611cb160208301856117e2565b611cbe6040830184611759565b949350505050565b600082825260208201905092915050565b7f63616e206f6e6c79207365742074696d657374616d70206166746572206d656560008201527f74696e6700000000000000000000000000000000000000000000000000000000602082015250565b6000611d33602483611cc6565b9150611d3e82611cd7565b604082019050919050565b60006020820190508181036000830152611d6281611d26565b9050919050565b6000611d74826116be565b9150611d7f836116be565b9250828203905081811115611d9757611d96611ac0565b5b92915050565b7f6e6f7468696e6720746f20636c61696d00000000000000000000000000000000600082015250565b6000611dd3601083611cc6565b9150611dde82611d9d565b602082019050919050565b60006020820190508181036000830152611e0281611dc6565b905091905056fea2646970667358221220da1fb9919d1951e54708307f6b39baf692f71112000a9307c85b2ea237d736c264736f6c63430008150033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000d0d19f52ad8705e60ff31df75a7aca8f1399a69e000000000000000000000000314dcda5696ae9005c86444208d0bb4bae1957d300000000000000000000000000000000000000000000000000000000648a0020
-----Decoded View---------------
Arg [0] : _tokenAddress (address): 0xD0d19F52Ad8705E60Ff31dF75a7ACa8F1399a69e
Arg [1] : _taxWallet (address): 0x314DCdA5696ae9005c86444208d0bB4BaE1957d3
Arg [2] : _upcomingAlienTimestamp (uint256): 1686765600
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000d0d19f52ad8705e60ff31df75a7aca8f1399a69e
Arg [1] : 000000000000000000000000314dcda5696ae9005c86444208d0bb4bae1957d3
Arg [2] : 00000000000000000000000000000000000000000000000000000000648a0020
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $4.93 | 3.2423 | $15.98 |
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.