ERC-20
Overview
Max Total Supply
46,647 sWARP
Holders
4
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
StakingPoolToken
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import './libraries/openzeppelin/contracts/token/ERC20/ERC20.sol'; import './interfaces/IStakingPoolToken.sol'; import './TokenRewards.sol'; import './libraries/openzeppelin/contracts/token/ERC721/IERC721.sol'; contract StakingPoolToken is IStakingPoolToken, ERC20 { address public override stakingToken; address public override poolRewards; address public override stakeUserRestriction; address public warpNft; modifier onlyRestricted() { require(_msgSender() == stakeUserRestriction, 'RESUSERAUTH'); _; } constructor( string memory _name, string memory _symbol, address _stakingToken, address _rewardsToken, address _stakeUserRestriction, address _warpNft ) ERC20(_name, _symbol) { stakingToken = _stakingToken; stakeUserRestriction = _stakeUserRestriction; poolRewards = address( new TokenRewards(address(this), _rewardsToken) ); warpNft = _warpNft; } function stake(address _user, uint256 _amount) external override { if (stakeUserRestriction != address(0)) { require(_user == stakeUserRestriction, 'RESTRICT'); } uint256 userNftBalance = IERC721(warpNft).balanceOf(_msgSender()); require(userNftBalance > 0,"Need to hold at least one nft to stake tokens"); _mint(_user, _amount); IERC20(stakingToken).transferFrom(_msgSender(), address(this), _amount); emit Stake(_msgSender(), _user, _amount); } function unstake(uint256 _amount) external override { _burn(_msgSender(), _amount); IERC20(stakingToken).transfer(_msgSender(), _amount); emit Unstake(_msgSender(), _amount); } function removeStakeUserRestriction() external onlyRestricted { stakeUserRestriction = address(0); } function setStakeUserRestriction(address _user) external onlyRestricted { stakeUserRestriction = _user; } function _transfer( address _from, address _to, uint256 _amount ) internal virtual override { super._transfer(_from, _to, _amount); _afterTokenTransfer(_from, _to, _amount); } function _mint(address _to, uint256 _amount) internal override { super._mint(_to, _amount); _afterTokenTransfer(address(0), _to, _amount); } function _burn(address _from, uint256 _amount) internal override { super._burn(_from, _amount); _afterTokenTransfer(_from, address(0), _amount); } function _afterTokenTransfer( address _from, address _to, uint256 _amount ) internal { if (_from != address(0) && _from != address(0xdead)) { TokenRewards(poolRewards).setShares(_from, _amount, true); } if (_to != address(0) && _to != address(0xdead)) { TokenRewards(poolRewards).setShares(_to, _amount, false); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.20; import {IERC165} from "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon * a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or * {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon * a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the address zero. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; pragma abicoder v2; import './libraries/openzeppelin/contracts/token/ERC20/IERC20.sol'; import './libraries/openzeppelin/contracts/utils/Context.sol'; import './libraries/BokkyPooBahsDateTimeLibrary.sol'; import './interfaces/ITokenRewards.sol'; contract TokenRewards is ITokenRewards, Context { address constant V3_ROUTER = 0xE592427A0AEce92De3Edee1F18E0157C05861564; uint256 constant PRECISION = 10 ** 36; uint24 constant REWARDS_POOL_FEE = 10000; // 1% struct Reward { uint256 excluded; uint256 realized; } address public override trackingToken; address public override rewardsToken; uint256 public override totalShares; uint256 public override totalStakers; mapping(address => uint256) public shares; mapping(address => Reward) public rewards; uint256 _rewardsSwapSlippage = 10; // 1% uint256 _rewardsPerShare; uint256 public rewardsDistributed; uint256 public rewardsDeposited; mapping(uint256 => uint256) public rewardsDepMonthly; modifier onlyTrackingToken() { require(_msgSender() == trackingToken, 'UNAUTHORIZED'); _; } constructor( address _trackingToken, address _rewardsToken ) { trackingToken = _trackingToken; rewardsToken = _rewardsToken; } function setShares( address _wallet, uint256 _amount, bool _sharesRemoving ) external override onlyTrackingToken { _setShares(_wallet, _amount, _sharesRemoving); } function _setShares( address _wallet, uint256 _amount, bool _sharesRemoving ) internal { if (_sharesRemoving) { _removeShares(_wallet, _amount); emit RemoveShares(_wallet, _amount); } else { _addShares(_wallet, _amount); emit AddShares(_wallet, _amount); } } function _addShares(address _wallet, uint256 _amount) internal { if (shares[_wallet] > 0) { _distributeReward(_wallet); } uint256 sharesBefore = shares[_wallet]; totalShares += _amount; shares[_wallet] += _amount; if (sharesBefore == 0 && shares[_wallet] > 0) { totalStakers++; } rewards[_wallet].excluded = _cumulativeRewards(shares[_wallet]); } function _removeShares(address _wallet, uint256 _amount) internal { require(shares[_wallet] > 0 && _amount <= shares[_wallet], 'REMOVE'); _distributeReward(_wallet); totalShares -= _amount; shares[_wallet] -= _amount; if (shares[_wallet] == 0) { totalStakers--; } rewards[_wallet].excluded = _cumulativeRewards(shares[_wallet]); } function depositRewards(uint256 _amount) external override { require(_amount > 0, 'DEPAM'); uint256 _rewardsBalBefore = IERC20(rewardsToken).balanceOf(address(this)); IERC20(rewardsToken).transferFrom(_msgSender(), address(this), _amount); _depositRewards( IERC20(rewardsToken).balanceOf(address(this)) - _rewardsBalBefore ); } function _depositRewards(uint256 _amountTotal) internal { if (_amountTotal == 0) { return; } if (totalShares == 0) { _burnRewards(_amountTotal); return; } uint256 _burnAmount = _amountTotal / 10; uint256 _depositAmount = _amountTotal - _burnAmount; _burnRewards(_burnAmount); rewardsDeposited += _depositAmount; rewardsDepMonthly[beginningOfMonth(block.timestamp)] += _depositAmount; _rewardsPerShare += (PRECISION * _depositAmount) / totalShares; emit DepositRewards(_msgSender(), _depositAmount); } function _distributeReward(address _wallet) internal { if (shares[_wallet] == 0) { return; } uint256 _amount = getUnpaid(_wallet); rewards[_wallet].realized += _amount; rewards[_wallet].excluded = _cumulativeRewards(shares[_wallet]); if (_amount > 0) { rewardsDistributed += _amount; IERC20(rewardsToken).transfer(_wallet, _amount); emit DistributeReward(_wallet, _amount); } } function _burnRewards(uint256 _burnAmount) internal { IERC20(rewardsToken).transfer(address(0xdead), _burnAmount); } function beginningOfMonth(uint256 _timestamp) public pure returns (uint256) { (, , uint256 _dayOfMonth) = BokkyPooBahsDateTimeLibrary.timestampToDate( _timestamp ); return _timestamp - ((_dayOfMonth - 1) * 1 days) - (_timestamp % 1 days); } function claimReward(address _wallet) external override { _distributeReward(_wallet); emit ClaimReward(_wallet); } function getUnpaid(address _wallet) public view returns (uint256) { if (shares[_wallet] == 0) { return 0; } uint256 earnedRewards = _cumulativeRewards(shares[_wallet]); uint256 rewardsExcluded = rewards[_wallet].excluded; if (earnedRewards <= rewardsExcluded) { return 0; } return earnedRewards - rewardsExcluded; } function _cumulativeRewards(uint256 _share) internal view returns (uint256) { return (_share * _rewardsPerShare) / PRECISION; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IStakingPoolToken { event Stake(address indexed executor, address indexed user, uint256 amount); event Unstake(address indexed user, uint256 amount); function stakingToken() external view returns (address); function poolRewards() external view returns (address); function stakeUserRestriction() external view returns (address); function stake(address user, uint256 amount) external; function unstake(uint256 amount) external; }
// 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) virtual 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) virtual 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) virtual 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) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// 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.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.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 pragma solidity ^0.8.13; interface ITokenRewards { event AddShares(address indexed wallet, uint256 amount); event RemoveShares(address indexed wallet, uint256 amount); event ClaimReward(address indexed wallet); event DistributeReward(address indexed wallet, uint256 amount); event DepositRewards(address indexed wallet, uint256 amount); function totalShares() external view returns (uint256); function totalStakers() external view returns (uint256); function rewardsToken() external view returns (address); function trackingToken() external view returns (address); function depositRewards(uint256 amount) external; function claimReward(address wallet) external; function setShares( address wallet, uint256 amount, bool sharesRemoving ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; // ---------------------------------------------------------------------------- // BokkyPooBah's DateTime Library v1.00 // // A gas-efficient Solidity date and time library // // https://github.com/bokkypoobah/BokkyPooBahsDateTimeLibrary // // Tested date range 1970/01/01 to 2345/12/31 // // Conventions: // Unit | Range | Notes // :-------- |:-------------:|:----- // timestamp | >= 0 | Unix timestamp, number of seconds since 1970/01/01 00:00:00 UTC // year | 1970 ... 2345 | // month | 1 ... 12 | // day | 1 ... 31 | // hour | 0 ... 23 | // minute | 0 ... 59 | // second | 0 ... 59 | // dayOfWeek | 1 ... 7 | 1 = Monday, ..., 7 = Sunday // // // Enjoy. (c) BokkyPooBah / Bok Consulting Pty Ltd 2018. // // GNU Lesser General Public License 3.0 // https://www.gnu.org/licenses/lgpl-3.0.en.html // ---------------------------------------------------------------------------- library BokkyPooBahsDateTimeLibrary { uint constant SECONDS_PER_DAY = 24 * 60 * 60; int constant OFFSET19700101 = 2440588; // ------------------------------------------------------------------------ // Calculate year/month/day from the number of days since 1970/01/01 using // the date conversion algorithm from // http://aa.usno.navy.mil/faq/docs/JD_Formula.php // and adding the offset 2440588 so that 1970/01/01 is day 0 // // int L = days + 68569 + offset // int N = 4 * L / 146097 // L = L - (146097 * N + 3) / 4 // year = 4000 * (L + 1) / 1461001 // L = L - 1461 * year / 4 + 31 // month = 80 * L / 2447 // dd = L - 2447 * month / 80 // L = month / 11 // month = month + 2 - 12 * L // year = 100 * (N - 49) + year + L // ------------------------------------------------------------------------ function _daysToDate( uint _days ) internal pure returns (uint year, uint month, uint day) { int __days = int(_days); int L = __days + 68569 + OFFSET19700101; int N = (4 * L) / 146097; L = L - (146097 * N + 3) / 4; int _year = (4000 * (L + 1)) / 1461001; L = L - (1461 * _year) / 4 + 31; int _month = (80 * L) / 2447; int _day = L - (2447 * _month) / 80; L = _month / 11; _month = _month + 2 - 12 * L; _year = 100 * (N - 49) + _year + L; year = uint(_year); month = uint(_month); day = uint(_day); } function timestampToDate( uint timestamp ) internal pure returns (uint year, uint month, uint day) { (year, month, day) = _daysToDate(timestamp / SECONDS_PER_DAY); } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_stakingToken","type":"address"},{"internalType":"address","name":"_rewardsToken","type":"address"},{"internalType":"address","name":"_stakeUserRestriction","type":"address"},{"internalType":"address","name":"_warpNft","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"executor","type":"address"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Stake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Unstake","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolRewards","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"removeStakeUserRestriction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"setStakeUserRestriction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakeUserRestriction","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"warpNft","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801562000010575f80fd5b5060405162003f2038038062003f20833981810160405281019062000036919062000395565b85858160039081620000499190620006a2565b5080600490816200005b9190620006a2565b5050508360055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508160075f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503083604051620000ee90620001a1565b620000fb92919062000797565b604051809103905ff08015801562000115573d5f803e3d5ffd5b5060065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060085f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050505050620007c2565b611bd6806200234a83390190565b5f604051905090565b5f80fd5b5f80fd5b5f80fd5b5f80fd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6200021082620001c8565b810181811067ffffffffffffffff82111715620002325762000231620001d8565b5b80604052505050565b5f62000246620001af565b905062000254828262000205565b919050565b5f67ffffffffffffffff821115620002765762000275620001d8565b5b6200028182620001c8565b9050602081019050919050565b5f5b83811015620002ad57808201518184015260208101905062000290565b5f8484015250505050565b5f620002ce620002c88462000259565b6200023b565b905082815260208101848484011115620002ed57620002ec620001c4565b5b620002fa8482856200028e565b509392505050565b5f82601f830112620003195762000318620001c0565b5b81516200032b848260208601620002b8565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6200035f8262000334565b9050919050565b620003718162000353565b81146200037c575f80fd5b50565b5f815190506200038f8162000366565b92915050565b5f805f805f8060c08789031215620003b257620003b1620001b8565b5b5f87015167ffffffffffffffff811115620003d257620003d1620001bc565b5b620003e089828a0162000302565b965050602087015167ffffffffffffffff811115620004045762000403620001bc565b5b6200041289828a0162000302565b95505060406200042589828a016200037f565b94505060606200043889828a016200037f565b93505060806200044b89828a016200037f565b92505060a06200045e89828a016200037f565b9150509295509295509295565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680620004ba57607f821691505b602082108103620004d057620004cf62000475565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302620005347fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620004f7565b620005408683620004f7565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f6200058a620005846200057e8462000558565b62000561565b62000558565b9050919050565b5f819050919050565b620005a5836200056a565b620005bd620005b48262000591565b84845462000503565b825550505050565b5f90565b620005d3620005c5565b620005e08184846200059a565b505050565b5b818110156200060757620005fb5f82620005c9565b600181019050620005e6565b5050565b601f82111562000656576200062081620004d6565b6200062b84620004e8565b810160208510156200063b578190505b620006536200064a85620004e8565b830182620005e5565b50505b505050565b5f82821c905092915050565b5f620006785f19846008026200065b565b1980831691505092915050565b5f62000692838362000667565b9150826002028217905092915050565b620006ad826200046b565b67ffffffffffffffff811115620006c957620006c8620001d8565b5b620006d58254620004a2565b620006e28282856200060b565b5f60209050601f83116001811462000718575f841562000703578287015190505b6200070f858262000685565b8655506200077e565b601f1984166200072886620004d6565b5f5b8281101562000751578489015182556001820191506020850194506020810190506200072a565b868310156200077157848901516200076d601f89168262000667565b8355505b6001600288020188555050505b505050505050565b620007918162000353565b82525050565b5f604082019050620007ac5f83018562000786565b620007bb602083018462000786565b9392505050565b611b7a80620007d05f395ff3fe608060405234801561000f575f80fd5b5060043610610109575f3560e01c806372f702f3116100a0578063adc9772e1161006f578063adc9772e146102bb578063c56e0ad8146102d7578063da0e1dab146102e1578063dba802d9146102ff578063dd62ed3e1461031b57610109565b806372f702f3146102315780638bc6beb21461024f57806395d89b411461026d578063a9059cbb1461028b57610109565b80632e17de78116100dc5780632e17de78146101a9578063313ce567146101c55780634d89d95d146101e357806370a082311461020157610109565b806306fdde031461010d578063095ea7b31461012b57806318160ddd1461015b57806323b872dd14610179575b5f80fd5b61011561034b565b6040516101229190611545565b60405180910390f35b610145600480360381019061014091906115f6565b6103db565b604051610152919061164e565b60405180910390f35b6101636103fd565b6040516101709190611676565b60405180910390f35b610193600480360381019061018e919061168f565b610406565b6040516101a0919061164e565b60405180910390f35b6101c360048036038101906101be91906116df565b610434565b005b6101cd610541565b6040516101da9190611725565b60405180910390f35b6101eb610549565b6040516101f8919061174d565b60405180910390f35b61021b60048036038101906102169190611766565b61056e565b6040516102289190611676565b60405180910390f35b6102396105b3565b604051610246919061174d565b60405180910390f35b6102576105d8565b604051610264919061174d565b60405180910390f35b6102756105fd565b6040516102829190611545565b60405180910390f35b6102a560048036038101906102a091906115f6565b61068d565b6040516102b2919061164e565b60405180910390f35b6102d560048036038101906102d091906115f6565b6106af565b005b6102df610999565b005b6102e9610a71565b6040516102f6919061174d565b60405180910390f35b61031960048036038101906103149190611766565b610a96565b005b61033560048036038101906103309190611791565b610b6f565b6040516103429190611676565b60405180910390f35b60606003805461035a906117fc565b80601f0160208091040260200160405190810160405280929190818152602001828054610386906117fc565b80156103d15780601f106103a8576101008083540402835291602001916103d1565b820191905f5260205f20905b8154815290600101906020018083116103b457829003601f168201915b5050505050905090565b5f806103e5610bf1565b90506103f2818585610bf8565b600191505092915050565b5f600254905090565b5f80610410610bf1565b905061041d858285610c0a565b610428858585610c9c565b60019150509392505050565b61044561043f610bf1565b82610cb7565b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb61048a610bf1565b836040518363ffffffff1660e01b81526004016104a892919061182c565b6020604051808303815f875af11580156104c4573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104e8919061187d565b506104f1610bf1565b73ffffffffffffffffffffffffffffffffffffffff167f85082129d87b2fe11527cb1b3b7a520aeb5aa6913f88a3d8757fe40d1db02fdd826040516105369190611676565b60405180910390a250565b5f6012905090565b60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60606004805461060c906117fc565b80601f0160208091040260200160405190810160405280929190818152602001828054610638906117fc565b80156106835780601f1061065a57610100808354040283529160200191610683565b820191905f5260205f20905b81548152906001019060200180831161066657829003601f168201915b5050505050905090565b5f80610697610bf1565b90506106a4818585610c9c565b600191505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff1660075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146107935760075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614610792576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610789906118f2565b60405180910390fd5b5b5f60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a082316107d9610bf1565b6040518263ffffffff1660e01b81526004016107f5919061174d565b602060405180830381865afa158015610810573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108349190611924565b90505f8111610878576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086f906119bf565b60405180910390fd5b6108828383610cd0565b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd6108c7610bf1565b30856040518463ffffffff1660e01b81526004016108e7939291906119dd565b6020604051808303815f875af1158015610903573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610927919061187d565b508273ffffffffffffffffffffffffffffffffffffffff16610947610bf1565b73ffffffffffffffffffffffffffffffffffffffff167f99039fcf0a98f484616c5196ee8b2ecfa971babf0b519848289ea4db381f85f78460405161098c9190611676565b60405180910390a3505050565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166109d9610bf1565b73ffffffffffffffffffffffffffffffffffffffff1614610a2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a2690611a5c565b60405180910390fd5b5f60075f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610ad6610bf1565b73ffffffffffffffffffffffffffffffffffffffff1614610b2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2390611a5c565b60405180910390fd5b8060075f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b5f33905090565b610c058383836001610ce9565b505050565b5f610c158484610b6f565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610c965781811015610c87578281836040517ffb8f41b2000000000000000000000000000000000000000000000000000000008152600401610c7e93929190611a7a565b60405180910390fd5b610c9584848484035f610ce9565b5b50505050565b610ca7838383610eb8565b610cb2838383610fa8565b505050565b610cc182826111a4565b610ccc825f83610fa8565b5050565b610cda8282611223565b610ce55f8383610fa8565b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610d59575f6040517fe602df05000000000000000000000000000000000000000000000000000000008152600401610d50919061174d565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610dc9575f6040517f94280d62000000000000000000000000000000000000000000000000000000008152600401610dc0919061174d565b60405180910390fd5b8160015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508015610eb2578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610ea99190611676565b60405180910390a35b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610f28575f6040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610f1f919061174d565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f98575f6040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610f8f919061174d565b60405180910390fd5b610fa38383836112a2565b505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015611012575061dead73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b156110a45760065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d6460b4b848360016040518463ffffffff1660e01b815260040161107693929190611aaf565b5f604051808303815f87803b15801561108d575f80fd5b505af115801561109f573d5f803e3d5ffd5b505050505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415801561110e575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b1561119f5760065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d6460b4b83835f6040518463ffffffff1660e01b815260040161117193929190611aaf565b5f604051808303815f87803b158015611188575f80fd5b505af115801561119a573d5f803e3d5ffd5b505050505b505050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611214575f6040517f96c6fd1e00000000000000000000000000000000000000000000000000000000815260040161120b919061174d565b60405180910390fd5b61121f825f836112a2565b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611293575f6040517fec442f0500000000000000000000000000000000000000000000000000000000815260040161128a919061174d565b60405180910390fd5b61129e5f83836112a2565b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036112f2578060025f8282546112e69190611b11565b925050819055506113c0565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490508181101561137b578381836040517fe450d38c00000000000000000000000000000000000000000000000000000000815260040161137293929190611a7a565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611407578060025f8282540392505081905550611451565b805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516114ae9190611676565b60405180910390a3505050565b5f81519050919050565b5f82825260208201905092915050565b5f5b838110156114f25780820151818401526020810190506114d7565b5f8484015250505050565b5f601f19601f8301169050919050565b5f611517826114bb565b61152181856114c5565b93506115318185602086016114d5565b61153a816114fd565b840191505092915050565b5f6020820190508181035f83015261155d818461150d565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61159282611569565b9050919050565b6115a281611588565b81146115ac575f80fd5b50565b5f813590506115bd81611599565b92915050565b5f819050919050565b6115d5816115c3565b81146115df575f80fd5b50565b5f813590506115f0816115cc565b92915050565b5f806040838503121561160c5761160b611565565b5b5f611619858286016115af565b925050602061162a858286016115e2565b9150509250929050565b5f8115159050919050565b61164881611634565b82525050565b5f6020820190506116615f83018461163f565b92915050565b611670816115c3565b82525050565b5f6020820190506116895f830184611667565b92915050565b5f805f606084860312156116a6576116a5611565565b5b5f6116b3868287016115af565b93505060206116c4868287016115af565b92505060406116d5868287016115e2565b9150509250925092565b5f602082840312156116f4576116f3611565565b5b5f611701848285016115e2565b91505092915050565b5f60ff82169050919050565b61171f8161170a565b82525050565b5f6020820190506117385f830184611716565b92915050565b61174781611588565b82525050565b5f6020820190506117605f83018461173e565b92915050565b5f6020828403121561177b5761177a611565565b5b5f611788848285016115af565b91505092915050565b5f80604083850312156117a7576117a6611565565b5b5f6117b4858286016115af565b92505060206117c5858286016115af565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061181357607f821691505b602082108103611826576118256117cf565b5b50919050565b5f60408201905061183f5f83018561173e565b61184c6020830184611667565b9392505050565b61185c81611634565b8114611866575f80fd5b50565b5f8151905061187781611853565b92915050565b5f6020828403121561189257611891611565565b5b5f61189f84828501611869565b91505092915050565b7f52455354524943540000000000000000000000000000000000000000000000005f82015250565b5f6118dc6008836114c5565b91506118e7826118a8565b602082019050919050565b5f6020820190508181035f830152611909816118d0565b9050919050565b5f8151905061191e816115cc565b92915050565b5f6020828403121561193957611938611565565b5b5f61194684828501611910565b91505092915050565b7f4e65656420746f20686f6c64206174206c65617374206f6e65206e667420746f5f8201527f207374616b6520746f6b656e7300000000000000000000000000000000000000602082015250565b5f6119a9602d836114c5565b91506119b48261194f565b604082019050919050565b5f6020820190508181035f8301526119d68161199d565b9050919050565b5f6060820190506119f05f83018661173e565b6119fd602083018561173e565b611a0a6040830184611667565b949350505050565b7f52455355534552415554480000000000000000000000000000000000000000005f82015250565b5f611a46600b836114c5565b9150611a5182611a12565b602082019050919050565b5f6020820190508181035f830152611a7381611a3a565b9050919050565b5f606082019050611a8d5f83018661173e565b611a9a6020830185611667565b611aa76040830184611667565b949350505050565b5f606082019050611ac25f83018661173e565b611acf6020830185611667565b611adc604083018461163f565b949350505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f611b1b826115c3565b9150611b26836115c3565b9250828201905080821115611b3e57611b3d611ae4565b5b9291505056fea264697066735822122042a55d7518c61fd259b1affdd154fb57d0205abe5af59963d32ff303026a9d1964736f6c634300081400336080604052600a60065534801562000015575f80fd5b5060405162001bd638038062001bd683398181016040528101906200003b919062000127565b815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050506200016c565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f620000f182620000c6565b9050919050565b6200010381620000e5565b81146200010e575f80fd5b50565b5f815190506200012181620000f8565b92915050565b5f806040838503121562000140576200013f620000c2565b5b5f6200014f8582860162000111565b9250506020620001628582860162000111565b9150509250929050565b611a5c806200017a5f395ff3fe608060405234801561000f575f80fd5b50600436106100e8575f3560e01c8063ba32722e1161008a578063d076eabc11610064578063d076eabc1461025f578063d1af0c7d1461028f578063d279c191146102ad578063d6460b4b146102c9576100e8565b8063ba32722e146101e1578063bde3081814610211578063ce7c2ac21461022f576100e8565b806389d96917116100c657806389d96917146101595780638bdf67f2146101895780639c1454d4146101a5578063a95ae7eb146101c3576100e8565b80630700037d146100ec5780633a98ef391461011d578063869890381461013b575b5f80fd5b61010660048036038101906101019190611348565b6102e5565b60405161011492919061138b565b60405180910390f35b610125610305565b60405161013291906113b2565b60405180910390f35b61014361030b565b60405161015091906113b2565b60405180910390f35b610173600480360381019061016e9190611348565b610311565b60405161018091906113b2565b60405180910390f35b6101a3600480360381019061019e91906113f5565b610411565b005b6101ad610645565b6040516101ba91906113b2565b60405180910390f35b6101cb61064b565b6040516101d891906113b2565b60405180910390f35b6101fb60048036038101906101f691906113f5565b610651565b60405161020891906113b2565b60405180910390f35b610219610666565b604051610226919061142f565b60405180910390f35b61024960048036038101906102449190611348565b610689565b60405161025691906113b2565b60405180910390f35b610279600480360381019061027491906113f5565b61069e565b60405161028691906113b2565b60405180910390f35b6102976106f4565b6040516102a4919061142f565b60405180910390f35b6102c760048036038101906102c29190611348565b610719565b005b6102e360048036038101906102de919061147d565b610768565b005b6005602052805f5260405f205f91509050805f0154908060010154905082565b60025481565b60035481565b5f8060045f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20540361035e575f905061040c565b5f6103a560045f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461080c565b90505f60055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f015490508082116103fb575f9250505061040c565b808261040791906114fa565b925050505b919050565b5f8111610453576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161044a90611587565b60405180910390fd5b5f60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016104ae919061142f565b602060405180830381865afa1580156104c9573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104ed91906115b9565b905060015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd61053461083c565b30856040518463ffffffff1660e01b8152600401610554939291906115e4565b6020604051808303815f875af1158015610570573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610594919061162d565b506106418160015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016105f3919061142f565b602060405180830381865afa15801561060e573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061063291906115b9565b61063c91906114fa565b610843565b5050565b60085481565b60095481565b600a602052805f5260405f205f915090505481565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6004602052805f5260405f205f915090505481565b5f806106a98361096b565b9250505062015180836106bc9190611685565b620151806001836106cd91906114fa565b6106d791906116b5565b846106e291906114fa565b6106ec91906114fa565b915050919050565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61072281610998565b8073ffffffffffffffffffffffffffffffffffffffff167f63e32091e4445d16e29c33a6b264577c2d86694021aa4e6f4dd590048f5792e860405160405180910390a250565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166107a661083c565b73ffffffffffffffffffffffffffffffffffffffff16146107fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107f390611740565b60405180910390fd5b610807838383610bd9565b505050565b5f6ec097ce7bc90715b34b9f10000000006007548361082b91906116b5565b610835919061175e565b9050919050565b5f33905090565b5f810315610968575f600254036108625761085d81610c9a565b610968565b5f600a82610870919061175e565b90505f818361087f91906114fa565b905061088a82610c9a565b8060095f82825461089b919061178e565b9250508190555080600a5f6108af4261069e565b81526020019081526020015f205f8282546108ca919061178e565b92505081905550600254816ec097ce7bc90715b34b9f10000000006108ef91906116b5565b6108f9919061175e565b60075f828254610909919061178e565b9250508190555061091861083c565b73ffffffffffffffffffffffffffffffffffffffff167fb9ad861b752f80117b35bea6dec99933d8a5ae360f2839ee8784b750d56134098260405161095d91906113b2565b60405180910390a250505b50565b5f805f6109856201518085610980919061175e565b610d3c565b8093508194508295505050509193909250565b5f60045f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20540315610bd6575f6109e782610311565b90508060055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206001015f828254610a38919061178e565b92505081905550610a8560045f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461080c565b60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f01819055505f811115610bd4578060085f828254610ae1919061178e565b9250508190555060015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff1660e01b8152600401610b449291906117c1565b6020604051808303815f875af1158015610b60573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b84919061162d565b508173ffffffffffffffffffffffffffffffffffffffff167fe8b160e373db99a103e0a2abfa029b9c3fc8b328984a1ead8a65ae68ae646db782604051610bcb91906113b2565b60405180910390a25b505b50565b8015610c3c57610be98383610ed4565b8273ffffffffffffffffffffffffffffffffffffffff167fae0577e1c96b26fbc0b9df702431f5470979d001d24f136eded791b8b6521d6f83604051610c2f91906113b2565b60405180910390a2610c95565b610c4683836110f9565b8273ffffffffffffffffffffffffffffffffffffffff167fba8f3777cf908803bf1f3dd58e7f4b7d3de4dbe3c234c4ccab0975d98f7cd38883604051610c8c91906113b2565b60405180910390a25b505050565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb61dead836040518363ffffffff1660e01b8152600401610cf89291906117c1565b6020604051808303815f875af1158015610d14573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d38919061162d565b5050565b5f805f808490505f62253d8c62010bd983610d5791906117f1565b610d6191906117f1565b90505f62023ab1826004610d759190611832565b610d7f91906118a8565b9050600460038262023ab1610d949190611832565b610d9e91906117f1565b610da891906118a8565b82610db39190611910565b91505f62164b09600184610dc791906117f1565b610fa0610dd49190611832565b610dde91906118a8565b9050601f6004826105b5610df29190611832565b610dfc91906118a8565b84610e079190611910565b610e1191906117f1565b92505f61098f846050610e249190611832565b610e2e91906118a8565b90505f60508261098f610e419190611832565b610e4b91906118a8565b85610e569190611910565b9050600b82610e6591906118a8565b945084600c610e749190611832565b600283610e8191906117f1565b610e8b9190611910565b91508483603186610e9c9190611910565b6064610ea89190611832565b610eb291906117f1565b610ebc91906117f1565b92508298508197508096505050505050509193909250565b5f60045f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054118015610f5d575060045f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20548111155b610f9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f939061199a565b60405180910390fd5b610fa582610998565b8060025f828254610fb691906114fa565b925050819055508060045f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825461100991906114fa565b925050819055505f60045f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20540361106c5760035f815480929190611066906119b8565b91905055505b6110b260045f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461080c565b60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f01819055505050565b5f60045f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205411156111485761114782610998565b5b5f60045f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490508160025f82825461119a919061178e565b925050819055508160045f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546111ed919061178e565b925050819055505f8114801561123f57505f60045f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054115b1561125c5760035f815480929190611256906119df565b91905055505b6112a260045f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461080c565b60055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f0181905550505050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f611317826112ee565b9050919050565b6113278161130d565b8114611331575f80fd5b50565b5f813590506113428161131e565b92915050565b5f6020828403121561135d5761135c6112ea565b5b5f61136a84828501611334565b91505092915050565b5f819050919050565b61138581611373565b82525050565b5f60408201905061139e5f83018561137c565b6113ab602083018461137c565b9392505050565b5f6020820190506113c55f83018461137c565b92915050565b6113d481611373565b81146113de575f80fd5b50565b5f813590506113ef816113cb565b92915050565b5f6020828403121561140a576114096112ea565b5b5f611417848285016113e1565b91505092915050565b6114298161130d565b82525050565b5f6020820190506114425f830184611420565b92915050565b5f8115159050919050565b61145c81611448565b8114611466575f80fd5b50565b5f8135905061147781611453565b92915050565b5f805f60608486031215611494576114936112ea565b5b5f6114a186828701611334565b93505060206114b2868287016113e1565b92505060406114c386828701611469565b9150509250925092565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61150482611373565b915061150f83611373565b9250828203905081811115611527576115266114cd565b5b92915050565b5f82825260208201905092915050565b7f444550414d0000000000000000000000000000000000000000000000000000005f82015250565b5f61157160058361152d565b915061157c8261153d565b602082019050919050565b5f6020820190508181035f83015261159e81611565565b9050919050565b5f815190506115b3816113cb565b92915050565b5f602082840312156115ce576115cd6112ea565b5b5f6115db848285016115a5565b91505092915050565b5f6060820190506115f75f830186611420565b6116046020830185611420565b611611604083018461137c565b949350505050565b5f8151905061162781611453565b92915050565b5f60208284031215611642576116416112ea565b5b5f61164f84828501611619565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61168f82611373565b915061169a83611373565b9250826116aa576116a9611658565b5b828206905092915050565b5f6116bf82611373565b91506116ca83611373565b92508282026116d881611373565b915082820484148315176116ef576116ee6114cd565b5b5092915050565b7f554e415554484f52495a454400000000000000000000000000000000000000005f82015250565b5f61172a600c8361152d565b9150611735826116f6565b602082019050919050565b5f6020820190508181035f8301526117578161171e565b9050919050565b5f61176882611373565b915061177383611373565b92508261178357611782611658565b5b828204905092915050565b5f61179882611373565b91506117a383611373565b92508282019050808211156117bb576117ba6114cd565b5b92915050565b5f6040820190506117d45f830185611420565b6117e1602083018461137c565b9392505050565b5f819050919050565b5f6117fb826117e8565b9150611806836117e8565b92508282019050828112155f8312168382125f84121516171561182c5761182b6114cd565b5b92915050565b5f61183c826117e8565b9150611847836117e8565b9250828202611855816117e8565b91507f800000000000000000000000000000000000000000000000000000000000000084145f8412161561188c5761188b6114cd565b5b82820584148315176118a1576118a06114cd565b5b5092915050565b5f6118b2826117e8565b91506118bd836117e8565b9250826118cd576118cc611658565b5b60015f0383147f800000000000000000000000000000000000000000000000000000000000000083141615611905576119046114cd565b5b828205905092915050565b5f61191a826117e8565b9150611925836117e8565b925082820390508181125f8412168282135f85121516171561194a576119496114cd565b5b92915050565b7f52454d4f564500000000000000000000000000000000000000000000000000005f82015250565b5f61198460068361152d565b915061198f82611950565b602082019050919050565b5f6020820190508181035f8301526119b181611978565b9050919050565b5f6119c282611373565b91505f82036119d4576119d36114cd565b5b600182039050919050565b5f6119e982611373565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611a1b57611a1a6114cd565b5b60018201905091905056fea26469706673582212203d540e8f329e629162a38b9c43cb6c894827fcc081bc3046a512ea49c0a632fe64736f6c6343000814003300000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000076b087284dee8dde20aacec9135c94708dbb64fa00000000000000000000000076b087284dee8dde20aacec9135c94708dbb64fa0000000000000000000000003057c82a072c877a16d8249a9dde4080ad4b8b030000000000000000000000008f8be54f1eec392e113a19321966724621ead7ea0000000000000000000000000000000000000000000000000000000000000005735741525000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000057357415250000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561000f575f80fd5b5060043610610109575f3560e01c806372f702f3116100a0578063adc9772e1161006f578063adc9772e146102bb578063c56e0ad8146102d7578063da0e1dab146102e1578063dba802d9146102ff578063dd62ed3e1461031b57610109565b806372f702f3146102315780638bc6beb21461024f57806395d89b411461026d578063a9059cbb1461028b57610109565b80632e17de78116100dc5780632e17de78146101a9578063313ce567146101c55780634d89d95d146101e357806370a082311461020157610109565b806306fdde031461010d578063095ea7b31461012b57806318160ddd1461015b57806323b872dd14610179575b5f80fd5b61011561034b565b6040516101229190611545565b60405180910390f35b610145600480360381019061014091906115f6565b6103db565b604051610152919061164e565b60405180910390f35b6101636103fd565b6040516101709190611676565b60405180910390f35b610193600480360381019061018e919061168f565b610406565b6040516101a0919061164e565b60405180910390f35b6101c360048036038101906101be91906116df565b610434565b005b6101cd610541565b6040516101da9190611725565b60405180910390f35b6101eb610549565b6040516101f8919061174d565b60405180910390f35b61021b60048036038101906102169190611766565b61056e565b6040516102289190611676565b60405180910390f35b6102396105b3565b604051610246919061174d565b60405180910390f35b6102576105d8565b604051610264919061174d565b60405180910390f35b6102756105fd565b6040516102829190611545565b60405180910390f35b6102a560048036038101906102a091906115f6565b61068d565b6040516102b2919061164e565b60405180910390f35b6102d560048036038101906102d091906115f6565b6106af565b005b6102df610999565b005b6102e9610a71565b6040516102f6919061174d565b60405180910390f35b61031960048036038101906103149190611766565b610a96565b005b61033560048036038101906103309190611791565b610b6f565b6040516103429190611676565b60405180910390f35b60606003805461035a906117fc565b80601f0160208091040260200160405190810160405280929190818152602001828054610386906117fc565b80156103d15780601f106103a8576101008083540402835291602001916103d1565b820191905f5260205f20905b8154815290600101906020018083116103b457829003601f168201915b5050505050905090565b5f806103e5610bf1565b90506103f2818585610bf8565b600191505092915050565b5f600254905090565b5f80610410610bf1565b905061041d858285610c0a565b610428858585610c9c565b60019150509392505050565b61044561043f610bf1565b82610cb7565b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb61048a610bf1565b836040518363ffffffff1660e01b81526004016104a892919061182c565b6020604051808303815f875af11580156104c4573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104e8919061187d565b506104f1610bf1565b73ffffffffffffffffffffffffffffffffffffffff167f85082129d87b2fe11527cb1b3b7a520aeb5aa6913f88a3d8757fe40d1db02fdd826040516105369190611676565b60405180910390a250565b5f6012905090565b60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60606004805461060c906117fc565b80601f0160208091040260200160405190810160405280929190818152602001828054610638906117fc565b80156106835780601f1061065a57610100808354040283529160200191610683565b820191905f5260205f20905b81548152906001019060200180831161066657829003601f168201915b5050505050905090565b5f80610697610bf1565b90506106a4818585610c9c565b600191505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff1660075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146107935760075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614610792576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610789906118f2565b60405180910390fd5b5b5f60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a082316107d9610bf1565b6040518263ffffffff1660e01b81526004016107f5919061174d565b602060405180830381865afa158015610810573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108349190611924565b90505f8111610878576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086f906119bf565b60405180910390fd5b6108828383610cd0565b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd6108c7610bf1565b30856040518463ffffffff1660e01b81526004016108e7939291906119dd565b6020604051808303815f875af1158015610903573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610927919061187d565b508273ffffffffffffffffffffffffffffffffffffffff16610947610bf1565b73ffffffffffffffffffffffffffffffffffffffff167f99039fcf0a98f484616c5196ee8b2ecfa971babf0b519848289ea4db381f85f78460405161098c9190611676565b60405180910390a3505050565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166109d9610bf1565b73ffffffffffffffffffffffffffffffffffffffff1614610a2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a2690611a5c565b60405180910390fd5b5f60075f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610ad6610bf1565b73ffffffffffffffffffffffffffffffffffffffff1614610b2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2390611a5c565b60405180910390fd5b8060075f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b5f33905090565b610c058383836001610ce9565b505050565b5f610c158484610b6f565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610c965781811015610c87578281836040517ffb8f41b2000000000000000000000000000000000000000000000000000000008152600401610c7e93929190611a7a565b60405180910390fd5b610c9584848484035f610ce9565b5b50505050565b610ca7838383610eb8565b610cb2838383610fa8565b505050565b610cc182826111a4565b610ccc825f83610fa8565b5050565b610cda8282611223565b610ce55f8383610fa8565b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610d59575f6040517fe602df05000000000000000000000000000000000000000000000000000000008152600401610d50919061174d565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610dc9575f6040517f94280d62000000000000000000000000000000000000000000000000000000008152600401610dc0919061174d565b60405180910390fd5b8160015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508015610eb2578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610ea99190611676565b60405180910390a35b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610f28575f6040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610f1f919061174d565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f98575f6040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610f8f919061174d565b60405180910390fd5b610fa38383836112a2565b505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015611012575061dead73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b156110a45760065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d6460b4b848360016040518463ffffffff1660e01b815260040161107693929190611aaf565b5f604051808303815f87803b15801561108d575f80fd5b505af115801561109f573d5f803e3d5ffd5b505050505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415801561110e575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b1561119f5760065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d6460b4b83835f6040518463ffffffff1660e01b815260040161117193929190611aaf565b5f604051808303815f87803b158015611188575f80fd5b505af115801561119a573d5f803e3d5ffd5b505050505b505050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611214575f6040517f96c6fd1e00000000000000000000000000000000000000000000000000000000815260040161120b919061174d565b60405180910390fd5b61121f825f836112a2565b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611293575f6040517fec442f0500000000000000000000000000000000000000000000000000000000815260040161128a919061174d565b60405180910390fd5b61129e5f83836112a2565b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036112f2578060025f8282546112e69190611b11565b925050819055506113c0565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490508181101561137b578381836040517fe450d38c00000000000000000000000000000000000000000000000000000000815260040161137293929190611a7a565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611407578060025f8282540392505081905550611451565b805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516114ae9190611676565b60405180910390a3505050565b5f81519050919050565b5f82825260208201905092915050565b5f5b838110156114f25780820151818401526020810190506114d7565b5f8484015250505050565b5f601f19601f8301169050919050565b5f611517826114bb565b61152181856114c5565b93506115318185602086016114d5565b61153a816114fd565b840191505092915050565b5f6020820190508181035f83015261155d818461150d565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61159282611569565b9050919050565b6115a281611588565b81146115ac575f80fd5b50565b5f813590506115bd81611599565b92915050565b5f819050919050565b6115d5816115c3565b81146115df575f80fd5b50565b5f813590506115f0816115cc565b92915050565b5f806040838503121561160c5761160b611565565b5b5f611619858286016115af565b925050602061162a858286016115e2565b9150509250929050565b5f8115159050919050565b61164881611634565b82525050565b5f6020820190506116615f83018461163f565b92915050565b611670816115c3565b82525050565b5f6020820190506116895f830184611667565b92915050565b5f805f606084860312156116a6576116a5611565565b5b5f6116b3868287016115af565b93505060206116c4868287016115af565b92505060406116d5868287016115e2565b9150509250925092565b5f602082840312156116f4576116f3611565565b5b5f611701848285016115e2565b91505092915050565b5f60ff82169050919050565b61171f8161170a565b82525050565b5f6020820190506117385f830184611716565b92915050565b61174781611588565b82525050565b5f6020820190506117605f83018461173e565b92915050565b5f6020828403121561177b5761177a611565565b5b5f611788848285016115af565b91505092915050565b5f80604083850312156117a7576117a6611565565b5b5f6117b4858286016115af565b92505060206117c5858286016115af565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061181357607f821691505b602082108103611826576118256117cf565b5b50919050565b5f60408201905061183f5f83018561173e565b61184c6020830184611667565b9392505050565b61185c81611634565b8114611866575f80fd5b50565b5f8151905061187781611853565b92915050565b5f6020828403121561189257611891611565565b5b5f61189f84828501611869565b91505092915050565b7f52455354524943540000000000000000000000000000000000000000000000005f82015250565b5f6118dc6008836114c5565b91506118e7826118a8565b602082019050919050565b5f6020820190508181035f830152611909816118d0565b9050919050565b5f8151905061191e816115cc565b92915050565b5f6020828403121561193957611938611565565b5b5f61194684828501611910565b91505092915050565b7f4e65656420746f20686f6c64206174206c65617374206f6e65206e667420746f5f8201527f207374616b6520746f6b656e7300000000000000000000000000000000000000602082015250565b5f6119a9602d836114c5565b91506119b48261194f565b604082019050919050565b5f6020820190508181035f8301526119d68161199d565b9050919050565b5f6060820190506119f05f83018661173e565b6119fd602083018561173e565b611a0a6040830184611667565b949350505050565b7f52455355534552415554480000000000000000000000000000000000000000005f82015250565b5f611a46600b836114c5565b9150611a5182611a12565b602082019050919050565b5f6020820190508181035f830152611a7381611a3a565b9050919050565b5f606082019050611a8d5f83018661173e565b611a9a6020830185611667565b611aa76040830184611667565b949350505050565b5f606082019050611ac25f83018661173e565b611acf6020830185611667565b611adc604083018461163f565b949350505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f611b1b826115c3565b9150611b26836115c3565b9250828201905080821115611b3e57611b3d611ae4565b5b9291505056fea264697066735822122042a55d7518c61fd259b1affdd154fb57d0205abe5af59963d32ff303026a9d1964736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000076b087284dee8dde20aacec9135c94708dbb64fa00000000000000000000000076b087284dee8dde20aacec9135c94708dbb64fa0000000000000000000000003057c82a072c877a16d8249a9dde4080ad4b8b030000000000000000000000008f8be54f1eec392e113a19321966724621ead7ea0000000000000000000000000000000000000000000000000000000000000005735741525000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000057357415250000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): sWARP
Arg [1] : _symbol (string): sWARP
Arg [2] : _stakingToken (address): 0x76b087284DEE8dDe20AAcEC9135c94708DBB64fa
Arg [3] : _rewardsToken (address): 0x76b087284DEE8dDe20AAcEC9135c94708DBB64fa
Arg [4] : _stakeUserRestriction (address): 0x3057c82A072C877A16D8249a9DdE4080ad4b8b03
Arg [5] : _warpNft (address): 0x8F8be54f1EEc392e113a19321966724621eAD7EA
-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 00000000000000000000000076b087284dee8dde20aacec9135c94708dbb64fa
Arg [3] : 00000000000000000000000076b087284dee8dde20aacec9135c94708dbb64fa
Arg [4] : 0000000000000000000000003057c82a072c877a16d8249a9dde4080ad4b8b03
Arg [5] : 0000000000000000000000008f8be54f1eec392e113a19321966724621ead7ea
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [7] : 7357415250000000000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [9] : 7357415250000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.