ETH Price: $3,717.41 (+4.36%)

Token

ERC-20: SPSPParaSwapPool4 (SPSP_PP4)
 

Overview

Max Total Supply

1,256,853.29357860139789994 SPSP_PP4

Holders

170

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
SPSP

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
default evmVersion
File 1 of 12 : SPSP.sol
pragma solidity 0.8.6;

import "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol";
import "openzeppelin-solidity/contracts/token/ERC20/extensions/draft-ERC20Permit.sol";
import "openzeppelin-solidity/contracts/access/Ownable.sol";
import "openzeppelin-solidity/contracts/security/Pausable.sol";

contract SPSP is ERC20Permit, Ownable, Pausable {

    enum WITHDRAW_STATUS { UNUSED, LOCKED, RELEASED, REENTERED }

    IERC20 public immutable psp;

    uint256 public timeLockBlocks;

    uint256 public immutable maxTimeLockBlocks;

    uint256 public pspsLocked;

    struct WithdrawalRequest {
        uint256 amountPSP;
        uint256 releaseBlockNumber;
        WITHDRAW_STATUS status;
    }

    mapping(address => mapping(int256 => WithdrawalRequest)) public userVsWithdrawals;

    mapping(address => int256) public userVsNextID;

    event TimeLockChanged(uint256 oldTimeLock, uint256 newTimeLock);

    event Unstaked(int256 indexed id, address indexed user, uint256 amount);

    event Withdraw(int256 indexed id, address indexed user, uint256 amount);

    event Entered(address indexed user, uint256 amount);

    event Reentered(int256 indexed id, address indexed user, uint256 amount);

    constructor(
        string memory name,
        string memory symbol,
        IERC20 _psp,
        uint256 _timeLockBlocks,
        uint256 _maxTimeLockBlocks
    )
        ERC20Permit(name)
        ERC20(name, symbol)
        public
    {
        require(_timeLockBlocks <= _maxTimeLockBlocks, "Invalid timelock");
        psp = _psp;
        timeLockBlocks = _timeLockBlocks;
        maxTimeLockBlocks = _maxTimeLockBlocks;
    }

    function pause() external onlyOwner {
        _pause();
    }

    function unpause() external onlyOwner {
        _unpause();
    }

    function changeTimeLock(uint256 newTimeLockBlocks) external onlyOwner {
        require(newTimeLockBlocks <= maxTimeLockBlocks, "Invalid timelock");

        emit TimeLockChanged(timeLockBlocks, newTimeLockBlocks);

        timeLockBlocks = newTimeLockBlocks;
    }

    function enterWithPermit(uint256 _pspAmount, bytes calldata permit) external {
        _permit(permit);
        enter(_pspAmount);
    }

    // Unstake PSP. PSP tokens will be locked for the timeLockBlocks amount of time.
    function leave(uint256 _sPSPAmount) external {
        int256 id = userVsNextID[msg.sender]++;

        uint256 totalSPSP = totalSupply();
        uint256 pspBalanceAvailable = psp.balanceOf(address(this)) - pspsLocked;
        uint256 pspAmount = (_sPSPAmount * pspBalanceAvailable) / totalSPSP;
        _burn(msg.sender, _sPSPAmount);

        WithdrawalRequest storage request = userVsWithdrawals[msg.sender][id];

        request.amountPSP = pspAmount;
        request.releaseBlockNumber = block.number + timeLockBlocks;
        request.status = WITHDRAW_STATUS.LOCKED;

        pspsLocked += pspAmount;

        emit Unstaked(id, msg.sender, pspAmount);
    }

    // returns the total amount of PSP an address has in the contract including rewards earned
    function PSPBalance(address _account) external view returns (uint256 pspAmount_) {
        uint256 sPSPAmount = balanceOf(_account);
        if (sPSPAmount == 0) {
            return 0;
        }
        uint256 totalSPSP = totalSupply();
        uint256 pspBalanceAvailable = psp.balanceOf(address(this)) - pspsLocked;
        pspAmount_ = sPSPAmount * pspBalanceAvailable / totalSPSP;
    }

    //returns how much PSP someone gets for burning sPSP
    function PSPForSPSP(uint256 _sPSPAmount) external view returns (uint256 pspAmount_) {
        uint256 totalSPSP = totalSupply();
        if (totalSPSP == 0) {
            return 0;
        }
        uint256 pspBalanceAvailable = psp.balanceOf(address(this))- pspsLocked;
        pspAmount_ = (_sPSPAmount * pspBalanceAvailable) / totalSPSP;
    }

    //returns how much sPSP someone gets for depositing PSP
    function sPSPForPSP(uint256 _pspAmount) external view returns (uint256 sPSPAmount_) {
        uint256 totalPSPAvailable = psp.balanceOf(address(this)) - pspsLocked;
        uint256 totalSPSP = totalSupply();
        if (totalSPSP == 0 || totalPSPAvailable == 0) {
            sPSPAmount_ = _pspAmount;
        }
        else {
            sPSPAmount_ = (_pspAmount * totalSPSP) / totalPSPAvailable;
        }
    }

    function withdrawMultiple(int256[] calldata ids) external {
        for (uint256 i = 0; i < ids.length; i++) {
            withdraw(ids[i]);
        }
    }

    function reenterMultiple(int256[] calldata ids) external {
        for (uint256 i = 0; i < ids.length; i++) {
            reenter(ids[i]);
        }
    }

    // Stake PSP. Earn some Staked PSP.
    function enter(uint256 _pspAmount) public whenNotPaused {
        uint256 pspBalanceAvailable = psp.balanceOf(address(this)) - pspsLocked;
        uint256 totalSPSP = totalSupply();
        if (totalSPSP == 0 || pspBalanceAvailable == 0) {
            _mint(msg.sender, _pspAmount);
        } else {
            uint256 sPSPAmount = (_pspAmount * totalSPSP) / pspBalanceAvailable;
            _mint(msg.sender, sPSPAmount);
        }
        psp.transferFrom(msg.sender, address(this), _pspAmount);

        emit Entered(msg.sender, _pspAmount);
    }

    //Withdraw unstaked PSP tokens in previous step which are unlocked as well after time lock has expired
    function withdraw(int256 id) public {
        require(id >= 0, "Invalid id");

        WithdrawalRequest storage request = userVsWithdrawals[msg.sender][id];
        require(
            request.status == WITHDRAW_STATUS.LOCKED &&
            request.releaseBlockNumber <= block.number,
            "Cannot withdraw"
        );

        request.status = WITHDRAW_STATUS.RELEASED;

        uint256 _pspAmount = request.amountPSP;

        pspsLocked -= _pspAmount;
        psp.transfer(msg.sender, _pspAmount);

        emit Withdraw(id, msg.sender, _pspAmount);
    }

    function reenter(int256 id) public whenNotPaused {
        require(id >= 0, "Invalid id");

        WithdrawalRequest storage request = userVsWithdrawals[msg.sender][id];
        require(
            request.status == WITHDRAW_STATUS.LOCKED,
            "Cannot reenter"
        );

        request.status = WITHDRAW_STATUS.REENTERED;

        uint256 _pspAmount = request.amountPSP;

        uint256 pspBalanceAvailable = psp.balanceOf(address(this)) - pspsLocked;
        uint256 totalSPSP = totalSupply();

        if (totalSPSP == 0 || pspBalanceAvailable == 0) {
            _mint(msg.sender, _pspAmount);
        } else {
            uint256 sPSPAmount = (_pspAmount * totalSPSP) / pspBalanceAvailable;
            _mint(msg.sender, sPSPAmount);
        }

        pspsLocked -= _pspAmount;

        emit Reentered(id, msg.sender, _pspAmount);
    }

    // This is for use off chain, it finds any locked IDs in the specified range
    // If start is negative, starts looking that many entries back from the end
    function findLockedIDs(address user, int256 start, uint16 countToCheck)
        external view returns (int256[] memory ids)
    {
        int256 nextID = userVsNextID[user];

        if (start >= nextID) return ids;
        if (start < 0) start += nextID;
        int256 end = start + int256(uint256(countToCheck));
        if (end <= 0) return ids;
        if (end > nextID) end = nextID;
        if (start < 0) start = 0;

        mapping(int256 => WithdrawalRequest) storage withdrawals = userVsWithdrawals[user];

        // Don't want to allocate anything in memory after this point
        // (or the touched memory will grow very large!)
        ids = new int256[](type(uint16).max);
        uint256 length = 0;

        // Nothing in here can overflow so disable the checks for the loop
        unchecked {
            for (int256 id = start; id < end; ++id) {
                if (withdrawals[id].status == WITHDRAW_STATUS.LOCKED) {
                    ids[length++] = id;
                }
            }
        }

        // Need to force the array length to the correct value using assembly
        assembly { mstore(ids, length) }
    }

    function _permit(
        bytes memory permit
    )
        private
    {
        (bool success,) = address(psp).call(abi.encodePacked(IERC20Permit.permit.selector, permit));
        require(success, "Permit failed");

    }

}

