Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 1,716 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 20295730 | 5 hrs ago | IN | 0 ETH | 0.00094257 | ||||
Withdraw | 20294940 | 7 hrs ago | IN | 0 ETH | 0.00052882 | ||||
Withdraw | 20294938 | 7 hrs ago | IN | 0 ETH | 0.00061289 | ||||
Withdraw | 20294936 | 7 hrs ago | IN | 0 ETH | 0.00057772 | ||||
Withdraw | 20292770 | 15 hrs ago | IN | 0 ETH | 0.0008099 | ||||
Withdraw | 20292765 | 15 hrs ago | IN | 0 ETH | 0.00094694 | ||||
Withdraw | 20292763 | 15 hrs ago | IN | 0 ETH | 0.00095141 | ||||
Withdraw | 20292761 | 15 hrs ago | IN | 0 ETH | 0.00095297 | ||||
Withdraw | 20292759 | 15 hrs ago | IN | 0 ETH | 0.00092955 | ||||
Withdraw | 20292756 | 15 hrs ago | IN | 0 ETH | 0.00090759 | ||||
Withdraw | 20292754 | 15 hrs ago | IN | 0 ETH | 0.00091431 | ||||
Withdraw | 20292749 | 15 hrs ago | IN | 0 ETH | 0.0008972 | ||||
Withdraw | 20292748 | 15 hrs ago | IN | 0 ETH | 0.0008645 | ||||
Withdraw | 20292743 | 15 hrs ago | IN | 0 ETH | 0.00088929 | ||||
Withdraw | 20292591 | 15 hrs ago | IN | 0 ETH | 0.00033254 | ||||
Withdraw | 20285776 | 38 hrs ago | IN | 0 ETH | 0.00078697 | ||||
Withdraw | 20285754 | 38 hrs ago | IN | 0 ETH | 0.00084274 | ||||
Claim | 20285720 | 38 hrs ago | IN | 0 ETH | 0.00057817 | ||||
Withdraw | 20271792 | 3 days ago | IN | 0 ETH | 0.00042145 | ||||
Withdraw | 20270490 | 3 days ago | IN | 0 ETH | 0.00092578 | ||||
Withdraw | 20270488 | 3 days ago | IN | 0 ETH | 0.00105852 | ||||
Withdraw | 20266851 | 4 days ago | IN | 0 ETH | 0.00111892 | ||||
Withdraw | 20266727 | 4 days ago | IN | 0 ETH | 0.00094254 | ||||
Withdraw | 20263485 | 4 days ago | IN | 0 ETH | 0.00085601 | ||||
Withdraw | 20263024 | 4 days ago | IN | 0 ETH | 0.0012847 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
PawLockedStake
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// File: @openzeppelin/contracts/utils/Context.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; //import "hardhat/console.sol"; interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } /* * @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; } } // File: @openzeppelin/contracts/access/Ownable.sol abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: @openzeppelin/contracts/utils/ReentrancyGuard.sol /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // File: @openzeppelin/contracts/utils/Address.sol /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol) /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.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. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the 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 override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer(address from, address to, uint256 amount) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 amount) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {} } /// @title Dividend-Paying Token /// @author Roger Wu (https://github.com/roger-wu) /// @dev A mintable ERC20 token that allows anyone to pay and distribute ether /// to token holders as dividends and allows token holders to withdraw their dividends. /// Reference: the source code of PoWH3D: https://etherscan.io/address/0xB3775fB83F7D12A36E0475aBdD1FCA35c091efBe#code contract DividendStakingToken is ERC20 { constructor(string memory _name, string memory _symbol) ERC20(_name, _symbol) {} function _transfer(address from, address to, uint256 value) internal virtual override { require(false, "Cant transfer dividend token"); super._transfer(from, to, value); } function _mint(address account, uint256 value) internal override { super._mint(account, value); } function _burn(address account, uint256 value) internal override { super._burn(account, value); } function _setDividendBalance(address account, uint256 newBalance) internal { uint256 currentBalance = balanceOf(account); if(newBalance > currentBalance) { uint256 mintAmount = newBalance - currentBalance; _mint(account, mintAmount); } else if(newBalance < currentBalance) { uint256 burnAmount = currentBalance - newBalance; _burn(account, burnAmount); } } } interface IwPAWFlexibleStaking { function stakingAmount(address _user) external view returns (uint256); function isStakable(address _user) external view returns (bool); function forceWithdraw(address _user) external; } contract PawLockedStake is Ownable, ReentrancyGuard, DividendStakingToken { using SafeERC20 for IERC20Metadata; // apy uint256 public apy; // Accrued token per share uint256 public accTokenPerShare; uint256 public totalStaked; // The block number of the last pool update uint256 public lastRewardTimeStamp; // The precision factor uint256 public PRECISION_FACTOR = uint256(10**12); // The reward token IERC20Metadata public wPAWToken; // The staked token IERC20Metadata public PAWToken; // WPAW Staking address public WPAWStaking; // lock duration uint256 public lockDuration; // early withdraw penalty in percent uint256 public earlyWithdrawPenalty; // total early withdraw penalty uint256 public totalPenalty; // Info of each user that stakes tokens (PAWToken) mapping(address => UserInfo) public userInfo; struct UserInfo { uint256 totalAmount; // How many staked tokens the user has provided uint256 rewardDebt; // Reward debt DepositInfo[] deposits; } struct DepositInfo { uint256 id; uint256 amount; uint256 startTime; } uint256 public numberDeposit; event Deposit(address indexed user, uint256 amount); event EmergencyWithdraw(address indexed user, uint256 amount); event NewAPY(uint256 apy); event TokenRecovery(address indexed token, uint256 amount); event Withdraw(address indexed user, uint256 amount); event Claim(address indexed user, uint256 amount); /** * @notice Constructor */ constructor() DividendStakingToken("Paw Stake Tracker", "stPAWlock") { PAWToken = IERC20Metadata(0xDc63269eA166b70d4780b3A11F5C825C2b761B01); //PAW wPAWToken = IERC20Metadata(0xFF9E32AaF15953EC3F69FE899D220A705ce06dD0); //wPAW // Set the lastRewardTimeStamp as the current timestamp lastRewardTimeStamp = block.timestamp; apy = 8; //8% lockDuration = 13 weeks; earlyWithdrawPenalty = 10; //10% } /* * @notice Deposit staked tokens and collect reward tokens (if any) * @param _amount: amount to withdraw (in wPAWToken) */ function deposit(uint256 _amount) external nonReentrant { UserInfo storage user = userInfo[msg.sender]; _updatePool(); if (user.totalAmount > 0) { uint256 pending = (user.totalAmount * accTokenPerShare) / PRECISION_FACTOR - user.rewardDebt; if (pending > 0) { wPAWToken.safeTransfer(address(msg.sender), pending); } } if (_amount > 0) { totalStaked += _amount; user.totalAmount += _amount; user.deposits.push(DepositInfo(numberDeposit++, _amount, block.timestamp)); _setDividendBalance(msg.sender, user.totalAmount); PAWToken.safeTransferFrom(address(msg.sender), address(this), _amount); } user.rewardDebt = (user.totalAmount * accTokenPerShare) / PRECISION_FACTOR; emit Deposit(msg.sender, _amount); } /* * @notice Withdraw staked tokens and collect reward tokens * @param _amount: amount to withdraw (in wPAWToken) */ uint256 private MAX = 2**256 - 1; function withdraw(uint256 _id) external nonReentrant { UserInfo storage user = userInfo[msg.sender]; require(user.deposits.length > 0, "Error: No active staking"); uint256 indexOfId = MAX; for(uint256 i = 0; i < user.deposits.length; i++){ if(user.deposits[i].id == _id){ indexOfId = i; break; } } require(indexOfId != MAX, "Error: Invalid deposit Id"); _updatePool(); uint256 pending = (user.totalAmount * accTokenPerShare) / PRECISION_FACTOR - user.rewardDebt; if (pending > 0) { wPAWToken.safeTransfer(address(msg.sender), pending); } uint256 amount = user.deposits[indexOfId].amount; uint256 withdrawAbleAmount = amount; if(block.timestamp < (user.deposits[indexOfId].startTime + lockDuration)){ uint256 penalty = withdrawAbleAmount * earlyWithdrawPenalty / 100; withdrawAbleAmount -= penalty; totalPenalty += penalty; } PAWToken.safeTransfer(address(msg.sender), withdrawAbleAmount); // Remove from deposits list user.deposits[indexOfId] = user.deposits[user.deposits.length - 1]; user.deposits.pop(); totalStaked -= amount; user.totalAmount -= amount; user.rewardDebt = (user.totalAmount * accTokenPerShare) / PRECISION_FACTOR; _setDividendBalance(msg.sender, user.totalAmount); if(user.totalAmount == 0 && WPAWStaking != address(0)){ if(IwPAWFlexibleStaking(WPAWStaking).stakingAmount(msg.sender) > 0 && !IwPAWFlexibleStaking(WPAWStaking).isStakable(msg.sender)) { IwPAWFlexibleStaking(WPAWStaking).forceWithdraw(msg.sender); } } emit Withdraw(msg.sender, amount); } /* * @notice Collect reward tokens */ function claim() external nonReentrant { UserInfo storage user = userInfo[msg.sender]; _updatePool(); uint256 pending = (user.totalAmount * accTokenPerShare) / PRECISION_FACTOR - user.rewardDebt; require (pending > 0, "No reward to claim"); wPAWToken.safeTransfer(address(msg.sender), pending); user.rewardDebt = (user.totalAmount * accTokenPerShare) / PRECISION_FACTOR; emit Claim(msg.sender, pending); } /* * @notice Withdraw staked tokens without caring about rewards rewards * @dev Needs to be for emergency. */ function emergencyWithdraw() external nonReentrant { UserInfo storage user = userInfo[msg.sender]; require(user.deposits.length > 0, "Error: No active staking"); _updatePool(); uint256 pending = (user.totalAmount * accTokenPerShare) / PRECISION_FACTOR - user.rewardDebt; if (pending > 0) { rewardTreasure += pending; _updatePool(); } uint256 withdrawAbleAmount = 0; for(uint i = user.deposits.length; i > 0; i --){ withdrawAbleAmount += user.deposits[i - 1].amount; if(block.timestamp < (user.deposits[i - 1].startTime + lockDuration)){ uint256 penalty = user.deposits[i - 1].amount * earlyWithdrawPenalty / 100; withdrawAbleAmount -= penalty; totalPenalty += penalty; } user.deposits.pop(); } PAWToken.safeTransfer(address(msg.sender), withdrawAbleAmount); uint256 totalAmount = user.totalAmount; totalStaked -= user.totalAmount; user.totalAmount = 0; user.rewardDebt = 0; _setDividendBalance(msg.sender, 0); if(user.totalAmount == 0 && WPAWStaking != address(0)){ if(IwPAWFlexibleStaking(WPAWStaking).stakingAmount(msg.sender) > 0 && !IwPAWFlexibleStaking(WPAWStaking).isStakable(msg.sender)) { IwPAWFlexibleStaking(WPAWStaking).forceWithdraw(msg.sender); } } emit EmergencyWithdraw(msg.sender, totalAmount); } /* * @notice list of deposit */ function depositInfoOf(address _account) public view returns (DepositInfo[] memory){ return userInfo[_account].deposits; } /* * @notice Withdraw Penalty for future usage * @dev Only callable by owner. */ function withdrawPenalty() external onlyOwner { require(totalPenalty > 0, "No penalty now"); PAWToken.safeTransfer(address(msg.sender), totalPenalty); totalPenalty = 0; } /* * @notice Stop rewards, withdraw all reward * @dev Only callable by owner. Needs to be for emergency. */ function emergencyRewardWithdraw(uint256 _amount) external onlyOwner { require(_amount <= rewardTreasure, "Exceed withdrawable amount"); wPAWToken.safeTransfer(address(msg.sender), _amount); rewardTreasure -= _amount; } /** * @notice Allows the owner to recover tokens sent to the contract by mistake * @param _token: token address * @dev Callable by owner */ function recoverToken(address _token) external onlyOwner { require(_token != address(PAWToken), "Operations: Cannot recover staked token"); require(_token != address(wPAWToken), "Operations: Cannot recover reward token"); uint256 balance = IERC20Metadata(_token).balanceOf(address(this)); require(balance != 0, "Operations: Cannot recover zero balance"); IERC20Metadata(_token).safeTransfer(address(msg.sender), balance); emit TokenRecovery(_token, balance); } /* * @notice Update early withdraw penalty * @dev Only callable by owner. */ function updateEarlyWithdrawPenalty(uint256 _newPenalty) external onlyOwner { require(_newPenalty <= 30, "Penalty can't exceed 30%"); earlyWithdrawPenalty = _newPenalty; } /* * @notice Update early withdraw penalty * @dev Only callable by owner. */ function updateLockingDuration(uint256 _newDuration) external onlyOwner { require(_newDuration <= 365 days, "Locking duration can't exceed one year"); lockDuration = _newDuration; } /* * @notice Update APY * @dev Only callable by owner. Change APY. */ function updateNewAPY(uint256 _newAPY) external onlyOwner { _updatePool(); apy = _newAPY; emit NewAPY(_newAPY); } /* * @notice Set WPAW staking contract * @dev Only callable by owner. Change APY. */ function setWPAWStakingContract(address _wPAWStaking) external onlyOwner { WPAWStaking = _wPAWStaking; } /* * @notice View function to see pending reward on frontend. * @param _user: user address * @return Pending reward for a given user */ function pendingReward(address _user) external view returns (uint256) { UserInfo storage user = userInfo[_user]; if (block.timestamp > lastRewardTimeStamp && totalStaked != 0) { uint256 multiplier = block.timestamp - lastRewardTimeStamp; uint256 estimatedReward = multiplier * (((totalStaked * apy)/100) / (365 days)); if(estimatedReward > rewardTreasure){ estimatedReward = rewardTreasure; } uint256 adjustedTokenPerShare = accTokenPerShare + (estimatedReward * PRECISION_FACTOR) / totalStaked; return (user.totalAmount * adjustedTokenPerShare) / PRECISION_FACTOR - user.rewardDebt; } else { return (user.totalAmount * accTokenPerShare) / PRECISION_FACTOR - user.rewardDebt; } } /* * @notice Update reward variables of the given pool to be up-to-date. */ function _updatePool() internal { if (block.timestamp <= lastRewardTimeStamp) { return; } if (totalStaked == 0) { lastRewardTimeStamp = block.timestamp; return; } uint256 multiplier = block.timestamp - lastRewardTimeStamp; uint256 estimatedReward = multiplier * (((totalStaked * apy)/100) / (365 days)); uint256 realReward = _allocateReward(estimatedReward); accTokenPerShare += (realReward * PRECISION_FACTOR) / totalStaked; lastRewardTimeStamp = block.timestamp; } uint256 public rewardTreasure; uint256 public rewardAllocated; function addRewardTreasure(uint256 _amount) external nonReentrant{ require( _amount > 0 , "err _amount=0"); uint256 oldBalance = wPAWToken.balanceOf(address(this)); wPAWToken.safeTransferFrom(msg.sender, address(this), _amount); uint256 newBalance = wPAWToken.balanceOf(address(this)); uint256 realAmount = newBalance - oldBalance; rewardTreasure += realAmount; _updatePool(); } function _allocateReward(uint256 amount ) internal returns(uint256){ uint256 allocatedAmount = amount; if( amount >= rewardTreasure ){ allocatedAmount = rewardTreasure; } rewardTreasure -= allocatedAmount; rewardAllocated += allocatedAmount; return allocatedAmount; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"apy","type":"uint256"}],"name":"NewAPY","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokenRecovery","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":"Withdraw","type":"event"},{"inputs":[],"name":"PAWToken","outputs":[{"internalType":"contract IERC20Metadata","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRECISION_FACTOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WPAWStaking","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"accTokenPerShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"addRewardTreasure","outputs":[],"stateMutability":"nonpayable","type":"function"},{"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":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"apy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"depositInfoOf","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"}],"internalType":"struct PawLockedStake.DepositInfo[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"earlyWithdrawPenalty","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"emergencyRewardWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastRewardTimeStamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numberDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"recoverToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardAllocated","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardTreasure","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_wPAWStaking","type":"address"}],"name":"setWPAWStakingContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalPenalty","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"amount","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":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPenalty","type":"uint256"}],"name":"updateEarlyWithdrawPenalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newDuration","type":"uint256"}],"name":"updateLockingDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newAPY","type":"uint256"}],"name":"updateNewAPY","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"totalAmount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wPAWToken","outputs":[{"internalType":"contract IERC20Metadata","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawPenalty","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405264e8d4a51000600b556000196014553480156200002057600080fd5b50604051806040016040528060118152602001702830bb9029ba30b5b2902a3930b1b5b2b960791b8152506040518060400160405280600981526020016873745041576c6f636b60b81b815250818162000089620000836200012060201b60201c565b62000124565b600180558151620000a290600590602085019062000174565b508051620000b890600690602084019062000174565b5050600d80546001600160a01b031990811673dc63269ea166b70d4780b3a11f5c825c2b761b0117909155600c805490911673ff9e32aaf15953ec3f69fe899d220a705ce06dd0179055505042600a90815560086007556277f880600f556010555062000257565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b82805462000182906200021a565b90600052602060002090601f016020900481019282620001a65760008555620001f1565b82601f10620001c157805160ff1916838001178555620001f1565b82800160010185558215620001f1579182015b82811115620001f1578251825591602001919060010190620001d4565b50620001ff92915062000203565b5090565b5b80821115620001ff576000815560010162000204565b600181811c908216806200022f57607f821691505b602082108114156200025157634e487b7160e01b600052602260045260246000fd5b50919050565b61291280620002676000396000f3fe608060405234801561001057600080fd5b50600436106102695760003560e01c8063828ac8cd11610151578063d29004d9116100c3578063dbda80ca11610087578063dbda80ca1461050c578063dd62ed3e1461051f578063e6af61c814610532578063f2fde38b1461053b578063f40f0f521461054e578063f4afdca11461056157600080fd5b8063d29004d9146104cc578063d2a49cf8146104d5578063d6f0c025146104de578063db2e21bc146104f1578063db7abe47146104f957600080fd5b80639be65a60116101155780639be65a6014610464578063a457c2d714610477578063a9059cbb1461048a578063b6b55f251461049d578063b82adc21146104b0578063ccd34cd5146104c357600080fd5b8063828ac8cd1461040e578063873187a3146104175780638da5cb5b146104425780638f6629151461045357806395d89b411461045c57600080fd5b8063313ce567116101ea5780634e71d92d116101ae5780634e71d92d1461039957806362ca1962146103a157806370a08231146103b4578063715018a6146103dd5780637313d33e146103e5578063817b1cd21461040557600080fd5b8063313ce567146103525780633279beab14610361578063356c728414610374578063395093511461037d5780633bcfc4b81461039057600080fd5b806318160ddd1161023157806318160ddd146102e05780631959a002146102e85780631a1ce2fc1461032457806323b872dd1461032c5780632e1a7d4d1461033f57600080fd5b8063045544431461026e57806306fdde031461028a578063086801eb1461029f578063095ea7b3146102b45780631063c0c4146102d7575b600080fd5b610277600f5481565b6040519081526020015b60405180910390f35b610292610574565b60405161028191906126f8565b6102b26102ad366004612651565b610606565b005b6102c76102c2366004612605565b6107c1565b6040519015158152602001610281565b61027760155481565b600454610277565b61030f6102f636600461257b565b6012602052600090815260409020805460019091015482565b60408051928352602083019190915201610281565b6102b26107d9565b6102c761033a3660046125c9565b61086a565b6102b261034d366004612651565b610890565b60405160128152602001610281565b6102b261036f366004612651565b610da4565b610277600a5481565b6102c761038b366004612605565b610e51565b61027760075481565b6102b2610e73565b6102b26103af36600461257b565b610f9f565b6102776103c236600461257b565b6001600160a01b031660009081526002602052604090205490565b6102b2610feb565b6103f86103f336600461257b565b611021565b604051610281919061269f565b61027760095481565b61027760165481565b600d5461042a906001600160a01b031681565b6040516001600160a01b039091168152602001610281565b6000546001600160a01b031661042a565b61027760085481565b6102926110b7565b6102b261047236600461257b565b6110c6565b6102c7610485366004612605565b611300565b6102c7610498366004612605565b611386565b6102b26104ab366004612651565b611394565b600c5461042a906001600160a01b031681565b610277600b5481565b61027760105481565b61027760135481565b6102b26104ec366004612651565b611542565b6102b26115c2565b6102b2610507366004612651565b611a04565b6102b261051a366004612651565b611a96565b61027761052d366004612596565b611b03565b61027760115481565b6102b261054936600461257b565b611b2e565b61027761055c36600461257b565b611bc9565b600e5461042a906001600160a01b031681565b6060600580546105839061284a565b80601f01602080910402602001604051908101604052809291908181526020018280546105af9061284a565b80156105fc5780601f106105d1576101008083540402835291602001916105fc565b820191906000526020600020905b8154815290600101906020018083116105df57829003601f168201915b5050505050905090565b600260015414156106325760405162461bcd60e51b815260040161062990612760565b60405180910390fd5b6002600155806106745760405162461bcd60e51b815260206004820152600d60248201526c0657272205f616d6f756e743d3609c1b6044820152606401610629565b600c546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b1580156106b857600080fd5b505afa1580156106cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106f0919061266a565b600c5490915061070b906001600160a01b0316333085611ce5565b600c546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561074f57600080fd5b505afa158015610763573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610787919061266a565b9050600061079583836127f0565b905080601560008282546107a99190612797565b909155506107b79050611d56565b5050600180555050565b6000336107cf818585611e00565b5060019392505050565b6000546001600160a01b031633146108035760405162461bcd60e51b81526004016106299061272b565b6000601154116108465760405162461bcd60e51b815260206004820152600e60248201526d4e6f2070656e616c7479206e6f7760901b6044820152606401610629565b601154600d54610863916001600160a01b03909116903390611f24565b6000601155565b600033610878858285611f59565b610883858585611fcd565b60019150505b9392505050565b600260015414156108b35760405162461bcd60e51b815260040161062990612760565b60026001819055336000908152601260205260409020908101546109145760405162461bcd60e51b81526020600482015260186024820152774572726f723a204e6f20616374697665207374616b696e6760401b6044820152606401610629565b60145460005b600283015481101561096e578383600201828154811061093c5761093c6128c6565b906000526020600020906003020160000154141561095c5780915061096e565b806109668161287f565b91505061091a565b506014548114156109c15760405162461bcd60e51b815260206004820152601960248201527f4572726f723a20496e76616c6964206465706f736974204964000000000000006044820152606401610629565b6109c9611d56565b60008260010154600b5460085485600001546109e591906127d1565b6109ef91906127af565b6109f991906127f0565b90508015610a1857600c54610a18906001600160a01b03163383611f24565b6000836002018381548110610a2f57610a2f6128c6565b90600052602060002090600302016001015490506000819050600f54856002018581548110610a6057610a606128c6565b906000526020600020906003020160020154610a7c9190612797565b421015610ac6576000606460105483610a9591906127d1565b610a9f91906127af565b9050610aab81836127f0565b91508060116000828254610abf9190612797565b9091555050505b600d54610add906001600160a01b03163383611f24565b600285018054610aef906001906127f0565b81548110610aff57610aff6128c6565b9060005260206000209060030201856002018581548110610b2257610b226128c6565b60009182526020909120825460039092020190815560018083015490820155600291820154908201558501805480610b5c57610b5c6128b0565b60008281526020812060036000199093019283020181815560018101829055600201819055915560098054849290610b959084906127f0565b9091555050845482908690600090610bae9084906127f0565b9091555050600b546008548654610bc591906127d1565b610bcf91906127af565b60018601558454610be1903390612015565b8454158015610bfa5750600e546001600160a01b031615155b15610d6357600e5460405163747bd8f760e11b81523360048201526000916001600160a01b03169063e8f7b1ee9060240160206040518083038186803b158015610c4357600080fd5b505afa158015610c57573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c7b919061266a565b118015610d005750600e546040516389f6e00d60e01b81523360048201526001600160a01b03909116906389f6e00d9060240160206040518083038186803b158015610cc657600080fd5b505afa158015610cda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cfe919061262f565b155b15610d6357600e546040516344179f0b60e11b81523360048201526001600160a01b039091169063882f3e1690602401600060405180830381600087803b158015610d4a57600080fd5b505af1158015610d5e573d6000803e3d6000fd5b505050505b60405182815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243649060200160405180910390a250506001805550505050565b6000546001600160a01b03163314610dce5760405162461bcd60e51b81526004016106299061272b565b601554811115610e205760405162461bcd60e51b815260206004820152601a60248201527f45786365656420776974686472617761626c6520616d6f756e740000000000006044820152606401610629565b600c54610e37906001600160a01b03163383611f24565b8060156000828254610e4991906127f0565b909155505050565b6000336107cf818585610e648383611b03565b610e6e9190612797565b611e00565b60026001541415610e965760405162461bcd60e51b815260040161062990612760565b6002600155336000908152601260205260409020610eb2611d56565b60008160010154600b546008548460000154610ece91906127d1565b610ed891906127af565b610ee291906127f0565b905060008111610f295760405162461bcd60e51b81526020600482015260126024820152714e6f2072657761726420746f20636c61696d60701b6044820152606401610629565b600c54610f40906001600160a01b03163383611f24565b600b546008548354610f5291906127d1565b610f5c91906127af565b600183015560405181815233907f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4906020015b60405180910390a2505060018055565b6000546001600160a01b03163314610fc95760405162461bcd60e51b81526004016106299061272b565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146110155760405162461bcd60e51b81526004016106299061272b565b61101f600061206e565b565b6001600160a01b0381166000908152601260209081526040808320600201805482518185028101850190935280835260609492939192909184015b828210156110ac578382906000526020600020906003020160405180606001604052908160008201548152602001600182015481526020016002820154815250508152602001906001019061105c565b505050509050919050565b6060600680546105839061284a565b6000546001600160a01b031633146110f05760405162461bcd60e51b81526004016106299061272b565b600d546001600160a01b038281169116141561115e5760405162461bcd60e51b815260206004820152602760248201527f4f7065726174696f6e733a2043616e6e6f74207265636f766572207374616b6560448201526632103a37b5b2b760c91b6064820152608401610629565b600c546001600160a01b03828116911614156111cc5760405162461bcd60e51b815260206004820152602760248201527f4f7065726174696f6e733a2043616e6e6f74207265636f76657220726577617260448201526632103a37b5b2b760c91b6064820152608401610629565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561120e57600080fd5b505afa158015611222573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611246919061266a565b9050806112a55760405162461bcd60e51b815260206004820152602760248201527f4f7065726174696f6e733a2043616e6e6f74207265636f766572207a65726f2060448201526662616c616e636560c81b6064820152608401610629565b6112b96001600160a01b0383163383611f24565b816001600160a01b03167f14f11966a996e0629572e51064726d2057a80fbd34efc066682c06a71dbb6e98826040516112f491815260200190565b60405180910390a25050565b6000338161130e8286611b03565b90508381101561136e5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610629565b61137b8286868403611e00565b506001949350505050565b6000336107cf818585611fcd565b600260015414156113b75760405162461bcd60e51b815260040161062990612760565b60026001553360009081526012602052604090206113d3611d56565b80541561142b5760008160010154600b5460085484600001546113f691906127d1565b61140091906127af565b61140a91906127f0565b9050801561142957600c54611429906001600160a01b03163383611f24565b505b81156114ef5781600960008282546114439190612797565b909155505080548290829060009061145c908490612797565b92505081905550806002016040518060600160405280601360008154809291906114859061287f565b90915550815260208082018690524260409283015283546001818101865560009586529482902084516003909202019081559083015193810193909355015160029091015580546114d7903390612015565b600d546114ef906001600160a01b0316333085611ce5565b600b54600854825461150191906127d1565b61150b91906127af565b600182015560405182815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c90602001610f8f565b6000546001600160a01b0316331461156c5760405162461bcd60e51b81526004016106299061272b565b601e8111156115bd5760405162461bcd60e51b815260206004820152601860248201527f50656e616c74792063616e2774206578636565642033302500000000000000006044820152606401610629565b601055565b600260015414156115e55760405162461bcd60e51b815260040161062990612760565b60026001819055336000908152601260205260409020908101546116465760405162461bcd60e51b81526020600482015260186024820152774572726f723a204e6f20616374697665207374616b696e6760401b6044820152606401610629565b61164e611d56565b60008160010154600b54600854846000015461166a91906127d1565b61167491906127af565b61167e91906127f0565b905080156116a65780601560008282546116989190612797565b909155506116a69050611d56565b60028201546000905b80156117f857600284016116c46001836127f0565b815481106116d4576116d46128c6565b906000526020600020906003020160010154826116f19190612797565b600f54909250600285016117066001846127f0565b81548110611716576117166128c6565b9060005260206000209060030201600201546117329190612797565b4210156117ae57600060646010548660020160018561175191906127f0565b81548110611761576117616128c6565b90600052602060002090600302016001015461177d91906127d1565b61178791906127af565b905061179381846127f0565b925080601160008282546117a79190612797565b9091555050505b836002018054806117c1576117c16128b0565b60008281526020812060036000199093019283020181815560018101829055600201559055806117f081612833565b9150506116af565b50600d54611810906001600160a01b03163383611f24565b8254600980548291906000906118279084906127f0565b9091555050600080855560018501819055611843903390612015565b835415801561185c5750600e546001600160a01b031615155b156119c557600e5460405163747bd8f760e11b81523360048201526000916001600160a01b03169063e8f7b1ee9060240160206040518083038186803b1580156118a557600080fd5b505afa1580156118b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118dd919061266a565b1180156119625750600e546040516389f6e00d60e01b81523360048201526001600160a01b03909116906389f6e00d9060240160206040518083038186803b15801561192857600080fd5b505afa15801561193c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611960919061262f565b155b156119c557600e546040516344179f0b60e11b81523360048201526001600160a01b039091169063882f3e1690602401600060405180830381600087803b1580156119ac57600080fd5b505af11580156119c0573d6000803e3d6000fd5b505050505b60405181815233907f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd96959060200160405180910390a25050600180555050565b6000546001600160a01b03163314611a2e5760405162461bcd60e51b81526004016106299061272b565b6301e13380811115611a915760405162461bcd60e51b815260206004820152602660248201527f4c6f636b696e67206475726174696f6e2063616e277420657863656564206f6e60448201526532903cb2b0b960d11b6064820152608401610629565b600f55565b6000546001600160a01b03163314611ac05760405162461bcd60e51b81526004016106299061272b565b611ac8611d56565b60078190556040518181527fdf6a785a3f6f4690f12091be4b76d03b768c8f82a8d1612aac2f53cb2b7a9cad9060200160405180910390a150565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b6000546001600160a01b03163314611b585760405162461bcd60e51b81526004016106299061272b565b6001600160a01b038116611bbd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610629565b611bc68161206e565b50565b6001600160a01b0381166000908152601260205260408120600a5442118015611bf3575060095415155b15611cb4576000600a5442611c0891906127f0565b905060006301e133806064600754600954611c2391906127d1565b611c2d91906127af565b611c3791906127af565b611c4190836127d1565b9050601554811115611c5257506015545b6000600954600b5483611c6591906127d1565b611c6f91906127af565b600854611c7c9190612797565b90508360010154600b54828660000154611c9691906127d1565b611ca091906127af565b611caa91906127f0565b9695505050505050565b6001810154600b546008548354611ccb91906127d1565b611cd591906127af565b61088991906127f0565b50919050565b6040516001600160a01b0380851660248301528316604482015260648101829052611d509085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526120be565b50505050565b600a544211611d6157565b600954611d6e5742600a55565b6000600a5442611d7e91906127f0565b905060006301e133806064600754600954611d9991906127d1565b611da391906127af565b611dad91906127af565b611db790836127d1565b90506000611dc482612190565b9050600954600b5482611dd791906127d1565b611de191906127af565b60086000828254611df29190612797565b909155505042600a55505050565b6001600160a01b038316611e625760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610629565b6001600160a01b038216611ec35760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610629565b6001600160a01b0383811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6040516001600160a01b038316602482015260448101829052611f5490849063a9059cbb60e01b90606401611d19565b505050565b6000611f658484611b03565b90506000198114611d505781811015611fc05760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610629565b611d508484848403611e00565b60405162461bcd60e51b815260206004820152601c60248201527f43616e74207472616e73666572206469766964656e6420746f6b656e000000006044820152606401610629565b6001600160a01b0382166000908152600260205260409020548082111561204e57600061204282846127f0565b9050611d5084826121da565b80821015611f5457600061206283836127f0565b9050611d5084826121e8565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000612113826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166121f29092919063ffffffff16565b805190915015611f545780806020019051810190612131919061262f565b611f545760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610629565b601554600090829081106121a357506015545b80601560008282546121b591906127f0565b9250508190555080601660008282546121ce9190612797565b90915550909392505050565b6121e48282612209565b5050565b6121e482826122ca565b606061220184846000856123fe565b949350505050565b6001600160a01b03821661225f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610629565b80600460008282546122719190612797565b90915550506001600160a01b0382166000818152600260209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b03821661232a5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610629565b6001600160a01b0382166000908152600260205260409020548181101561239e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610629565b6001600160a01b03831660008181526002602090815260408083208686039055600480548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b60608247101561245f5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610629565b843b6124ad5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610629565b600080866001600160a01b031685876040516124c99190612683565b60006040518083038185875af1925050503d8060008114612506576040519150601f19603f3d011682016040523d82523d6000602084013e61250b565b606091505b509150915061251b828286612526565b979650505050505050565b60608315612535575081610889565b8251156125455782518084602001fd5b8160405162461bcd60e51b815260040161062991906126f8565b80356001600160a01b038116811461257657600080fd5b919050565b60006020828403121561258d57600080fd5b6108898261255f565b600080604083850312156125a957600080fd5b6125b28361255f565b91506125c06020840161255f565b90509250929050565b6000806000606084860312156125de57600080fd5b6125e78461255f565b92506125f56020850161255f565b9150604084013590509250925092565b6000806040838503121561261857600080fd5b6126218361255f565b946020939093013593505050565b60006020828403121561264157600080fd5b8151801515811461088957600080fd5b60006020828403121561266357600080fd5b5035919050565b60006020828403121561267c57600080fd5b5051919050565b60008251612695818460208701612807565b9190910192915050565b602080825282518282018190526000919060409081850190868401855b828110156126eb57815180518552868101518786015285015185850152606090930192908501906001016126bc565b5091979650505050505050565b6020815260008251806020840152612717816040850160208701612807565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b600082198211156127aa576127aa61289a565b500190565b6000826127cc57634e487b7160e01b600052601260045260246000fd5b500490565b60008160001904831182151516156127eb576127eb61289a565b500290565b6000828210156128025761280261289a565b500390565b60005b8381101561282257818101518382015260200161280a565b83811115611d505750506000910152565b6000816128425761284261289a565b506000190190565b600181811c9082168061285e57607f821691505b60208210811415611cdf57634e487b7160e01b600052602260045260246000fd5b60006000198214156128935761289361289a565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fdfea26469706673582212207218b8164c41cff9989572f51f43b93dc6f23a3471a1c6cacb03f236d382829a64736f6c63430008070033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102695760003560e01c8063828ac8cd11610151578063d29004d9116100c3578063dbda80ca11610087578063dbda80ca1461050c578063dd62ed3e1461051f578063e6af61c814610532578063f2fde38b1461053b578063f40f0f521461054e578063f4afdca11461056157600080fd5b8063d29004d9146104cc578063d2a49cf8146104d5578063d6f0c025146104de578063db2e21bc146104f1578063db7abe47146104f957600080fd5b80639be65a60116101155780639be65a6014610464578063a457c2d714610477578063a9059cbb1461048a578063b6b55f251461049d578063b82adc21146104b0578063ccd34cd5146104c357600080fd5b8063828ac8cd1461040e578063873187a3146104175780638da5cb5b146104425780638f6629151461045357806395d89b411461045c57600080fd5b8063313ce567116101ea5780634e71d92d116101ae5780634e71d92d1461039957806362ca1962146103a157806370a08231146103b4578063715018a6146103dd5780637313d33e146103e5578063817b1cd21461040557600080fd5b8063313ce567146103525780633279beab14610361578063356c728414610374578063395093511461037d5780633bcfc4b81461039057600080fd5b806318160ddd1161023157806318160ddd146102e05780631959a002146102e85780631a1ce2fc1461032457806323b872dd1461032c5780632e1a7d4d1461033f57600080fd5b8063045544431461026e57806306fdde031461028a578063086801eb1461029f578063095ea7b3146102b45780631063c0c4146102d7575b600080fd5b610277600f5481565b6040519081526020015b60405180910390f35b610292610574565b60405161028191906126f8565b6102b26102ad366004612651565b610606565b005b6102c76102c2366004612605565b6107c1565b6040519015158152602001610281565b61027760155481565b600454610277565b61030f6102f636600461257b565b6012602052600090815260409020805460019091015482565b60408051928352602083019190915201610281565b6102b26107d9565b6102c761033a3660046125c9565b61086a565b6102b261034d366004612651565b610890565b60405160128152602001610281565b6102b261036f366004612651565b610da4565b610277600a5481565b6102c761038b366004612605565b610e51565b61027760075481565b6102b2610e73565b6102b26103af36600461257b565b610f9f565b6102776103c236600461257b565b6001600160a01b031660009081526002602052604090205490565b6102b2610feb565b6103f86103f336600461257b565b611021565b604051610281919061269f565b61027760095481565b61027760165481565b600d5461042a906001600160a01b031681565b6040516001600160a01b039091168152602001610281565b6000546001600160a01b031661042a565b61027760085481565b6102926110b7565b6102b261047236600461257b565b6110c6565b6102c7610485366004612605565b611300565b6102c7610498366004612605565b611386565b6102b26104ab366004612651565b611394565b600c5461042a906001600160a01b031681565b610277600b5481565b61027760105481565b61027760135481565b6102b26104ec366004612651565b611542565b6102b26115c2565b6102b2610507366004612651565b611a04565b6102b261051a366004612651565b611a96565b61027761052d366004612596565b611b03565b61027760115481565b6102b261054936600461257b565b611b2e565b61027761055c36600461257b565b611bc9565b600e5461042a906001600160a01b031681565b6060600580546105839061284a565b80601f01602080910402602001604051908101604052809291908181526020018280546105af9061284a565b80156105fc5780601f106105d1576101008083540402835291602001916105fc565b820191906000526020600020905b8154815290600101906020018083116105df57829003601f168201915b5050505050905090565b600260015414156106325760405162461bcd60e51b815260040161062990612760565b60405180910390fd5b6002600155806106745760405162461bcd60e51b815260206004820152600d60248201526c0657272205f616d6f756e743d3609c1b6044820152606401610629565b600c546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b1580156106b857600080fd5b505afa1580156106cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106f0919061266a565b600c5490915061070b906001600160a01b0316333085611ce5565b600c546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561074f57600080fd5b505afa158015610763573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610787919061266a565b9050600061079583836127f0565b905080601560008282546107a99190612797565b909155506107b79050611d56565b5050600180555050565b6000336107cf818585611e00565b5060019392505050565b6000546001600160a01b031633146108035760405162461bcd60e51b81526004016106299061272b565b6000601154116108465760405162461bcd60e51b815260206004820152600e60248201526d4e6f2070656e616c7479206e6f7760901b6044820152606401610629565b601154600d54610863916001600160a01b03909116903390611f24565b6000601155565b600033610878858285611f59565b610883858585611fcd565b60019150505b9392505050565b600260015414156108b35760405162461bcd60e51b815260040161062990612760565b60026001819055336000908152601260205260409020908101546109145760405162461bcd60e51b81526020600482015260186024820152774572726f723a204e6f20616374697665207374616b696e6760401b6044820152606401610629565b60145460005b600283015481101561096e578383600201828154811061093c5761093c6128c6565b906000526020600020906003020160000154141561095c5780915061096e565b806109668161287f565b91505061091a565b506014548114156109c15760405162461bcd60e51b815260206004820152601960248201527f4572726f723a20496e76616c6964206465706f736974204964000000000000006044820152606401610629565b6109c9611d56565b60008260010154600b5460085485600001546109e591906127d1565b6109ef91906127af565b6109f991906127f0565b90508015610a1857600c54610a18906001600160a01b03163383611f24565b6000836002018381548110610a2f57610a2f6128c6565b90600052602060002090600302016001015490506000819050600f54856002018581548110610a6057610a606128c6565b906000526020600020906003020160020154610a7c9190612797565b421015610ac6576000606460105483610a9591906127d1565b610a9f91906127af565b9050610aab81836127f0565b91508060116000828254610abf9190612797565b9091555050505b600d54610add906001600160a01b03163383611f24565b600285018054610aef906001906127f0565b81548110610aff57610aff6128c6565b9060005260206000209060030201856002018581548110610b2257610b226128c6565b60009182526020909120825460039092020190815560018083015490820155600291820154908201558501805480610b5c57610b5c6128b0565b60008281526020812060036000199093019283020181815560018101829055600201819055915560098054849290610b959084906127f0565b9091555050845482908690600090610bae9084906127f0565b9091555050600b546008548654610bc591906127d1565b610bcf91906127af565b60018601558454610be1903390612015565b8454158015610bfa5750600e546001600160a01b031615155b15610d6357600e5460405163747bd8f760e11b81523360048201526000916001600160a01b03169063e8f7b1ee9060240160206040518083038186803b158015610c4357600080fd5b505afa158015610c57573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c7b919061266a565b118015610d005750600e546040516389f6e00d60e01b81523360048201526001600160a01b03909116906389f6e00d9060240160206040518083038186803b158015610cc657600080fd5b505afa158015610cda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cfe919061262f565b155b15610d6357600e546040516344179f0b60e11b81523360048201526001600160a01b039091169063882f3e1690602401600060405180830381600087803b158015610d4a57600080fd5b505af1158015610d5e573d6000803e3d6000fd5b505050505b60405182815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243649060200160405180910390a250506001805550505050565b6000546001600160a01b03163314610dce5760405162461bcd60e51b81526004016106299061272b565b601554811115610e205760405162461bcd60e51b815260206004820152601a60248201527f45786365656420776974686472617761626c6520616d6f756e740000000000006044820152606401610629565b600c54610e37906001600160a01b03163383611f24565b8060156000828254610e4991906127f0565b909155505050565b6000336107cf818585610e648383611b03565b610e6e9190612797565b611e00565b60026001541415610e965760405162461bcd60e51b815260040161062990612760565b6002600155336000908152601260205260409020610eb2611d56565b60008160010154600b546008548460000154610ece91906127d1565b610ed891906127af565b610ee291906127f0565b905060008111610f295760405162461bcd60e51b81526020600482015260126024820152714e6f2072657761726420746f20636c61696d60701b6044820152606401610629565b600c54610f40906001600160a01b03163383611f24565b600b546008548354610f5291906127d1565b610f5c91906127af565b600183015560405181815233907f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4906020015b60405180910390a2505060018055565b6000546001600160a01b03163314610fc95760405162461bcd60e51b81526004016106299061272b565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146110155760405162461bcd60e51b81526004016106299061272b565b61101f600061206e565b565b6001600160a01b0381166000908152601260209081526040808320600201805482518185028101850190935280835260609492939192909184015b828210156110ac578382906000526020600020906003020160405180606001604052908160008201548152602001600182015481526020016002820154815250508152602001906001019061105c565b505050509050919050565b6060600680546105839061284a565b6000546001600160a01b031633146110f05760405162461bcd60e51b81526004016106299061272b565b600d546001600160a01b038281169116141561115e5760405162461bcd60e51b815260206004820152602760248201527f4f7065726174696f6e733a2043616e6e6f74207265636f766572207374616b6560448201526632103a37b5b2b760c91b6064820152608401610629565b600c546001600160a01b03828116911614156111cc5760405162461bcd60e51b815260206004820152602760248201527f4f7065726174696f6e733a2043616e6e6f74207265636f76657220726577617260448201526632103a37b5b2b760c91b6064820152608401610629565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561120e57600080fd5b505afa158015611222573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611246919061266a565b9050806112a55760405162461bcd60e51b815260206004820152602760248201527f4f7065726174696f6e733a2043616e6e6f74207265636f766572207a65726f2060448201526662616c616e636560c81b6064820152608401610629565b6112b96001600160a01b0383163383611f24565b816001600160a01b03167f14f11966a996e0629572e51064726d2057a80fbd34efc066682c06a71dbb6e98826040516112f491815260200190565b60405180910390a25050565b6000338161130e8286611b03565b90508381101561136e5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610629565b61137b8286868403611e00565b506001949350505050565b6000336107cf818585611fcd565b600260015414156113b75760405162461bcd60e51b815260040161062990612760565b60026001553360009081526012602052604090206113d3611d56565b80541561142b5760008160010154600b5460085484600001546113f691906127d1565b61140091906127af565b61140a91906127f0565b9050801561142957600c54611429906001600160a01b03163383611f24565b505b81156114ef5781600960008282546114439190612797565b909155505080548290829060009061145c908490612797565b92505081905550806002016040518060600160405280601360008154809291906114859061287f565b90915550815260208082018690524260409283015283546001818101865560009586529482902084516003909202019081559083015193810193909355015160029091015580546114d7903390612015565b600d546114ef906001600160a01b0316333085611ce5565b600b54600854825461150191906127d1565b61150b91906127af565b600182015560405182815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c90602001610f8f565b6000546001600160a01b0316331461156c5760405162461bcd60e51b81526004016106299061272b565b601e8111156115bd5760405162461bcd60e51b815260206004820152601860248201527f50656e616c74792063616e2774206578636565642033302500000000000000006044820152606401610629565b601055565b600260015414156115e55760405162461bcd60e51b815260040161062990612760565b60026001819055336000908152601260205260409020908101546116465760405162461bcd60e51b81526020600482015260186024820152774572726f723a204e6f20616374697665207374616b696e6760401b6044820152606401610629565b61164e611d56565b60008160010154600b54600854846000015461166a91906127d1565b61167491906127af565b61167e91906127f0565b905080156116a65780601560008282546116989190612797565b909155506116a69050611d56565b60028201546000905b80156117f857600284016116c46001836127f0565b815481106116d4576116d46128c6565b906000526020600020906003020160010154826116f19190612797565b600f54909250600285016117066001846127f0565b81548110611716576117166128c6565b9060005260206000209060030201600201546117329190612797565b4210156117ae57600060646010548660020160018561175191906127f0565b81548110611761576117616128c6565b90600052602060002090600302016001015461177d91906127d1565b61178791906127af565b905061179381846127f0565b925080601160008282546117a79190612797565b9091555050505b836002018054806117c1576117c16128b0565b60008281526020812060036000199093019283020181815560018101829055600201559055806117f081612833565b9150506116af565b50600d54611810906001600160a01b03163383611f24565b8254600980548291906000906118279084906127f0565b9091555050600080855560018501819055611843903390612015565b835415801561185c5750600e546001600160a01b031615155b156119c557600e5460405163747bd8f760e11b81523360048201526000916001600160a01b03169063e8f7b1ee9060240160206040518083038186803b1580156118a557600080fd5b505afa1580156118b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118dd919061266a565b1180156119625750600e546040516389f6e00d60e01b81523360048201526001600160a01b03909116906389f6e00d9060240160206040518083038186803b15801561192857600080fd5b505afa15801561193c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611960919061262f565b155b156119c557600e546040516344179f0b60e11b81523360048201526001600160a01b039091169063882f3e1690602401600060405180830381600087803b1580156119ac57600080fd5b505af11580156119c0573d6000803e3d6000fd5b505050505b60405181815233907f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd96959060200160405180910390a25050600180555050565b6000546001600160a01b03163314611a2e5760405162461bcd60e51b81526004016106299061272b565b6301e13380811115611a915760405162461bcd60e51b815260206004820152602660248201527f4c6f636b696e67206475726174696f6e2063616e277420657863656564206f6e60448201526532903cb2b0b960d11b6064820152608401610629565b600f55565b6000546001600160a01b03163314611ac05760405162461bcd60e51b81526004016106299061272b565b611ac8611d56565b60078190556040518181527fdf6a785a3f6f4690f12091be4b76d03b768c8f82a8d1612aac2f53cb2b7a9cad9060200160405180910390a150565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b6000546001600160a01b03163314611b585760405162461bcd60e51b81526004016106299061272b565b6001600160a01b038116611bbd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610629565b611bc68161206e565b50565b6001600160a01b0381166000908152601260205260408120600a5442118015611bf3575060095415155b15611cb4576000600a5442611c0891906127f0565b905060006301e133806064600754600954611c2391906127d1565b611c2d91906127af565b611c3791906127af565b611c4190836127d1565b9050601554811115611c5257506015545b6000600954600b5483611c6591906127d1565b611c6f91906127af565b600854611c7c9190612797565b90508360010154600b54828660000154611c9691906127d1565b611ca091906127af565b611caa91906127f0565b9695505050505050565b6001810154600b546008548354611ccb91906127d1565b611cd591906127af565b61088991906127f0565b50919050565b6040516001600160a01b0380851660248301528316604482015260648101829052611d509085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526120be565b50505050565b600a544211611d6157565b600954611d6e5742600a55565b6000600a5442611d7e91906127f0565b905060006301e133806064600754600954611d9991906127d1565b611da391906127af565b611dad91906127af565b611db790836127d1565b90506000611dc482612190565b9050600954600b5482611dd791906127d1565b611de191906127af565b60086000828254611df29190612797565b909155505042600a55505050565b6001600160a01b038316611e625760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610629565b6001600160a01b038216611ec35760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610629565b6001600160a01b0383811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6040516001600160a01b038316602482015260448101829052611f5490849063a9059cbb60e01b90606401611d19565b505050565b6000611f658484611b03565b90506000198114611d505781811015611fc05760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610629565b611d508484848403611e00565b60405162461bcd60e51b815260206004820152601c60248201527f43616e74207472616e73666572206469766964656e6420746f6b656e000000006044820152606401610629565b6001600160a01b0382166000908152600260205260409020548082111561204e57600061204282846127f0565b9050611d5084826121da565b80821015611f5457600061206283836127f0565b9050611d5084826121e8565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000612113826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166121f29092919063ffffffff16565b805190915015611f545780806020019051810190612131919061262f565b611f545760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610629565b601554600090829081106121a357506015545b80601560008282546121b591906127f0565b9250508190555080601660008282546121ce9190612797565b90915550909392505050565b6121e48282612209565b5050565b6121e482826122ca565b606061220184846000856123fe565b949350505050565b6001600160a01b03821661225f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610629565b80600460008282546122719190612797565b90915550506001600160a01b0382166000818152600260209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b03821661232a5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610629565b6001600160a01b0382166000908152600260205260409020548181101561239e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610629565b6001600160a01b03831660008181526002602090815260408083208686039055600480548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b60608247101561245f5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610629565b843b6124ad5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610629565b600080866001600160a01b031685876040516124c99190612683565b60006040518083038185875af1925050503d8060008114612506576040519150601f19603f3d011682016040523d82523d6000602084013e61250b565b606091505b509150915061251b828286612526565b979650505050505050565b60608315612535575081610889565b8251156125455782518084602001fd5b8160405162461bcd60e51b815260040161062991906126f8565b80356001600160a01b038116811461257657600080fd5b919050565b60006020828403121561258d57600080fd5b6108898261255f565b600080604083850312156125a957600080fd5b6125b28361255f565b91506125c06020840161255f565b90509250929050565b6000806000606084860312156125de57600080fd5b6125e78461255f565b92506125f56020850161255f565b9150604084013590509250925092565b6000806040838503121561261857600080fd5b6126218361255f565b946020939093013593505050565b60006020828403121561264157600080fd5b8151801515811461088957600080fd5b60006020828403121561266357600080fd5b5035919050565b60006020828403121561267c57600080fd5b5051919050565b60008251612695818460208701612807565b9190910192915050565b602080825282518282018190526000919060409081850190868401855b828110156126eb57815180518552868101518786015285015185850152606090930192908501906001016126bc565b5091979650505050505050565b6020815260008251806020840152612717816040850160208701612807565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b600082198211156127aa576127aa61289a565b500190565b6000826127cc57634e487b7160e01b600052601260045260246000fd5b500490565b60008160001904831182151516156127eb576127eb61289a565b500290565b6000828210156128025761280261289a565b500390565b60005b8381101561282257818101518382015260200161280a565b83811115611d505750506000910152565b6000816128425761284261289a565b506000190190565b600181811c9082168061285e57607f821691505b60208210811415611cdf57634e487b7160e01b600052602260045260246000fd5b60006000198214156128935761289361289a565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fdfea26469706673582212207218b8164c41cff9989572f51f43b93dc6f23a3471a1c6cacb03f236d382829a64736f6c63430008070033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | <$0.000001 | 24,420,824,062,571.8 | $374,932.91 |
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.