Source Code
Advanced mode: Intended for advanced users or developers and will display all Internal Transactions including zero value transfers.
Latest 9 internal transactions
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
|||
|---|---|---|---|---|---|---|---|---|
| Balance Of | 23514689 | 168 days ago | 0 ETH | |||||
| Total Supply | 23514689 | 168 days ago | 0 ETH | |||||
| Transfer From | 23514689 | 168 days ago | 0 ETH | |||||
| Total Supply | 23514689 | 168 days ago | 0 ETH | |||||
| Balance Of | 23514689 | 168 days ago | 0 ETH | |||||
| Transfer From | 23512575 | 168 days ago | 0 ETH | |||||
| Total Supply | 23512575 | 168 days ago | 0 ETH | |||||
| Balance Of | 23512575 | 168 days ago | 0 ETH | |||||
| Balance Of | 23512575 | 168 days ago | 0 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
MyStaking
Compiler Version
v0.8.30+commit.73712a01
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
contract MyStaking is Ownable, ReentrancyGuard, Pausable {
using SafeERC20 for IERC20;
// Tokenek
IERC20 public paperHandsToken;
IERC20 public lpToken;
uint256 public totalStakedPHAND;
uint256 public totalStakedLP;
uint256 public constant MAX_WALLET_STAKE_PERCENT = 200; // 2% of total supply
uint256 public constant REWARD_RATE = 55; // ~0.055% daily, ~20% annually
uint256 public constant LOCK_PERIOD = 30 days;
uint256 public lastRewardUpdate;
uint256 public constant REWARD_CHECK_INTERVAL = 1 days;
struct StakeInfo {
uint256 amount;
uint256 startTime;
uint256 lastClaimed;
bool autoClaimEnabled;
}
mapping(address => StakeInfo) public phandStakes;
mapping(address => StakeInfo) public lpStakes;
mapping(address => uint256) public phandRewards;
event Staked(address indexed user, uint256 amount, uint256 time, string tokenType);
event Unstaked(address indexed user, uint256 amount, uint256 time, string tokenType);
event RewardClaimed(address indexed user, uint256 amount, uint256 time);
event RewardsReplenished(uint256 amount);
event AutoClaimToggled(address indexed user, bool enabled);
constructor(address _paperHandsToken, address _lpToken) Ownable(msg.sender) {
require(_paperHandsToken != address(0), "Invalid token address");
require(_lpToken != address(0), "Invalid LP token address");
paperHandsToken = IERC20(_paperHandsToken);
lpToken = IERC20(_lpToken);
lastRewardUpdate = block.timestamp;
}
// ----------------------
// PHAND Staking
// ----------------------
function stakePHAND(uint256 amount) external whenNotPaused nonReentrant {
require(amount > 0, "Amount must be > 0");
require(paperHandsToken.balanceOf(msg.sender) >= amount, "Insufficient balance");
_updateRewardsPool();
uint256 totalSupply = paperHandsToken.totalSupply();
uint256 maxStake = (totalSupply * MAX_WALLET_STAKE_PERCENT) / 10000;
require(totalStakedPHAND + amount <= maxStake, "Exceeds max wallet stake limit");
paperHandsToken.safeTransferFrom(msg.sender, address(this), amount);
if (phandStakes[msg.sender].amount > 0) {
_updatePHANDRewards(msg.sender);
phandStakes[msg.sender].amount += amount;
} else {
phandStakes[msg.sender] = StakeInfo(amount, block.timestamp, block.timestamp, false);
}
totalStakedPHAND += amount;
emit Staked(msg.sender, amount, block.timestamp, "PHAND");
}
function unstakePHAND() external whenNotPaused nonReentrant {
StakeInfo storage userStake = phandStakes[msg.sender];
require(userStake.amount > 0, "No stake found");
require(block.timestamp >= userStake.startTime + LOCK_PERIOD, "Stake still locked");
_updatePHANDRewards(msg.sender);
uint256 stakedAmount = userStake.amount;
uint256 reward = phandRewards[msg.sender];
phandRewards[msg.sender] = 0;
userStake.amount = 0;
totalStakedPHAND -= stakedAmount;
paperHandsToken.safeTransfer(msg.sender, stakedAmount + reward);
emit Unstaked(msg.sender, stakedAmount, block.timestamp, "PHAND");
emit RewardClaimed(msg.sender, reward, block.timestamp);
}
// ----------------------
// LP Token Staking
// ----------------------
function stakeLP(uint256 amount) external whenNotPaused nonReentrant {
require(amount > 0, "Amount must be > 0");
require(lpToken.balanceOf(msg.sender) >= amount, "Insufficient LP balance");
_updateRewardsPool();
lpToken.safeTransferFrom(msg.sender, address(this), amount);
if (lpStakes[msg.sender].amount > 0) {
_updateLPRewards(msg.sender);
lpStakes[msg.sender].amount += amount;
} else {
lpStakes[msg.sender] = StakeInfo(amount, block.timestamp, block.timestamp, false);
}
totalStakedLP += amount;
emit Staked(msg.sender, amount, block.timestamp, "LP");
}
function unstakeLP() external whenNotPaused nonReentrant {
StakeInfo storage userStake = lpStakes[msg.sender];
require(userStake.amount > 0, "No LP stake found");
require(block.timestamp >= userStake.startTime + LOCK_PERIOD, "Stake still locked");
_updateLPRewards(msg.sender);
uint256 stakedAmount = userStake.amount;
uint256 reward = phandRewards[msg.sender]; // reward PHAND tokenban
phandRewards[msg.sender] = 0;
userStake.amount = 0;
totalStakedLP -= stakedAmount;
lpToken.safeTransfer(msg.sender, stakedAmount);
if (reward > 0) {
paperHandsToken.safeTransfer(msg.sender, reward);
emit RewardClaimed(msg.sender, reward, block.timestamp);
}
emit Unstaked(msg.sender, stakedAmount, block.timestamp, "LP");
}
// ----------------------
// Rewards
// ----------------------
function claimRewards() external whenNotPaused nonReentrant {
_updatePHANDRewards(msg.sender);
_updateLPRewards(msg.sender);
uint256 reward = phandRewards[msg.sender];
require(reward > 0, "No rewards to claim");
phandRewards[msg.sender] = 0;
paperHandsToken.safeTransfer(msg.sender, reward);
emit RewardClaimed(msg.sender, reward, block.timestamp);
}
function toggleAutoClaim() external whenNotPaused nonReentrant {
phandStakes[msg.sender].autoClaimEnabled = !phandStakes[msg.sender].autoClaimEnabled;
lpStakes[msg.sender].autoClaimEnabled = !lpStakes[msg.sender].autoClaimEnabled;
emit AutoClaimToggled(msg.sender, phandStakes[msg.sender].autoClaimEnabled);
}
function _updatePHANDRewards(address user) internal {
StakeInfo storage userStake = phandStakes[user];
if (userStake.amount > 0) {
uint256 timeElapsed = block.timestamp - userStake.lastClaimed;
uint256 stakeRatio = (totalStakedPHAND * 10000) / paperHandsToken.totalSupply();
uint256 adjustedRate = REWARD_RATE - ((stakeRatio * REWARD_RATE) / 20000);
uint256 reward = (userStake.amount * adjustedRate * timeElapsed) / (10000 * 365 days);
uint256 availableRewards = _getAvailableRewards();
if (reward > availableRewards) reward = availableRewards;
phandRewards[user] += reward;
userStake.lastClaimed = block.timestamp;
if (userStake.autoClaimEnabled && reward > 0) {
phandRewards[user] = 0;
paperHandsToken.safeTransfer(user, reward);
emit RewardClaimed(user, reward, block.timestamp);
}
}
}
function _updateLPRewards(address user) internal {
StakeInfo storage userStake = lpStakes[user];
if (userStake.amount > 0) {
uint256 timeElapsed = block.timestamp - userStake.lastClaimed;
uint256 stakeRatio = (totalStakedLP * 10000) / lpToken.totalSupply();
uint256 adjustedRate = REWARD_RATE - ((stakeRatio * REWARD_RATE) / 20000);
uint256 reward = (userStake.amount * adjustedRate * timeElapsed) / (10000 * 365 days);
uint256 availableRewards = _getAvailableRewards();
if (reward > availableRewards) reward = availableRewards;
phandRewards[user] += reward;
userStake.lastClaimed = block.timestamp;
if (userStake.autoClaimEnabled && reward > 0) {
phandRewards[user] = 0;
paperHandsToken.safeTransfer(user, reward);
emit RewardClaimed(user, reward, block.timestamp);
}
}
}
function _updateRewardsPool() internal {
if (block.timestamp >= lastRewardUpdate + REWARD_CHECK_INTERVAL) {
uint256 available = _getAvailableRewards();
if (available > 0) emit RewardsReplenished(available);
lastRewardUpdate = block.timestamp;
}
}
function _getAvailableRewards() internal view returns (uint256) {
return paperHandsToken.balanceOf(address(this)) - totalStakedPHAND;
}
// ----------------------
// Owner Functions
// ----------------------
function depositRewards(uint256 amount) external onlyOwner {
paperHandsToken.safeTransferFrom(msg.sender, address(this), amount);
}
function emergencyWithdraw(uint256 amount) external onlyOwner {
paperHandsToken.safeTransfer(owner(), amount);
}
function pause() external onlyOwner { _pause(); }
function unpause() external onlyOwner { _unpause(); }
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
import {IERC1363} from "../../../interfaces/IERC1363.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC-20 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 {
/**
* @dev An operation with an ERC-20 token failed.
*/
error SafeERC20FailedOperation(address token);
/**
* @dev Indicates a failed `decreaseAllowance` request.
*/
error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);
/**
* @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
}
/**
* @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
* calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
*/
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
}
/**
* @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.
*/
function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {
return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));
}
/**
* @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.
*/
function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {
return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));
}
/**
* @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*
* IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
* smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
* this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
* that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
*/
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
forceApprove(token, spender, oldAllowance + value);
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
* value, non-reverting calls are assumed to be successful.
*
* IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
* smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
* this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
* that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
*/
function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
unchecked {
uint256 currentAllowance = token.allowance(address(this), spender);
if (currentAllowance < requestedDecrease) {
revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
}
forceApprove(token, spender, currentAllowance - requestedDecrease);
}
}
/**
* @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
* to be set to zero before setting it to a non-zero value, such as USDT.
*
* NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function
* only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being
* set here.
*/
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no
* code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* Reverts if the returned value is other than `true`.
*/
function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
if (to.code.length == 0) {
safeTransfer(token, to, value);
} else if (!token.transferAndCall(to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target
* has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* Reverts if the returned value is other than `true`.
*/
function transferFromAndCallRelaxed(
IERC1363 token,
address from,
address to,
uint256 value,
bytes memory data
) internal {
if (to.code.length == 0) {
safeTransferFrom(token, from, to, value);
} else if (!token.transferFromAndCall(from, to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no
* code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.
* Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}
* once without retrying, and relies on the returned value to be true.
*
* Reverts if the returned value is other than `true`.
*/
function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
if (to.code.length == 0) {
forceApprove(token, to, value);
} else if (!token.approveAndCall(to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @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).
*
* This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
uint256 returnSize;
uint256 returnValue;
assembly ("memory-safe") {
let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
// bubble errors
if iszero(success) {
let ptr := mload(0x40)
returndatacopy(ptr, 0, returndatasize())
revert(ptr, returndatasize())
}
returnSize := returndatasize()
returnValue := mload(0)
}
if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @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).
*
* This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
bool success;
uint256 returnSize;
uint256 returnValue;
assembly ("memory-safe") {
success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
returnSize := returndatasize()
returnValue := mload(0)
}
return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which allows children to implement an emergency stop
* mechanism that can be triggered by an authorized account.
*
* This module is used through inheritance. It will make available the
* modifiers `whenNotPaused` and `whenPaused`, which can be applied to
* the functions of your contract. Note that they will not be pausable by
* simply including this module, only once the modifiers are put in place.
*/
abstract contract Pausable is Context {
/**
* @dev Emitted when the pause is triggered by `account`.
*/
event Paused(address account);
/**
* @dev Emitted when the pause is lifted by `account`.
*/
event Unpaused(address account);
bool private _paused;
/**
* @dev Initializes the contract in unpaused state.
*/
constructor() {
_paused = false;
}
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*
* Requirements:
*
* - The contract must not be paused.
*/
modifier whenNotPaused() {
_requireNotPaused();
_;
}
/**
* @dev Modifier to make a function callable only when the contract is paused.
*
* Requirements:
*
* - The contract must be paused.
*/
modifier whenPaused() {
_requirePaused();
_;
}
/**
* @dev Returns true if the contract is paused, and false otherwise.
*/
function paused() public view virtual returns (bool) {
return _paused;
}
/**
* @dev Throws if the contract is paused.
*/
function _requireNotPaused() internal view virtual {
require(!paused(), "Pausable: paused");
}
/**
* @dev Throws if the contract is not paused.
*/
function _requirePaused() internal view virtual {
require(paused(), "Pausable: not paused");
}
/**
* @dev Triggers stopped state.
*
* Requirements:
*
* - The contract must not be paused.
*/
function _pause() internal virtual whenNotPaused {
_paused = true;
emit Paused(_msgSender());
}
/**
* @dev Returns to normal state.
*
* Requirements:
*
* - The contract must be paused.
*/
function _unpause() internal virtual whenPaused {
_paused = false;
emit Unpaused(_msgSender());
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @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 making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be _NOT_ENTERED
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == _ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import {Context} from "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* The initial owner is set to the address provided by the deployer. This can
* later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)
pragma solidity >=0.4.16;
/**
* @dev Interface of the ERC-20 standard as defined in the ERC.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 value) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 value) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)
pragma solidity >=0.6.2;
import {IERC20} from "./IERC20.sol";
import {IERC165} from "./IERC165.sol";
/**
* @title IERC1363
* @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].
*
* Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract
* after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.
*/
interface IERC1363 is IERC20, IERC165 {
/*
* Note: the ERC-165 identifier for this interface is 0xb0202a11.
* 0xb0202a11 ===
* bytes4(keccak256('transferAndCall(address,uint256)')) ^
* bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^
* bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^
* bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^
* bytes4(keccak256('approveAndCall(address,uint256)')) ^
* bytes4(keccak256('approveAndCall(address,uint256,bytes)'))
*/
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferAndCall(address to, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @param data Additional data with no specified format, sent in call to `to`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param from The address which you want to send tokens from.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferFromAndCall(address from, address to, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param from The address which you want to send tokens from.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @param data Additional data with no specified format, sent in call to `to`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
* @param spender The address which will spend the funds.
* @param value The amount of tokens to be spent.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function approveAndCall(address spender, uint256 value) external returns (bool);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
* @param spender The address which will spend the funds.
* @param value The amount of tokens to be spent.
* @param data Additional data with no specified format, sent in call to `spender`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)
pragma solidity >=0.4.16;
import {IERC165} from "../utils/introspection/IERC165.sol";// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)
pragma solidity >=0.4.16;
import {IERC20} from "../token/ERC20/IERC20.sol";// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)
pragma solidity >=0.4.16;
/**
* @dev Interface of the ERC-165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[ERC].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}{
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"remappings": []
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_paperHandsToken","type":"address"},{"internalType":"address","name":"_lpToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"AutoClaimToggled","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"time","type":"uint256"}],"name":"RewardClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardsReplenished","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"time","type":"uint256"},{"indexed":false,"internalType":"string","name":"tokenType","type":"string"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"time","type":"uint256"},{"indexed":false,"internalType":"string","name":"tokenType","type":"string"}],"name":"Unstaked","type":"event"},{"inputs":[],"name":"LOCK_PERIOD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_WALLET_STAKE_PERCENT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REWARD_CHECK_INTERVAL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REWARD_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"depositRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastRewardUpdate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lpStakes","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"lastClaimed","type":"uint256"},{"internalType":"bool","name":"autoClaimEnabled","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paperHandsToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"phandRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"phandStakes","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"lastClaimed","type":"uint256"},{"internalType":"bool","name":"autoClaimEnabled","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stakeLP","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stakePHAND","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleAutoClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalStakedLP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStakedPHAND","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unstakeLP","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unstakePHAND","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405234801561000f575f5ffd5b5060405161317d38038061317d8339818101604052810190610031919061035c565b335f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036100a2575f6040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161009991906103a9565b60405180910390fd5b6100b18161023d60201b60201c565b50600180819055505f60025f6101000a81548160ff0219169083151502179055505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610140576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101379061041c565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036101ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a590610484565b60405180910390fd5b81600260016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055504260068190555050506104a2565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61032b82610302565b9050919050565b61033b81610321565b8114610345575f5ffd5b50565b5f8151905061035681610332565b92915050565b5f5f60408385031215610372576103716102fe565b5b5f61037f85828601610348565b925050602061039085828601610348565b9150509250929050565b6103a381610321565b82525050565b5f6020820190506103bc5f83018461039a565b92915050565b5f82825260208201905092915050565b7f496e76616c696420746f6b656e206164647265737300000000000000000000005f82015250565b5f6104066015836103c2565b9150610411826103d2565b602082019050919050565b5f6020820190508181035f830152610433816103fa565b9050919050565b7f496e76616c6964204c5020746f6b656e206164647265737300000000000000005f82015250565b5f61046e6018836103c2565b91506104798261043a565b602082019050919050565b5f6020820190508181035f83015261049b81610462565b9050919050565b612cce806104af5f395ff3fe608060405234801561000f575f5ffd5b506004361061018c575f3560e01c80638bdf67f2116100dc578063c819d38811610095578063e68637681161006f578063e6863768146103cb578063f2f09130146103d5578063f2fde38b14610408578063fcb4edd4146104245761018c565b8063c819d38814610375578063dee3d1351461037f578063e5da2cb2146103af5761018c565b80638bdf67f2146102c55780638da5cb5b146102e157806394812dab146102ff578063a3c2710d1461031d578063b696fa0b1461033b578063c6c6dd6b146103575761018c565b80635312ea8e116101495780635fcbd285116101235780635fcbd28514610275578063715018a6146102935780637947f6241461029d5780638456cb59146102bb5761018c565b80635312ea8e1461021d5780635997bb37146102395780635c975abb146102575761018c565b80631022950e146101905780631820cabb1461019a5780631a41f9d8146101b8578063372500ab146101eb5780633f4ba83a146101f557806340df64ee146101ff575b5f5ffd5b610198610442565b005b6101a26106e4565b6040516101af919061230c565b60405180910390f35b6101d260048036038101906101cd9190612383565b6106eb565b6040516101e294939291906123c8565b60405180910390f35b6101f3610723565b005b6101fd6108b2565b005b6102076108c4565b604051610214919061230c565b60405180910390f35b61023760048036038101906102329190612435565b6108cb565b005b61024161092a565b60405161024e919061230c565b60405180910390f35b61025f61092f565b60405161026c9190612460565b60405180910390f35b61027d610944565b60405161028a91906124d4565b60405180910390f35b61029b610969565b005b6102a561097c565b6040516102b2919061230c565b60405180910390f35b6102c3610982565b005b6102df60048036038101906102da9190612435565b610994565b005b6102e96109ee565b6040516102f691906124fc565b60405180910390f35b610307610a15565b604051610314919061230c565b60405180910390f35b610325610a1b565b604051610332919061230c565b60405180910390f35b61035560048036038101906103509190612435565b610a21565b005b61035f610e63565b60405161036c91906124d4565b60405180910390f35b61037d610e89565b005b61039960048036038101906103949190612383565b611175565b6040516103a6919061230c565b60405180910390f35b6103c960048036038101906103c49190612435565b61118a565b005b6103d36114c9565b005b6103ef60048036038101906103ea9190612383565b6116c5565b6040516103ff94939291906123c8565b60405180910390f35b610422600480360381019061041d9190612383565b6116fd565b005b61042c611781565b604051610439919061230c565b60405180910390f35b61044a611786565b6104526117d0565b5f60075f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090505f815f0154116104d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104ce9061256f565b60405180910390fd5b62278d0081600101546104ea91906125ba565b42101561052c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161052390612637565b60405180910390fd5b6105353361181f565b5f815f015490505f60095f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490505f60095f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505f835f01819055508160045f8282546105d89190612655565b925050819055506106373382846105ef91906125ba565b600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611afd9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167fd224ec5ad02946fe147952e6ad900ce0567e05d53bd64beb1b564a8c603d869c834260405161067f9291906126d2565b60405180910390a23373ffffffffffffffffffffffffffffffffffffffff167ff01da32686223933d8a18a391060918c7f11a3648639edd87ae013e2e273174382426040516106cf92919061270c565b60405180910390a25050506106e2611b7c565b565b62278d0081565b6007602052805f5260405f205f91509050805f015490806001015490806002015490806003015f9054906101000a900460ff16905084565b61072b611786565b6107336117d0565b61073c3361181f565b61074533611b85565b5f60095f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490505f81116107c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107bf9061277d565b60405180910390fd5b5f60095f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055506108573382600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611afd9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167ff01da32686223933d8a18a391060918c7f11a3648639edd87ae013e2e2731743824260405161089f92919061270c565b60405180910390a2506108b0611b7c565b565b6108ba611e62565b6108c2611ee9565b565b6201518081565b6108d3611e62565b6109276108de6109ee565b82600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611afd9092919063ffffffff16565b50565b603781565b5f60025f9054906101000a900460ff16905090565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610971611e62565b61097a5f611f4a565b565b60045481565b61098a611e62565b61099261200b565b565b61099c611e62565b6109eb333083600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661206d909392919063ffffffff16565b50565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60055481565b60065481565b610a29611786565b610a316117d0565b5f8111610a73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6a906127e5565b60405180910390fd5b80600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401610acf91906124fc565b602060405180830381865afa158015610aea573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b0e9190612817565b1015610b4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b469061288c565b60405180910390fd5b610b576120ef565b5f600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bc3573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610be79190612817565b90505f61271060c883610bfa91906128aa565b610c049190612918565b90508083600454610c1591906125ba565b1115610c56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4d90612992565b60405180910390fd5b610ca5333085600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661206d909392919063ffffffff16565b5f60075f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f01541115610d4f57610cf53361181f565b8260075f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f015f828254610d4391906125ba565b92505081905550610dee565b60405180608001604052808481526020014281526020014281526020015f151581525060075f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f820151815f015560208201518160010155604082015181600201556060820151816003015f6101000a81548160ff0219169083151502179055509050505b8260045f828254610dff91906125ba565b925050819055503373ffffffffffffffffffffffffffffffffffffffff167f66d612d12bb1902ec26fd9a4991d9d58d71d0580427497d62731e7527f1e01a48442604051610e4e9291906126d2565b60405180910390a25050610e60611b7c565b50565b600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610e91611786565b610e996117d0565b5f60085f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090505f815f015411610f1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f15906129fa565b60405180910390fd5b62278d008160010154610f3191906125ba565b421015610f73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6a90612637565b60405180910390fd5b610f7c33611b85565b5f815f015490505f60095f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490505f60095f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505f835f01819055508160055f82825461101f9190612655565b92505081905550611072338360035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611afd9092919063ffffffff16565b5f811115611118576110c73382600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611afd9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167ff01da32686223933d8a18a391060918c7f11a3648639edd87ae013e2e2731743824260405161110f92919061270c565b60405180910390a25b3373ffffffffffffffffffffffffffffffffffffffff167fd224ec5ad02946fe147952e6ad900ce0567e05d53bd64beb1b564a8c603d869c8342604051611160929190612a62565b60405180910390a2505050611173611b7c565b565b6009602052805f5260405f205f915090505481565b611192611786565b61119a6117d0565b5f81116111dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d3906127e5565b60405180910390fd5b8060035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b815260040161123791906124fc565b602060405180830381865afa158015611252573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112769190612817565b10156112b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ae90612ae6565b60405180910390fd5b6112bf6120ef565b61130d33308360035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661206d909392919063ffffffff16565b5f60085f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f015411156113b75761135d33611b85565b8060085f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f015f8282546113ab91906125ba565b92505081905550611456565b60405180608001604052808281526020014281526020014281526020015f151581525060085f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f820151815f015560208201518160010155604082015181600201556060820151816003015f6101000a81548160ff0219169083151502179055509050505b8060055f82825461146791906125ba565b925050819055503373ffffffffffffffffffffffffffffffffffffffff167f66d612d12bb1902ec26fd9a4991d9d58d71d0580427497d62731e7527f1e01a482426040516114b6929190612a62565b60405180910390a26114c6611b7c565b50565b6114d1611786565b6114d96117d0565b60075f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206003015f9054906101000a900460ff161560075f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206003015f6101000a81548160ff02191690831515021790555060085f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206003015f9054906101000a900460ff161560085f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206003015f6101000a81548160ff0219169083151502179055503373ffffffffffffffffffffffffffffffffffffffff167fc9b31f80e9b7707f3332f21e0d760e1d594b6b10a4115fb4077f44f0fc64235060075f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206003015f9054906101000a900460ff166040516116b39190612460565b60405180910390a26116c3611b7c565b565b6008602052805f5260405f205f91509050805f015490806001015490806002015490806003015f9054906101000a900460ff16905084565b611705611e62565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611775575f6040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161176c91906124fc565b60405180910390fd5b61177e81611f4a565b50565b60c881565b61178e61092f565b156117ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c590612b4e565b60405180910390fd5b565b600260015403611815576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180c90612bb6565b60405180910390fd5b6002600181905550565b5f60075f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090505f815f01541115611af9575f81600201544261187b9190612655565b90505f600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156118e9573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061190d9190612817565b61271060045461191d91906128aa565b6119279190612918565b90505f614e2060378361193a91906128aa565b6119449190612918565b60376119509190612655565b90505f64496cebb8008483875f015461196991906128aa565b61197391906128aa565b61197d9190612918565b90505f61198861215c565b905080821115611996578091505b8160095f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546119e291906125ba565b92505081905550428660020181905550856003015f9054906101000a900460ff168015611a0e57505f82115b15611af3575f60095f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550611aa28783600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611afd9092919063ffffffff16565b8673ffffffffffffffffffffffffffffffffffffffff167ff01da32686223933d8a18a391060918c7f11a3648639edd87ae013e2e27317438342604051611aea92919061270c565b60405180910390a25b50505050505b5050565b611b77838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8585604051602401611b30929190612bd4565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612209565b505050565b60018081905550565b5f60085f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090505f815f01541115611e5e575f816002015442611be19190612655565b90505f60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611c4e573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611c729190612817565b612710600554611c8291906128aa565b611c8c9190612918565b90505f614e20603783611c9f91906128aa565b611ca99190612918565b6037611cb59190612655565b90505f64496cebb8008483875f0154611cce91906128aa565b611cd891906128aa565b611ce29190612918565b90505f611ced61215c565b905080821115611cfb578091505b8160095f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254611d4791906125ba565b92505081905550428660020181905550856003015f9054906101000a900460ff168015611d7357505f82115b15611e58575f60095f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550611e078783600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611afd9092919063ffffffff16565b8673ffffffffffffffffffffffffffffffffffffffff167ff01da32686223933d8a18a391060918c7f11a3648639edd87ae013e2e27317438342604051611e4f92919061270c565b60405180910390a25b50505050505b5050565b611e6a6122a4565b73ffffffffffffffffffffffffffffffffffffffff16611e886109ee565b73ffffffffffffffffffffffffffffffffffffffff1614611ee757611eab6122a4565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401611ede91906124fc565b60405180910390fd5b565b611ef16122ab565b5f60025f6101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611f336122a4565b604051611f4091906124fc565b60405180910390a1565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612013611786565b600160025f6101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586120566122a4565b60405161206391906124fc565b60405180910390a1565b6120e9848573ffffffffffffffffffffffffffffffffffffffff166323b872dd8686866040516024016120a293929190612bfb565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612209565b50505050565b6201518060065461210091906125ba565b421061215a575f61210f61215c565b90505f811115612151577f727a8d51524696c2722b90c0a90c519cb5b7d81a42af42b8ebc39687476ec44b81604051612148919061230c565b60405180910390a15b42600681905550505b565b5f600454600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016121bb91906124fc565b602060405180830381865afa1580156121d6573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906121fa9190612817565b6122049190612655565b905090565b5f5f60205f8451602086015f885af180612228576040513d5f823e3d81fd5b3d92505f519150505f821461224157600181141561225c565b5f8473ffffffffffffffffffffffffffffffffffffffff163b145b1561229e57836040517f5274afe700000000000000000000000000000000000000000000000000000000815260040161229591906124fc565b60405180910390fd5b50505050565b5f33905090565b6122b361092f565b6122f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122e990612c7a565b60405180910390fd5b565b5f819050919050565b612306816122f4565b82525050565b5f60208201905061231f5f8301846122fd565b92915050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61235282612329565b9050919050565b61236281612348565b811461236c575f5ffd5b50565b5f8135905061237d81612359565b92915050565b5f6020828403121561239857612397612325565b5b5f6123a58482850161236f565b91505092915050565b5f8115159050919050565b6123c2816123ae565b82525050565b5f6080820190506123db5f8301876122fd565b6123e860208301866122fd565b6123f560408301856122fd565b61240260608301846123b9565b95945050505050565b612414816122f4565b811461241e575f5ffd5b50565b5f8135905061242f8161240b565b92915050565b5f6020828403121561244a57612449612325565b5b5f61245784828501612421565b91505092915050565b5f6020820190506124735f8301846123b9565b92915050565b5f819050919050565b5f61249c61249761249284612329565b612479565b612329565b9050919050565b5f6124ad82612482565b9050919050565b5f6124be826124a3565b9050919050565b6124ce816124b4565b82525050565b5f6020820190506124e75f8301846124c5565b92915050565b6124f681612348565b82525050565b5f60208201905061250f5f8301846124ed565b92915050565b5f82825260208201905092915050565b7f4e6f207374616b6520666f756e640000000000000000000000000000000000005f82015250565b5f612559600e83612515565b915061256482612525565b602082019050919050565b5f6020820190508181035f8301526125868161254d565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6125c4826122f4565b91506125cf836122f4565b92508282019050808211156125e7576125e661258d565b5b92915050565b7f5374616b65207374696c6c206c6f636b656400000000000000000000000000005f82015250565b5f612621601283612515565b915061262c826125ed565b602082019050919050565b5f6020820190508181035f83015261264e81612615565b9050919050565b5f61265f826122f4565b915061266a836122f4565b92508282039050818111156126825761268161258d565b5b92915050565b7f5048414e440000000000000000000000000000000000000000000000000000005f82015250565b5f6126bc600583612515565b91506126c782612688565b602082019050919050565b5f6060820190506126e55f8301856122fd565b6126f260208301846122fd565b8181036040830152612703816126b0565b90509392505050565b5f60408201905061271f5f8301856122fd565b61272c60208301846122fd565b9392505050565b7f4e6f207265776172647320746f20636c61696d000000000000000000000000005f82015250565b5f612767601383612515565b915061277282612733565b602082019050919050565b5f6020820190508181035f8301526127948161275b565b9050919050565b7f416d6f756e74206d757374206265203e203000000000000000000000000000005f82015250565b5f6127cf601283612515565b91506127da8261279b565b602082019050919050565b5f6020820190508181035f8301526127fc816127c3565b9050919050565b5f815190506128118161240b565b92915050565b5f6020828403121561282c5761282b612325565b5b5f61283984828501612803565b91505092915050565b7f496e73756666696369656e742062616c616e63650000000000000000000000005f82015250565b5f612876601483612515565b915061288182612842565b602082019050919050565b5f6020820190508181035f8301526128a38161286a565b9050919050565b5f6128b4826122f4565b91506128bf836122f4565b92508282026128cd816122f4565b915082820484148315176128e4576128e361258d565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f612922826122f4565b915061292d836122f4565b92508261293d5761293c6128eb565b5b828204905092915050565b7f45786365656473206d61782077616c6c6574207374616b65206c696d697400005f82015250565b5f61297c601e83612515565b915061298782612948565b602082019050919050565b5f6020820190508181035f8301526129a981612970565b9050919050565b7f4e6f204c50207374616b6520666f756e640000000000000000000000000000005f82015250565b5f6129e4601183612515565b91506129ef826129b0565b602082019050919050565b5f6020820190508181035f830152612a11816129d8565b9050919050565b7f4c500000000000000000000000000000000000000000000000000000000000005f82015250565b5f612a4c600283612515565b9150612a5782612a18565b602082019050919050565b5f606082019050612a755f8301856122fd565b612a8260208301846122fd565b8181036040830152612a9381612a40565b90509392505050565b7f496e73756666696369656e74204c502062616c616e63650000000000000000005f82015250565b5f612ad0601783612515565b9150612adb82612a9c565b602082019050919050565b5f6020820190508181035f830152612afd81612ac4565b9050919050565b7f5061757361626c653a20706175736564000000000000000000000000000000005f82015250565b5f612b38601083612515565b9150612b4382612b04565b602082019050919050565b5f6020820190508181035f830152612b6581612b2c565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f612ba0601f83612515565b9150612bab82612b6c565b602082019050919050565b5f6020820190508181035f830152612bcd81612b94565b9050919050565b5f604082019050612be75f8301856124ed565b612bf460208301846122fd565b9392505050565b5f606082019050612c0e5f8301866124ed565b612c1b60208301856124ed565b612c2860408301846122fd565b949350505050565b7f5061757361626c653a206e6f74207061757365640000000000000000000000005f82015250565b5f612c64601483612515565b9150612c6f82612c30565b602082019050919050565b5f6020820190508181035f830152612c9181612c58565b905091905056fea2646970667358221220f7f20e1185c26dc1f217f9f177c2745b7b1fa1f024539aaaf09b3df531814b8864736f6c634300081e003300000000000000000000000011157da1fc6dcfd58b50ed79082183b2c617624500000000000000000000000029b2b1450dfe8d856fa42250437b1e827435f82e
Deployed Bytecode
0x608060405234801561000f575f5ffd5b506004361061018c575f3560e01c80638bdf67f2116100dc578063c819d38811610095578063e68637681161006f578063e6863768146103cb578063f2f09130146103d5578063f2fde38b14610408578063fcb4edd4146104245761018c565b8063c819d38814610375578063dee3d1351461037f578063e5da2cb2146103af5761018c565b80638bdf67f2146102c55780638da5cb5b146102e157806394812dab146102ff578063a3c2710d1461031d578063b696fa0b1461033b578063c6c6dd6b146103575761018c565b80635312ea8e116101495780635fcbd285116101235780635fcbd28514610275578063715018a6146102935780637947f6241461029d5780638456cb59146102bb5761018c565b80635312ea8e1461021d5780635997bb37146102395780635c975abb146102575761018c565b80631022950e146101905780631820cabb1461019a5780631a41f9d8146101b8578063372500ab146101eb5780633f4ba83a146101f557806340df64ee146101ff575b5f5ffd5b610198610442565b005b6101a26106e4565b6040516101af919061230c565b60405180910390f35b6101d260048036038101906101cd9190612383565b6106eb565b6040516101e294939291906123c8565b60405180910390f35b6101f3610723565b005b6101fd6108b2565b005b6102076108c4565b604051610214919061230c565b60405180910390f35b61023760048036038101906102329190612435565b6108cb565b005b61024161092a565b60405161024e919061230c565b60405180910390f35b61025f61092f565b60405161026c9190612460565b60405180910390f35b61027d610944565b60405161028a91906124d4565b60405180910390f35b61029b610969565b005b6102a561097c565b6040516102b2919061230c565b60405180910390f35b6102c3610982565b005b6102df60048036038101906102da9190612435565b610994565b005b6102e96109ee565b6040516102f691906124fc565b60405180910390f35b610307610a15565b604051610314919061230c565b60405180910390f35b610325610a1b565b604051610332919061230c565b60405180910390f35b61035560048036038101906103509190612435565b610a21565b005b61035f610e63565b60405161036c91906124d4565b60405180910390f35b61037d610e89565b005b61039960048036038101906103949190612383565b611175565b6040516103a6919061230c565b60405180910390f35b6103c960048036038101906103c49190612435565b61118a565b005b6103d36114c9565b005b6103ef60048036038101906103ea9190612383565b6116c5565b6040516103ff94939291906123c8565b60405180910390f35b610422600480360381019061041d9190612383565b6116fd565b005b61042c611781565b604051610439919061230c565b60405180910390f35b61044a611786565b6104526117d0565b5f60075f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090505f815f0154116104d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104ce9061256f565b60405180910390fd5b62278d0081600101546104ea91906125ba565b42101561052c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161052390612637565b60405180910390fd5b6105353361181f565b5f815f015490505f60095f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490505f60095f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505f835f01819055508160045f8282546105d89190612655565b925050819055506106373382846105ef91906125ba565b600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611afd9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167fd224ec5ad02946fe147952e6ad900ce0567e05d53bd64beb1b564a8c603d869c834260405161067f9291906126d2565b60405180910390a23373ffffffffffffffffffffffffffffffffffffffff167ff01da32686223933d8a18a391060918c7f11a3648639edd87ae013e2e273174382426040516106cf92919061270c565b60405180910390a25050506106e2611b7c565b565b62278d0081565b6007602052805f5260405f205f91509050805f015490806001015490806002015490806003015f9054906101000a900460ff16905084565b61072b611786565b6107336117d0565b61073c3361181f565b61074533611b85565b5f60095f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490505f81116107c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107bf9061277d565b60405180910390fd5b5f60095f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055506108573382600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611afd9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167ff01da32686223933d8a18a391060918c7f11a3648639edd87ae013e2e2731743824260405161089f92919061270c565b60405180910390a2506108b0611b7c565b565b6108ba611e62565b6108c2611ee9565b565b6201518081565b6108d3611e62565b6109276108de6109ee565b82600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611afd9092919063ffffffff16565b50565b603781565b5f60025f9054906101000a900460ff16905090565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610971611e62565b61097a5f611f4a565b565b60045481565b61098a611e62565b61099261200b565b565b61099c611e62565b6109eb333083600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661206d909392919063ffffffff16565b50565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60055481565b60065481565b610a29611786565b610a316117d0565b5f8111610a73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6a906127e5565b60405180910390fd5b80600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401610acf91906124fc565b602060405180830381865afa158015610aea573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b0e9190612817565b1015610b4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b469061288c565b60405180910390fd5b610b576120ef565b5f600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bc3573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610be79190612817565b90505f61271060c883610bfa91906128aa565b610c049190612918565b90508083600454610c1591906125ba565b1115610c56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4d90612992565b60405180910390fd5b610ca5333085600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661206d909392919063ffffffff16565b5f60075f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f01541115610d4f57610cf53361181f565b8260075f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f015f828254610d4391906125ba565b92505081905550610dee565b60405180608001604052808481526020014281526020014281526020015f151581525060075f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f820151815f015560208201518160010155604082015181600201556060820151816003015f6101000a81548160ff0219169083151502179055509050505b8260045f828254610dff91906125ba565b925050819055503373ffffffffffffffffffffffffffffffffffffffff167f66d612d12bb1902ec26fd9a4991d9d58d71d0580427497d62731e7527f1e01a48442604051610e4e9291906126d2565b60405180910390a25050610e60611b7c565b50565b600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610e91611786565b610e996117d0565b5f60085f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090505f815f015411610f1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f15906129fa565b60405180910390fd5b62278d008160010154610f3191906125ba565b421015610f73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6a90612637565b60405180910390fd5b610f7c33611b85565b5f815f015490505f60095f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490505f60095f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505f835f01819055508160055f82825461101f9190612655565b92505081905550611072338360035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611afd9092919063ffffffff16565b5f811115611118576110c73382600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611afd9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167ff01da32686223933d8a18a391060918c7f11a3648639edd87ae013e2e2731743824260405161110f92919061270c565b60405180910390a25b3373ffffffffffffffffffffffffffffffffffffffff167fd224ec5ad02946fe147952e6ad900ce0567e05d53bd64beb1b564a8c603d869c8342604051611160929190612a62565b60405180910390a2505050611173611b7c565b565b6009602052805f5260405f205f915090505481565b611192611786565b61119a6117d0565b5f81116111dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d3906127e5565b60405180910390fd5b8060035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b815260040161123791906124fc565b602060405180830381865afa158015611252573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112769190612817565b10156112b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ae90612ae6565b60405180910390fd5b6112bf6120ef565b61130d33308360035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661206d909392919063ffffffff16565b5f60085f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f015411156113b75761135d33611b85565b8060085f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f015f8282546113ab91906125ba565b92505081905550611456565b60405180608001604052808281526020014281526020014281526020015f151581525060085f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f820151815f015560208201518160010155604082015181600201556060820151816003015f6101000a81548160ff0219169083151502179055509050505b8060055f82825461146791906125ba565b925050819055503373ffffffffffffffffffffffffffffffffffffffff167f66d612d12bb1902ec26fd9a4991d9d58d71d0580427497d62731e7527f1e01a482426040516114b6929190612a62565b60405180910390a26114c6611b7c565b50565b6114d1611786565b6114d96117d0565b60075f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206003015f9054906101000a900460ff161560075f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206003015f6101000a81548160ff02191690831515021790555060085f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206003015f9054906101000a900460ff161560085f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206003015f6101000a81548160ff0219169083151502179055503373ffffffffffffffffffffffffffffffffffffffff167fc9b31f80e9b7707f3332f21e0d760e1d594b6b10a4115fb4077f44f0fc64235060075f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206003015f9054906101000a900460ff166040516116b39190612460565b60405180910390a26116c3611b7c565b565b6008602052805f5260405f205f91509050805f015490806001015490806002015490806003015f9054906101000a900460ff16905084565b611705611e62565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611775575f6040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161176c91906124fc565b60405180910390fd5b61177e81611f4a565b50565b60c881565b61178e61092f565b156117ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c590612b4e565b60405180910390fd5b565b600260015403611815576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180c90612bb6565b60405180910390fd5b6002600181905550565b5f60075f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090505f815f01541115611af9575f81600201544261187b9190612655565b90505f600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156118e9573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061190d9190612817565b61271060045461191d91906128aa565b6119279190612918565b90505f614e2060378361193a91906128aa565b6119449190612918565b60376119509190612655565b90505f64496cebb8008483875f015461196991906128aa565b61197391906128aa565b61197d9190612918565b90505f61198861215c565b905080821115611996578091505b8160095f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546119e291906125ba565b92505081905550428660020181905550856003015f9054906101000a900460ff168015611a0e57505f82115b15611af3575f60095f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550611aa28783600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611afd9092919063ffffffff16565b8673ffffffffffffffffffffffffffffffffffffffff167ff01da32686223933d8a18a391060918c7f11a3648639edd87ae013e2e27317438342604051611aea92919061270c565b60405180910390a25b50505050505b5050565b611b77838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8585604051602401611b30929190612bd4565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612209565b505050565b60018081905550565b5f60085f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090505f815f01541115611e5e575f816002015442611be19190612655565b90505f60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611c4e573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611c729190612817565b612710600554611c8291906128aa565b611c8c9190612918565b90505f614e20603783611c9f91906128aa565b611ca99190612918565b6037611cb59190612655565b90505f64496cebb8008483875f0154611cce91906128aa565b611cd891906128aa565b611ce29190612918565b90505f611ced61215c565b905080821115611cfb578091505b8160095f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254611d4791906125ba565b92505081905550428660020181905550856003015f9054906101000a900460ff168015611d7357505f82115b15611e58575f60095f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550611e078783600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611afd9092919063ffffffff16565b8673ffffffffffffffffffffffffffffffffffffffff167ff01da32686223933d8a18a391060918c7f11a3648639edd87ae013e2e27317438342604051611e4f92919061270c565b60405180910390a25b50505050505b5050565b611e6a6122a4565b73ffffffffffffffffffffffffffffffffffffffff16611e886109ee565b73ffffffffffffffffffffffffffffffffffffffff1614611ee757611eab6122a4565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401611ede91906124fc565b60405180910390fd5b565b611ef16122ab565b5f60025f6101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611f336122a4565b604051611f4091906124fc565b60405180910390a1565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612013611786565b600160025f6101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586120566122a4565b60405161206391906124fc565b60405180910390a1565b6120e9848573ffffffffffffffffffffffffffffffffffffffff166323b872dd8686866040516024016120a293929190612bfb565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612209565b50505050565b6201518060065461210091906125ba565b421061215a575f61210f61215c565b90505f811115612151577f727a8d51524696c2722b90c0a90c519cb5b7d81a42af42b8ebc39687476ec44b81604051612148919061230c565b60405180910390a15b42600681905550505b565b5f600454600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016121bb91906124fc565b602060405180830381865afa1580156121d6573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906121fa9190612817565b6122049190612655565b905090565b5f5f60205f8451602086015f885af180612228576040513d5f823e3d81fd5b3d92505f519150505f821461224157600181141561225c565b5f8473ffffffffffffffffffffffffffffffffffffffff163b145b1561229e57836040517f5274afe700000000000000000000000000000000000000000000000000000000815260040161229591906124fc565b60405180910390fd5b50505050565b5f33905090565b6122b361092f565b6122f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122e990612c7a565b60405180910390fd5b565b5f819050919050565b612306816122f4565b82525050565b5f60208201905061231f5f8301846122fd565b92915050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61235282612329565b9050919050565b61236281612348565b811461236c575f5ffd5b50565b5f8135905061237d81612359565b92915050565b5f6020828403121561239857612397612325565b5b5f6123a58482850161236f565b91505092915050565b5f8115159050919050565b6123c2816123ae565b82525050565b5f6080820190506123db5f8301876122fd565b6123e860208301866122fd565b6123f560408301856122fd565b61240260608301846123b9565b95945050505050565b612414816122f4565b811461241e575f5ffd5b50565b5f8135905061242f8161240b565b92915050565b5f6020828403121561244a57612449612325565b5b5f61245784828501612421565b91505092915050565b5f6020820190506124735f8301846123b9565b92915050565b5f819050919050565b5f61249c61249761249284612329565b612479565b612329565b9050919050565b5f6124ad82612482565b9050919050565b5f6124be826124a3565b9050919050565b6124ce816124b4565b82525050565b5f6020820190506124e75f8301846124c5565b92915050565b6124f681612348565b82525050565b5f60208201905061250f5f8301846124ed565b92915050565b5f82825260208201905092915050565b7f4e6f207374616b6520666f756e640000000000000000000000000000000000005f82015250565b5f612559600e83612515565b915061256482612525565b602082019050919050565b5f6020820190508181035f8301526125868161254d565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6125c4826122f4565b91506125cf836122f4565b92508282019050808211156125e7576125e661258d565b5b92915050565b7f5374616b65207374696c6c206c6f636b656400000000000000000000000000005f82015250565b5f612621601283612515565b915061262c826125ed565b602082019050919050565b5f6020820190508181035f83015261264e81612615565b9050919050565b5f61265f826122f4565b915061266a836122f4565b92508282039050818111156126825761268161258d565b5b92915050565b7f5048414e440000000000000000000000000000000000000000000000000000005f82015250565b5f6126bc600583612515565b91506126c782612688565b602082019050919050565b5f6060820190506126e55f8301856122fd565b6126f260208301846122fd565b8181036040830152612703816126b0565b90509392505050565b5f60408201905061271f5f8301856122fd565b61272c60208301846122fd565b9392505050565b7f4e6f207265776172647320746f20636c61696d000000000000000000000000005f82015250565b5f612767601383612515565b915061277282612733565b602082019050919050565b5f6020820190508181035f8301526127948161275b565b9050919050565b7f416d6f756e74206d757374206265203e203000000000000000000000000000005f82015250565b5f6127cf601283612515565b91506127da8261279b565b602082019050919050565b5f6020820190508181035f8301526127fc816127c3565b9050919050565b5f815190506128118161240b565b92915050565b5f6020828403121561282c5761282b612325565b5b5f61283984828501612803565b91505092915050565b7f496e73756666696369656e742062616c616e63650000000000000000000000005f82015250565b5f612876601483612515565b915061288182612842565b602082019050919050565b5f6020820190508181035f8301526128a38161286a565b9050919050565b5f6128b4826122f4565b91506128bf836122f4565b92508282026128cd816122f4565b915082820484148315176128e4576128e361258d565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f612922826122f4565b915061292d836122f4565b92508261293d5761293c6128eb565b5b828204905092915050565b7f45786365656473206d61782077616c6c6574207374616b65206c696d697400005f82015250565b5f61297c601e83612515565b915061298782612948565b602082019050919050565b5f6020820190508181035f8301526129a981612970565b9050919050565b7f4e6f204c50207374616b6520666f756e640000000000000000000000000000005f82015250565b5f6129e4601183612515565b91506129ef826129b0565b602082019050919050565b5f6020820190508181035f830152612a11816129d8565b9050919050565b7f4c500000000000000000000000000000000000000000000000000000000000005f82015250565b5f612a4c600283612515565b9150612a5782612a18565b602082019050919050565b5f606082019050612a755f8301856122fd565b612a8260208301846122fd565b8181036040830152612a9381612a40565b90509392505050565b7f496e73756666696369656e74204c502062616c616e63650000000000000000005f82015250565b5f612ad0601783612515565b9150612adb82612a9c565b602082019050919050565b5f6020820190508181035f830152612afd81612ac4565b9050919050565b7f5061757361626c653a20706175736564000000000000000000000000000000005f82015250565b5f612b38601083612515565b9150612b4382612b04565b602082019050919050565b5f6020820190508181035f830152612b6581612b2c565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f612ba0601f83612515565b9150612bab82612b6c565b602082019050919050565b5f6020820190508181035f830152612bcd81612b94565b9050919050565b5f604082019050612be75f8301856124ed565b612bf460208301846122fd565b9392505050565b5f606082019050612c0e5f8301866124ed565b612c1b60208301856124ed565b612c2860408301846122fd565b949350505050565b7f5061757361626c653a206e6f74207061757365640000000000000000000000005f82015250565b5f612c64601483612515565b9150612c6f82612c30565b602082019050919050565b5f6020820190508181035f830152612c9181612c58565b905091905056fea2646970667358221220f7f20e1185c26dc1f217f9f177c2745b7b1fa1f024539aaaf09b3df531814b8864736f6c634300081e0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000011157da1fc6dcfd58b50ed79082183b2c617624500000000000000000000000029b2b1450dfe8d856fa42250437b1e827435f82e
-----Decoded View---------------
Arg [0] : _paperHandsToken (address): 0x11157Da1fC6dCfd58b50ed79082183b2c6176245
Arg [1] : _lpToken (address): 0x29b2b1450dfe8d856fA42250437B1e827435f82E
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000011157da1fc6dcfd58b50ed79082183b2c6176245
Arg [1] : 00000000000000000000000029b2b1450dfe8d856fa42250437b1e827435f82e
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
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.