File 2 of 12 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
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);
}

File 3 of 12 : draft-ERC20Permit.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./draft-IERC20Permit.sol";
import "../ERC20.sol";
import "../../../utils/cryptography/draft-EIP712.sol";
import "../../../utils/cryptography/ECDSA.sol";
import "../../../utils/Counters.sol";

/**
 * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * _Available since v3.4._
 */
abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 {
    using Counters for Counters.Counter;

    mapping(address => Counters.Counter) private _nonces;

    // solhint-disable-next-line var-name-mixedcase
    bytes32 private immutable _PERMIT_TYPEHASH =
        keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");

    /**
     * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`.
     *
     * It's a good idea to use the same `name` that is defined as the ERC20 token name.
     */
    constructor(string memory name) EIP712(name, "1") {}

    /**
     * @dev See {IERC20Permit-permit}.
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public virtual override {
        require(block.timestamp <= deadline, "ERC20Permit: expired deadline");

        bytes32 structHash = keccak256(abi.encode(_PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline));

        bytes32 hash = _hashTypedDataV4(structHash);

        address signer = ECDSA.recover(hash, v, r, s);
        require(signer == owner, "ERC20Permit: invalid signature");

        _approve(owner, spender, value);
    }

    /**
     * @dev See {IERC20Permit-nonces}.
     */
    function nonces(address owner) public view virtual override returns (uint256) {
        return _nonces[owner].current();
    }

    /**
     * @dev See {IERC20Permit-DOMAIN_SEPARATOR}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view override returns (bytes32) {
        return _domainSeparatorV4();
    }

    /**
     * @dev "Consume a nonce": return the current value and increment.
     *
     * _Available since v4.1._
     */
    function _useNonce(address owner) internal virtual returns (uint256 current) {
        Counters.Counter storage nonce = _nonces[owner];
        current = nonce.current();
        nonce.increment();
    }
}

File 4 of 12 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _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 5 of 12 : Pausable.sol
// SPDX-License-Identifier: MIT

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 Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        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());
    }
}

File 6 of 12 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 7 of 12 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, 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}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), 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}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - 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) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][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) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * 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:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev 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 {}
}

File 8 of 12 : draft-EIP712.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./ECDSA.sol";

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712 {
    /* solhint-disable var-name-mixedcase */
    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
    uint256 private immutable _CACHED_CHAIN_ID;

    bytes32 private immutable _HASHED_NAME;
    bytes32 private immutable _HASHED_VERSION;
    bytes32 private immutable _TYPE_HASH;

    /* solhint-enable var-name-mixedcase */

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        bytes32 typeHash = keccak256(
            "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
        );
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
        _CACHED_CHAIN_ID = block.chainid;
        _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);
        _TYPE_HASH = typeHash;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (block.chainid == _CACHED_CHAIN_ID) {
            return _CACHED_DOMAIN_SEPARATOR;
        } else {
            return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION);
        }
    }

    function _buildDomainSeparator(
        bytes32 typeHash,
        bytes32 nameHash,
        bytes32 versionHash
    ) private view returns (bytes32) {
        return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }
}

File 9 of 12 : ECDSA.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return recover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return recover(hash, r, vs);
        } else {
            revert("ECDSA: invalid signature length");
        }
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        bytes32 s;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 27)
        }
        return recover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`, `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        require(
            uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0,
            "ECDSA: invalid signature 's' value"
        );
        require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value");

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        require(signer != address(0), "ECDSA: invalid signature");

        return signer;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 10 of 12 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 11 of 12 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 12 of 12 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 1000000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"contract IERC20","name":"_psp","type":"address"},{"internalType":"uint256","name":"_timeLockBlocks","type":"uint256"},{"internalType":"uint256","name":"_maxTimeLockBlocks","type":"uint256"}],"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":"Entered","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":"int256","name":"id","type":"int256"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Reentered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldTimeLock","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newTimeLock","type":"uint256"}],"name":"TimeLockChanged","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"int256","name":"id","type":"int256"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Unstaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"int256","name":"id","type":"int256"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"PSPBalance","outputs":[{"internalType":"uint256","name":"pspAmount_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_sPSPAmount","type":"uint256"}],"name":"PSPForSPSP","outputs":[{"internalType":"uint256","name":"pspAmount_","type":"uint256"}],"stateMutability":"view","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":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"newTimeLockBlocks","type":"uint256"}],"name":"changeTimeLock","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":"_pspAmount","type":"uint256"}],"name":"enter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pspAmount","type":"uint256"},{"internalType":"bytes","name":"permit","type":"bytes"}],"name":"enterWithPermit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"int256","name":"start","type":"int256"},{"internalType":"uint16","name":"countToCheck","type":"uint16"}],"name":"findLockedIDs","outputs":[{"internalType":"int256[]","name":"ids","type":"int256[]"}],"stateMutability":"view","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":[{"internalType":"uint256","name":"_sPSPAmount","type":"uint256"}],"name":"leave","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxTimeLockBlocks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","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":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"psp","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pspsLocked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int256","name":"id","type":"int256"}],"name":"reenter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int256[]","name":"ids","type":"int256[]"}],"name":"reenterMultiple","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pspAmount","type":"uint256"}],"name":"sPSPForPSP","outputs":[{"internalType":"uint256","name":"sPSPAmount_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timeLockBlocks","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":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","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":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userVsNextID","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"int256","name":"","type":"int256"}],"name":"userVsWithdrawals","outputs":[{"internalType":"uint256","name":"amountPSP","type":"uint256"},{"internalType":"uint256","name":"releaseBlockNumber","type":"uint256"},{"internalType":"enum SPSP.WITHDRAW_STATUS","name":"status","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int256","name":"id","type":"int256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int256[]","name":"ids","type":"int256[]"}],"name":"withdrawMultiple","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101806040527f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9610120523480156200003757600080fd5b5060405162003967380380620039678339810160408190526200005a9162000367565b8480604051806040016040528060018152602001603160f81b81525087878160039080519060200190620000909291906200020a565b508051620000a69060049060208401906200020a565b5050825160209384012082519284019290922060c083815260e08290524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818a0181905281830198909852606081019590955260808086019390935230858301528051808603909201825293909201909252805194019390932090925261010052506200013f905033620001b8565b6006805460ff60a01b1916905580821115620001945760405162461bcd60e51b815260206004820152601060248201526f496e76616c69642074696d656c6f636b60801b604482015260640160405180910390fd5b60609290921b6001600160601b031916610140526007556101605250620004589050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620002189062000405565b90600052602060002090601f0160209004810192826200023c576000855562000287565b82601f106200025757805160ff191683800117855562000287565b8280016001018555821562000287579182015b82811115620002875782518255916020019190600101906200026a565b506200029592915062000299565b5090565b5b808211156200029557600081556001016200029a565b600082601f830112620002c257600080fd5b81516001600160401b0380821115620002df57620002df62000442565b604051601f8301601f19908116603f011681019082821181831017156200030a576200030a62000442565b816040528381526020925086838588010111156200032757600080fd5b600091505b838210156200034b57858201830151818301840152908201906200032c565b838211156200035d5760008385830101525b9695505050505050565b600080600080600060a086880312156200038057600080fd5b85516001600160401b03808211156200039857600080fd5b620003a689838a01620002b0565b96506020880151915080821115620003bd57600080fd5b50620003cc88828901620002b0565b604088015190955090506001600160a01b0381168114620003ec57600080fd5b6060870151608090970151959894975095949392505050565b600181811c908216806200041a57607f821691505b602082108114156200043c57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160a05160c05160e05161010051610120516101405160601c61016051613460620005076000396000818161051701526112a601526000818161053e01528181610ad401528181610d7d01528181610f22015281816110ce01528181611505015281816116f00152818161193701528181611a490152612c4501526000611bce0152600061234d0152600061239c01526000612377015260006122fb0152600061232401526134606000f3fe608060405234801561001057600080fd5b50600436106102925760003560e01c80637ad28c5111610160578063a9059cbb116100d8578063d74fbb181161008c578063e309701711610071578063e309701714610618578063ec62d4d514610621578063f2fde38b1461063457600080fd5b8063d74fbb1814610586578063dd62ed3e146105d257600080fd5b8063b3fda2b3116100bd578063b3fda2b314610539578063b69871ef14610560578063d505accf1461057357600080fd5b8063a9059cbb146104ff578063b2350e6e1461051257600080fd5b80638da5cb5b1161012f57806395d89b411161011457806395d89b41146104d1578063a457c2d7146104d9578063a59f3e0c146104ec57600080fd5b80638da5cb5b1461047f57806391354e91146104be57600080fd5b80637ad28c511461043e5780637e62eab8146104515780637ecebe00146104645780638456cb591461047757600080fd5b8063395093511161020e57806360b743fb116101c257806370310924116101a757806370310924146103ed57806370a0823114610400578063715018a61461043657600080fd5b806360b743fb146103c757806367dfd4c9146103da57600080fd5b80633f4ba83a116101f35780633f4ba83a146103895780635644c179146103915780635c975abb146103a457600080fd5b806339509351146103565780633b066c4a1461036957600080fd5b806318160ddd11610265578063313ce5671161024a578063313ce567146103365780633619ab3b146103455780633644e5151461034e57600080fd5b806318160ddd1461031b57806323b872dd1461032357600080fd5b806306fdde0314610297578063095ea7b3146102b557806309d06124146102d8578063138504c4146102ed575b600080fd5b61029f610647565b6040516102ac91906130fd565b60405180910390f35b6102c86102c3366004612e9f565b6106d9565b60405190151581526020016102ac565b6102eb6102e6366004612f10565b6106ef565b005b61030d6102fb366004612da2565b600a6020526000908152604090205481565b6040519081526020016102ac565b60025461030d565b6102c8610331366004612df0565b610732565b604051601281526020016102ac565b61030d60085481565b61030d61081f565b6102c8610364366004612e9f565b61082e565b61037c610377366004612ec9565b610877565b6040516102ac91906130b9565b6102eb6109be565b61030d61039f366004612da2565b610a49565b60065474010000000000000000000000000000000000000000900460ff166102c8565b6102eb6103d5366004612fa7565b610b78565b6102eb6103e8366004612fa7565b610ea9565b61030d6103fb366004612fa7565b611083565b61030d61040e366004612da2565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b6102eb611198565b6102eb61044c366004612fa7565b611223565b6102eb61045f366004612fa7565b61136f565b61030d610472366004612da2565b6115d4565b6102eb611601565b60065473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102ac565b61030d6104cc366004612fa7565b61168a565b61029f611781565b6102c86104e7366004612e9f565b611790565b6102eb6104fa366004612fa7565b611868565b6102c861050d366004612e9f565b611b15565b61030d7f000000000000000000000000000000000000000000000000000000000000000081565b6104997f000000000000000000000000000000000000000000000000000000000000000081565b6102eb61056e366004612f10565b611b22565b6102eb610581366004612e2c565b611b60565b6105c3610594366004612e9f565b600960209081526000928352604080842090915290825290208054600182015460029092015490919060ff1683565b6040516102ac9392919061314e565b61030d6105e0366004612dbd565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b61030d60075481565b6102eb61062f366004612fd9565b611d1f565b6102eb610642366004612da2565b611d67565b606060038054610656906132e8565b80601f0160208091040260200160405190810160405280929190818152602001828054610682906132e8565b80156106cf5780601f106106a4576101008083540402835291602001916106cf565b820191906000526020600020905b8154815290600101906020018083116106b257829003601f168201915b5050505050905090565b60006106e6338484611e97565b50600192915050565b60005b8181101561072d5761071b83838381811061070f5761070f6133fb565b90506020020135610b78565b806107258161336f565b9150506106f2565b505050565b600061073f848484612042565b73ffffffffffffffffffffffffffffffffffffffff8416600090815260016020908152604080832033845290915290205482811015610805576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e636500000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6108128533858403611e97565b60019150505b9392505050565b60006108296122f7565b905090565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915281205490916106e6918590610872908690613215565b611e97565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600a60205260409020546060908084126108ad5750610818565b60008412156108c3576108c081856131a1565b93505b60006108d361ffff8516866131a1565b9050600081136108e4575050610818565b818113156108ef5750805b60008512156108fd57600094505b73ffffffffffffffffffffffffffffffffffffffff861660009081526009602052604090819020815161ffff80825262200000820190935290918160200160208202803683370190505093506000865b838112156109b157600160008281526020859052604090206002015460ff16600381111561097d5761097d6133cc565b14156109a9578086838060010194508151811061099c5761099c6133fb565b6020026020010181815250505b60010161094d565b5084525050509392505050565b60065473ffffffffffffffffffffffffffffffffffffffff163314610a3f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fc565b610a476123ea565b565b73ffffffffffffffffffffffffffffffffffffffff811660009081526020819052604081205480610a7d5750600092915050565b6000610a8860025490565b6008546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015291925060009173ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b158015610b1657600080fd5b505afa158015610b2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b4e9190612fc0565b610b5891906132a5565b905081610b658285613268565b610b6f919061322d565b95945050505050565b60065474010000000000000000000000000000000000000000900460ff1615610bfd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016107fc565b6000811215610c68576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f496e76616c69642069640000000000000000000000000000000000000000000060448201526064016107fc565b33600090815260096020908152604080832084845290915290206001600282015460ff166003811115610c9d57610c9d6133cc565b14610d04576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f43616e6e6f74207265656e74657200000000000000000000000000000000000060448201526064016107fc565b6002810180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600317905580546008546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000919073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b158015610dbf57600080fd5b505afa158015610dd3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610df79190612fc0565b610e0191906132a5565b90506000610e0e60025490565b9050801580610e1b575081155b15610e2f57610e2a33846124e3565b610e54565b600082610e3c8386613268565b610e46919061322d565b9050610e5233826124e3565b505b8260086000828254610e6691906132a5565b9091555050604051838152339086907faa0a11cc9e2ba6b8e1890c5ddbe11046bf1dedbe18991a83fbe23e4de011b7239060200160405180910390a35050505050565b336000908152600a6020526040812080549082610ec583613336565b9190505590506000610ed660025490565b6008546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015291925060009173ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b158015610f6457600080fd5b505afa158015610f78573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9c9190612fc0565b610fa691906132a5565b9050600082610fb58387613268565b610fbf919061322d565b9050610fcb3386612604565b3360009081526009602090815260408083208784529091529020818155600754610ff59043613215565b6001808301919091556002820180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001682800217905550816008600082825461103f9190613215565b9091555050604051828152339086907f929558a34f2f54090f1f35b3429c85adb8ff43d5b8764f034e46157f0043fb759060200160405180910390a3505050505050565b6008546040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600091829173ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b15801561111057600080fd5b505afa158015611124573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111489190612fc0565b61115291906132a5565b9050600061115f60025490565b905080158061116c575081155b1561117957839250611191565b816111848286613268565b61118e919061322d565b92505b5050919050565b60065473ffffffffffffffffffffffffffffffffffffffff163314611219576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fc565b610a4760006127f1565b60065473ffffffffffffffffffffffffffffffffffffffff1633146112a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fc565b7f000000000000000000000000000000000000000000000000000000000000000081111561132e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f496e76616c69642074696d656c6f636b0000000000000000000000000000000060448201526064016107fc565b60075460408051918252602082018390527f8dce199a9d83266352e70738b2dda1e7299a0ce43f7e5b9161c7ad6d571d47e9910160405180910390a1600755565b60008112156113da576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f496e76616c69642069640000000000000000000000000000000000000000000060448201526064016107fc565b33600090815260096020908152604080832084845290915290206001600282015460ff16600381111561140f5761140f6133cc565b148015611420575043816001015411155b611486576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f43616e6e6f74207769746864726177000000000000000000000000000000000060448201526064016107fc565b600281810180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690911790558054600880548291906000906114cb9084906132a5565b90915550506040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018290527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063a9059cbb90604401602060405180830381600087803b15801561155e57600080fd5b505af1158015611572573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115969190612f85565b50604051818152339084907f89637e85bd55311d863f01ccfbe86b07a3688fd60d241ca568b1d672e38b87eb906020015b60405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600560205260408120545b92915050565b60065473ffffffffffffffffffffffffffffffffffffffff163314611682576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fc565b610a47612868565b60008061169660025490565b9050806116a65750600092915050565b6008546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000919073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b15801561173257600080fd5b505afa158015611746573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061176a9190612fc0565b61177491906132a5565b9050816111848286613268565b606060048054610656906132e8565b33600090815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8616845290915281205482811015611851576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016107fc565b61185e3385858403611e97565b5060019392505050565b60065474010000000000000000000000000000000000000000900460ff16156118ed576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016107fc565b6008546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000919073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b15801561197957600080fd5b505afa15801561198d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119b19190612fc0565b6119bb91906132a5565b905060006119c860025490565b90508015806119d5575081155b156119e9576119e433846124e3565b611a0e565b6000826119f68386613268565b611a00919061322d565b9050611a0c33826124e3565b505b6040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018490527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906323b872dd90606401602060405180830381600087803b158015611aa257600080fd5b505af1158015611ab6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ada9190612f85565b5060405183815233907fdb4b459b9af0810582f21ec0ec043ee9c3f91ea26a3d3a675dea0e9e5e099f059060200160405180910390a2505050565b60006106e6338484612042565b60005b8181101561072d57611b4e838383818110611b4257611b426133fb565b9050602002013561136f565b80611b588161336f565b915050611b25565b83421115611bca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e6500000060448201526064016107fc565b60007f0000000000000000000000000000000000000000000000000000000000000000888888611bf98c612954565b60408051602081019690965273ffffffffffffffffffffffffffffffffffffffff94851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000611c6182612989565b90506000611c71828787876129f2565b90508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611d08576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e6174757265000060448201526064016107fc565b611d138a8a8a611e97565b50505050505050505050565b611d5e82828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612c4192505050565b61072d83611868565b60065473ffffffffffffffffffffffffffffffffffffffff163314611de8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fc565b73ffffffffffffffffffffffffffffffffffffffff8116611e8b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016107fc565b611e94816127f1565b50565b73ffffffffffffffffffffffffffffffffffffffff8316611f39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016107fc565b73ffffffffffffffffffffffffffffffffffffffff8216611fdc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016107fc565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591016115c7565b73ffffffffffffffffffffffffffffffffffffffff83166120e5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016107fc565b73ffffffffffffffffffffffffffffffffffffffff8216612188576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016107fc565b73ffffffffffffffffffffffffffffffffffffffff83166000908152602081905260409020548181101561223e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016107fc565b73ffffffffffffffffffffffffffffffffffffffff808516600090815260208190526040808220858503905591851681529081208054849290612282908490613215565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516122e891815260200190565b60405180910390a35b50505050565b60007f000000000000000000000000000000000000000000000000000000000000000046141561234657507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b60065474010000000000000000000000000000000000000000900460ff1661246e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016107fc565b600680547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b73ffffffffffffffffffffffffffffffffffffffff8216612560576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016107fc565b80600260008282546125729190613215565b909155505073ffffffffffffffffffffffffffffffffffffffff8216600090815260208190526040812080548392906125ac908490613215565b909155505060405181815273ffffffffffffffffffffffffffffffffffffffff8316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35b5050565b73ffffffffffffffffffffffffffffffffffffffff82166126a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016107fc565b73ffffffffffffffffffffffffffffffffffffffff82166000908152602081905260409020548181101561275d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f636500000000000000000000000000000000000000000000000000000000000060648201526084016107fc565b73ffffffffffffffffffffffffffffffffffffffff831660009081526020819052604081208383039055600280548492906127999084906132a5565b909155505060405182815260009073ffffffffffffffffffffffffffffffffffffffff8516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6006805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60065474010000000000000000000000000000000000000000900460ff16156128ed576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016107fc565b600680547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586124b93390565b73ffffffffffffffffffffffffffffffffffffffff811660009081526005602052604090208054600181018255905b50919050565b60006115fb6129966122f7565b836040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115612aa4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016107fc565b8360ff16601b1480612ab957508360ff16601c145b612b45576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016107fc565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015612b99573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff8116610b6f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016107fc565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d505accf60e01b83604051602001612c94929190613055565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815290829052612ccc9161309d565b6000604051808303816000865af19150503d8060008114612d09576040519150601f19603f3d011682016040523d82523d6000602084013e612d0e565b606091505b5050905080612600576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f5065726d6974206661696c65640000000000000000000000000000000000000060448201526064016107fc565b803573ffffffffffffffffffffffffffffffffffffffff81168114612d9d57600080fd5b919050565b600060208284031215612db457600080fd5b61081882612d79565b60008060408385031215612dd057600080fd5b612dd983612d79565b9150612de760208401612d79565b90509250929050565b600080600060608486031215612e0557600080fd5b612e0e84612d79565b9250612e1c60208501612d79565b9150604084013590509250925092565b600080600080600080600060e0888a031215612e4757600080fd5b612e5088612d79565b9650612e5e60208901612d79565b95506040880135945060608801359350608088013560ff81168114612e8257600080fd5b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215612eb257600080fd5b612ebb83612d79565b946020939093013593505050565b600080600060608486031215612ede57600080fd5b612ee784612d79565b925060208401359150604084013561ffff81168114612f0557600080fd5b809150509250925092565b60008060208385031215612f2357600080fd5b823567ffffffffffffffff80821115612f3b57600080fd5b818501915085601f830112612f4f57600080fd5b813581811115612f5e57600080fd5b8660208260051b8501011115612f7357600080fd5b60209290920196919550909350505050565b600060208284031215612f9757600080fd5b8151801515811461081857600080fd5b600060208284031215612fb957600080fd5b5035919050565b600060208284031215612fd257600080fd5b5051919050565b600080600060408486031215612fee57600080fd5b83359250602084013567ffffffffffffffff8082111561300d57600080fd5b818601915086601f83011261302157600080fd5b81358181111561303057600080fd5b87602082850101111561304257600080fd5b6020830194508093505050509250925092565b7fffffffff00000000000000000000000000000000000000000000000000000000831681526000825161308f8160048501602087016132bc565b919091016004019392505050565b600082516130af8184602087016132bc565b9190910192915050565b6020808252825182820181905260009190848201906040850190845b818110156130f1578351835292840192918401916001016130d5565b50909695505050505050565b602081526000825180602084015261311c8160408501602087016132bc565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b838152602081018390526060810160048310613193577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b826040830152949350505050565b6000808212827f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038413811516156131db576131db61339d565b827f800000000000000000000000000000000000000000000000000000000000000003841281161561320f5761320f61339d565b50500190565b600082198211156132285761322861339d565b500190565b600082613263577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156132a0576132a061339d565b500290565b6000828210156132b7576132b761339d565b500390565b60005b838110156132d75781810151838201526020016132bf565b838111156122f15750506000910152565b600181811c908216806132fc57607f821691505b60208210811415612983577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156133685761336861339d565b5060010190565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613368576133685b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea2646970667358221220547ce11e1903988d9519478f7f14a10039450b7cf7f2fab4b3176bb366185a5a64736f6c6343000806003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000cafe001067cdef266afb7eb5a286dcfd277f3de500000000000000000000000000000000000000000000000000000000000030360000000000000000000000000000000000000000000000000000000000112f8e0000000000000000000000000000000000000000000000000000000000000011535053505061726153776170506f6f6c340000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008535053505f505034000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102925760003560e01c80637ad28c5111610160578063a9059cbb116100d8578063d74fbb181161008c578063e309701711610071578063e309701714610618578063ec62d4d514610621578063f2fde38b1461063457600080fd5b8063d74fbb1814610586578063dd62ed3e146105d257600080fd5b8063b3fda2b3116100bd578063b3fda2b314610539578063b69871ef14610560578063d505accf1461057357600080fd5b8063a9059cbb146104ff578063b2350e6e1461051257600080fd5b80638da5cb5b1161012f57806395d89b411161011457806395d89b41146104d1578063a457c2d7146104d9578063a59f3e0c146104ec57600080fd5b80638da5cb5b1461047f57806391354e91146104be57600080fd5b80637ad28c511461043e5780637e62eab8146104515780637ecebe00146104645780638456cb591461047757600080fd5b8063395093511161020e57806360b743fb116101c257806370310924116101a757806370310924146103ed57806370a0823114610400578063715018a61461043657600080fd5b806360b743fb146103c757806367dfd4c9146103da57600080fd5b80633f4ba83a116101f35780633f4ba83a146103895780635644c179146103915780635c975abb146103a457600080fd5b806339509351146103565780633b066c4a1461036957600080fd5b806318160ddd11610265578063313ce5671161024a578063313ce567146103365780633619ab3b146103455780633644e5151461034e57600080fd5b806318160ddd1461031b57806323b872dd1461032357600080fd5b806306fdde0314610297578063095ea7b3146102b557806309d06124146102d8578063138504c4146102ed575b600080fd5b61029f610647565b6040516102ac91906130fd565b60405180910390f35b6102c86102c3366004612e9f565b6106d9565b60405190151581526020016102ac565b6102eb6102e6366004612f10565b6106ef565b005b61030d6102fb366004612da2565b600a6020526000908152604090205481565b6040519081526020016102ac565b60025461030d565b6102c8610331366004612df0565b610732565b604051601281526020016102ac565b61030d60085481565b61030d61081f565b6102c8610364366004612e9f565b61082e565b61037c610377366004612ec9565b610877565b6040516102ac91906130b9565b6102eb6109be565b61030d61039f366004612da2565b610a49565b60065474010000000000000000000000000000000000000000900460ff166102c8565b6102eb6103d5366004612fa7565b610b78565b6102eb6103e8366004612fa7565b610ea9565b61030d6103fb366004612fa7565b611083565b61030d61040e366004612da2565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b6102eb611198565b6102eb61044c366004612fa7565b611223565b6102eb61045f366004612fa7565b61136f565b61030d610472366004612da2565b6115d4565b6102eb611601565b60065473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102ac565b61030d6104cc366004612fa7565b61168a565b61029f611781565b6102c86104e7366004612e9f565b611790565b6102eb6104fa366004612fa7565b611868565b6102c861050d366004612e9f565b611b15565b61030d7f0000000000000000000000000000000000000000000000000000000000112f8e81565b6104997f000000000000000000000000cafe001067cdef266afb7eb5a286dcfd277f3de581565b6102eb61056e366004612f10565b611b22565b6102eb610581366004612e2c565b611b60565b6105c3610594366004612e9f565b600960209081526000928352604080842090915290825290208054600182015460029092015490919060ff1683565b6040516102ac9392919061314e565b61030d6105e0366004612dbd565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b61030d60075481565b6102eb61062f366004612fd9565b611d1f565b6102eb610642366004612da2565b611d67565b606060038054610656906132e8565b80601f0160208091040260200160405190810160405280929190818152602001828054610682906132e8565b80156106cf5780601f106106a4576101008083540402835291602001916106cf565b820191906000526020600020905b8154815290600101906020018083116106b257829003601f168201915b5050505050905090565b60006106e6338484611e97565b50600192915050565b60005b8181101561072d5761071b83838381811061070f5761070f6133fb565b90506020020135610b78565b806107258161336f565b9150506106f2565b505050565b600061073f848484612042565b73ffffffffffffffffffffffffffffffffffffffff8416600090815260016020908152604080832033845290915290205482811015610805576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e636500000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6108128533858403611e97565b60019150505b9392505050565b60006108296122f7565b905090565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915281205490916106e6918590610872908690613215565b611e97565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600a60205260409020546060908084126108ad5750610818565b60008412156108c3576108c081856131a1565b93505b60006108d361ffff8516866131a1565b9050600081136108e4575050610818565b818113156108ef5750805b60008512156108fd57600094505b73ffffffffffffffffffffffffffffffffffffffff861660009081526009602052604090819020815161ffff80825262200000820190935290918160200160208202803683370190505093506000865b838112156109b157600160008281526020859052604090206002015460ff16600381111561097d5761097d6133cc565b14156109a9578086838060010194508151811061099c5761099c6133fb565b6020026020010181815250505b60010161094d565b5084525050509392505050565b60065473ffffffffffffffffffffffffffffffffffffffff163314610a3f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fc565b610a476123ea565b565b73ffffffffffffffffffffffffffffffffffffffff811660009081526020819052604081205480610a7d5750600092915050565b6000610a8860025490565b6008546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015291925060009173ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000cafe001067cdef266afb7eb5a286dcfd277f3de516906370a082319060240160206040518083038186803b158015610b1657600080fd5b505afa158015610b2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b4e9190612fc0565b610b5891906132a5565b905081610b658285613268565b610b6f919061322d565b95945050505050565b60065474010000000000000000000000000000000000000000900460ff1615610bfd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016107fc565b6000811215610c68576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f496e76616c69642069640000000000000000000000000000000000000000000060448201526064016107fc565b33600090815260096020908152604080832084845290915290206001600282015460ff166003811115610c9d57610c9d6133cc565b14610d04576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f43616e6e6f74207265656e74657200000000000000000000000000000000000060448201526064016107fc565b6002810180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600317905580546008546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000919073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000cafe001067cdef266afb7eb5a286dcfd277f3de516906370a082319060240160206040518083038186803b158015610dbf57600080fd5b505afa158015610dd3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610df79190612fc0565b610e0191906132a5565b90506000610e0e60025490565b9050801580610e1b575081155b15610e2f57610e2a33846124e3565b610e54565b600082610e3c8386613268565b610e46919061322d565b9050610e5233826124e3565b505b8260086000828254610e6691906132a5565b9091555050604051838152339086907faa0a11cc9e2ba6b8e1890c5ddbe11046bf1dedbe18991a83fbe23e4de011b7239060200160405180910390a35050505050565b336000908152600a6020526040812080549082610ec583613336565b9190505590506000610ed660025490565b6008546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015291925060009173ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000cafe001067cdef266afb7eb5a286dcfd277f3de516906370a082319060240160206040518083038186803b158015610f6457600080fd5b505afa158015610f78573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9c9190612fc0565b610fa691906132a5565b9050600082610fb58387613268565b610fbf919061322d565b9050610fcb3386612604565b3360009081526009602090815260408083208784529091529020818155600754610ff59043613215565b6001808301919091556002820180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001682800217905550816008600082825461103f9190613215565b9091555050604051828152339086907f929558a34f2f54090f1f35b3429c85adb8ff43d5b8764f034e46157f0043fb759060200160405180910390a3505050505050565b6008546040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600091829173ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000cafe001067cdef266afb7eb5a286dcfd277f3de516906370a082319060240160206040518083038186803b15801561111057600080fd5b505afa158015611124573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111489190612fc0565b61115291906132a5565b9050600061115f60025490565b905080158061116c575081155b1561117957839250611191565b816111848286613268565b61118e919061322d565b92505b5050919050565b60065473ffffffffffffffffffffffffffffffffffffffff163314611219576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fc565b610a4760006127f1565b60065473ffffffffffffffffffffffffffffffffffffffff1633146112a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fc565b7f0000000000000000000000000000000000000000000000000000000000112f8e81111561132e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f496e76616c69642074696d656c6f636b0000000000000000000000000000000060448201526064016107fc565b60075460408051918252602082018390527f8dce199a9d83266352e70738b2dda1e7299a0ce43f7e5b9161c7ad6d571d47e9910160405180910390a1600755565b60008112156113da576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f496e76616c69642069640000000000000000000000000000000000000000000060448201526064016107fc565b33600090815260096020908152604080832084845290915290206001600282015460ff16600381111561140f5761140f6133cc565b148015611420575043816001015411155b611486576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f43616e6e6f74207769746864726177000000000000000000000000000000000060448201526064016107fc565b600281810180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690911790558054600880548291906000906114cb9084906132a5565b90915550506040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018290527f000000000000000000000000cafe001067cdef266afb7eb5a286dcfd277f3de573ffffffffffffffffffffffffffffffffffffffff169063a9059cbb90604401602060405180830381600087803b15801561155e57600080fd5b505af1158015611572573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115969190612f85565b50604051818152339084907f89637e85bd55311d863f01ccfbe86b07a3688fd60d241ca568b1d672e38b87eb906020015b60405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600560205260408120545b92915050565b60065473ffffffffffffffffffffffffffffffffffffffff163314611682576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fc565b610a47612868565b60008061169660025490565b9050806116a65750600092915050565b6008546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000919073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000cafe001067cdef266afb7eb5a286dcfd277f3de516906370a082319060240160206040518083038186803b15801561173257600080fd5b505afa158015611746573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061176a9190612fc0565b61177491906132a5565b9050816111848286613268565b606060048054610656906132e8565b33600090815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8616845290915281205482811015611851576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016107fc565b61185e3385858403611e97565b5060019392505050565b60065474010000000000000000000000000000000000000000900460ff16156118ed576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016107fc565b6008546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000919073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000cafe001067cdef266afb7eb5a286dcfd277f3de516906370a082319060240160206040518083038186803b15801561197957600080fd5b505afa15801561198d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119b19190612fc0565b6119bb91906132a5565b905060006119c860025490565b90508015806119d5575081155b156119e9576119e433846124e3565b611a0e565b6000826119f68386613268565b611a00919061322d565b9050611a0c33826124e3565b505b6040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018490527f000000000000000000000000cafe001067cdef266afb7eb5a286dcfd277f3de573ffffffffffffffffffffffffffffffffffffffff16906323b872dd90606401602060405180830381600087803b158015611aa257600080fd5b505af1158015611ab6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ada9190612f85565b5060405183815233907fdb4b459b9af0810582f21ec0ec043ee9c3f91ea26a3d3a675dea0e9e5e099f059060200160405180910390a2505050565b60006106e6338484612042565b60005b8181101561072d57611b4e838383818110611b4257611b426133fb565b9050602002013561136f565b80611b588161336f565b915050611b25565b83421115611bca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e6500000060448201526064016107fc565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9888888611bf98c612954565b60408051602081019690965273ffffffffffffffffffffffffffffffffffffffff94851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000611c6182612989565b90506000611c71828787876129f2565b90508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611d08576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e6174757265000060448201526064016107fc565b611d138a8a8a611e97565b50505050505050505050565b611d5e82828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612c4192505050565b61072d83611868565b60065473ffffffffffffffffffffffffffffffffffffffff163314611de8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fc565b73ffffffffffffffffffffffffffffffffffffffff8116611e8b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016107fc565b611e94816127f1565b50565b73ffffffffffffffffffffffffffffffffffffffff8316611f39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016107fc565b73ffffffffffffffffffffffffffffffffffffffff8216611fdc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016107fc565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591016115c7565b73ffffffffffffffffffffffffffffffffffffffff83166120e5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016107fc565b73ffffffffffffffffffffffffffffffffffffffff8216612188576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016107fc565b73ffffffffffffffffffffffffffffffffffffffff83166000908152602081905260409020548181101561223e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016107fc565b73ffffffffffffffffffffffffffffffffffffffff808516600090815260208190526040808220858503905591851681529081208054849290612282908490613215565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516122e891815260200190565b60405180910390a35b50505050565b60007f000000000000000000000000000000000000000000000000000000000000000146141561234657507f8a2953f3ec3666314fa6ae53c31e1ee42f00433c9cfbe4946f4afe4117c1e6e090565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527f31467b59dfe39981c48fd4ed04ea9ad7c63c827b55b74f9ad82f506018a07db5828401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b60065474010000000000000000000000000000000000000000900460ff1661246e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016107fc565b600680547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b73ffffffffffffffffffffffffffffffffffffffff8216612560576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016107fc565b80600260008282546125729190613215565b909155505073ffffffffffffffffffffffffffffffffffffffff8216600090815260208190526040812080548392906125ac908490613215565b909155505060405181815273ffffffffffffffffffffffffffffffffffffffff8316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35b5050565b73ffffffffffffffffffffffffffffffffffffffff82166126a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016107fc565b73ffffffffffffffffffffffffffffffffffffffff82166000908152602081905260409020548181101561275d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f636500000000000000000000000000000000000000000000000000000000000060648201526084016107fc565b73ffffffffffffffffffffffffffffffffffffffff831660009081526020819052604081208383039055600280548492906127999084906132a5565b909155505060405182815260009073ffffffffffffffffffffffffffffffffffffffff8516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6006805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60065474010000000000000000000000000000000000000000900460ff16156128ed576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016107fc565b600680547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586124b93390565b73ffffffffffffffffffffffffffffffffffffffff811660009081526005602052604090208054600181018255905b50919050565b60006115fb6129966122f7565b836040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115612aa4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016107fc565b8360ff16601b1480612ab957508360ff16601c145b612b45576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016107fc565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015612b99573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff8116610b6f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016107fc565b60007f000000000000000000000000cafe001067cdef266afb7eb5a286dcfd277f3de573ffffffffffffffffffffffffffffffffffffffff1663d505accf60e01b83604051602001612c94929190613055565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815290829052612ccc9161309d565b6000604051808303816000865af19150503d8060008114612d09576040519150601f19603f3d011682016040523d82523d6000602084013e612d0e565b606091505b5050905080612600576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f5065726d6974206661696c65640000000000000000000000000000000000000060448201526064016107fc565b803573ffffffffffffffffffffffffffffffffffffffff81168114612d9d57600080fd5b919050565b600060208284031215612db457600080fd5b61081882612d79565b60008060408385031215612dd057600080fd5b612dd983612d79565b9150612de760208401612d79565b90509250929050565b600080600060608486031215612e0557600080fd5b612e0e84612d79565b9250612e1c60208501612d79565b9150604084013590509250925092565b600080600080600080600060e0888a031215612e4757600080fd5b612e5088612d79565b9650612e5e60208901612d79565b95506040880135945060608801359350608088013560ff81168114612e8257600080fd5b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215612eb257600080fd5b612ebb83612d79565b946020939093013593505050565b600080600060608486031215612ede57600080fd5b612ee784612d79565b925060208401359150604084013561ffff81168114612f0557600080fd5b809150509250925092565b60008060208385031215612f2357600080fd5b823567ffffffffffffffff80821115612f3b57600080fd5b818501915085601f830112612f4f57600080fd5b813581811115612f5e57600080fd5b8660208260051b8501011115612f7357600080fd5b60209290920196919550909350505050565b600060208284031215612f9757600080fd5b8151801515811461081857600080fd5b600060208284031215612fb957600080fd5b5035919050565b600060208284031215612fd257600080fd5b5051919050565b600080600060408486031215612fee57600080fd5b83359250602084013567ffffffffffffffff8082111561300d57600080fd5b818601915086601f83011261302157600080fd5b81358181111561303057600080fd5b87602082850101111561304257600080fd5b6020830194508093505050509250925092565b7fffffffff00000000000000000000000000000000000000000000000000000000831681526000825161308f8160048501602087016132bc565b919091016004019392505050565b600082516130af8184602087016132bc565b9190910192915050565b6020808252825182820181905260009190848201906040850190845b818110156130f1578351835292840192918401916001016130d5565b50909695505050505050565b602081526000825180602084015261311c8160408501602087016132bc565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b838152602081018390526060810160048310613193577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b826040830152949350505050565b6000808212827f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038413811516156131db576131db61339d565b827f800000000000000000000000000000000000000000000000000000000000000003841281161561320f5761320f61339d565b50500190565b600082198211156132285761322861339d565b500190565b600082613263577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156132a0576132a061339d565b500290565b6000828210156132b7576132b761339d565b500390565b60005b838110156132d75781810151838201526020016132bf565b838111156122f15750506000910152565b600181811c908216806132fc57607f821691505b60208210811415612983577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156133685761336861339d565b5060010190565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613368576133685b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea2646970667358221220547ce11e1903988d9519478f7f14a10039450b7cf7f2fab4b3176bb366185a5a64736f6c63430008060033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000cafe001067cdef266afb7eb5a286dcfd277f3de500000000000000000000000000000000000000000000000000000000000030360000000000000000000000000000000000000000000000000000000000112f8e0000000000000000000000000000000000000000000000000000000000000011535053505061726153776170506f6f6c340000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008535053505f505034000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): SPSPParaSwapPool4
Arg [1] : symbol (string): SPSP_PP4
Arg [2] : _psp (address): 0xcAfE001067cDEF266AfB7Eb5A286dCFD277f3dE5
Arg [3] : _timeLockBlocks (uint256): 12342
Arg [4] : _maxTimeLockBlocks (uint256): 1126286

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 000000000000000000000000cafe001067cdef266afb7eb5a286dcfd277f3de5
Arg [3] : 0000000000000000000000000000000000000000000000000000000000003036
Arg [4] : 0000000000000000000000000000000000000000000000000000000000112f8e
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000011
Arg [6] : 535053505061726153776170506f6f6c34000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [8] : 535053505f505034000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.