ERC-20
Overview
Max Total Supply
30,036,605.639186117376340867 sePSP2
Holders
1,460
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
2.831894718290035214 sePSP2Value
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
sePSP2
Compiler Version
v0.8.6+commit.11564f7e
Optimization Enabled:
Yes with 100000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity 0.8.6; import "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol"; import "openzeppelin-solidity/contracts/token/ERC20/extensions/ERC20Votes.sol"; import "./utils/TimeLockedERC20.sol"; import "./utils/Utils.sol"; import "./utils/IVault.sol"; error InsufficientAssetsReceived(); contract sePSP2 is ERC20Votes, TimeLockedERC20 { string constant NAME = "Social Escrowed 20WETH-80PSP BPT"; string constant SYMBOL = "sePSP2"; IVault public immutable BALANCER_VAULT; IERC20 public immutable PSP; IERC20 public immutable WETH; IERC20 public immutable BPT; bytes32 public immutable WETH20_PSP80_POOL_ID; bool public immutable isReversedBalancerPair; uint256 constant EXACT_BPT_IN_FOR_TOKENS_OUT = 1; uint256 constant EXACT_TOKENS_IN_FOR_BPT_OUT = 1; constructor( IERC20 _asset, uint256 _timeLockBlocks, uint256 _minTimeLockBlocks, uint256 _maxTimeLockBlocks, IVault balancerVault, IERC20 psp, IERC20 weth, bytes32 poolId ) TimeLockedERC20(NAME, SYMBOL, _asset, _timeLockBlocks, _minTimeLockBlocks, _maxTimeLockBlocks) { BALANCER_VAULT = balancerVault; PSP = psp; WETH = weth; BPT = _asset; WETH20_PSP80_POOL_ID = poolId; isReversedBalancerPair = address(weth) > address(psp); } function depositPSPAndEth( uint256 pspAmount, uint256 minBptOut, bytes memory pspPermit ) external payable { Utils.permit(PSP, pspPermit); PSP.transferFrom(msg.sender, address(this), pspAmount); uint256 bptAmount = _joinPool(pspAmount, msg.value, minBptOut, false); _deposit(bptAmount); } function depositPSPAndWeth( uint256 pspAmount, uint256 wethAmount, uint256 minBptOut, bytes memory pspPermit ) external { Utils.permit(PSP, pspPermit); PSP.transferFrom(msg.sender, address(this), pspAmount); WETH.transferFrom(msg.sender, address(this), wethAmount); uint256 bptAmount = _joinPool(pspAmount, wethAmount, minBptOut, true); _deposit(bptAmount); } function withdrawPSPAndEth( int256 id, uint256 minPspAmount, uint256 minEthAmount ) external { uint256 bptAmount = _withdraw(id); (uint256 ethAmount, uint256 pspAmount) = _exitPool(bptAmount, minPspAmount, minEthAmount, false); PSP.transfer(msg.sender, pspAmount); Utils.transferETH(payable(msg.sender), ethAmount); } function withdrawPSPAndWeth( int256 id, uint256 minPspAmount, uint256 minEthAmount ) external { uint256 bptAmount = _withdraw(id); (uint256 ethAmount, uint256 pspAmount) = _exitPool(bptAmount, minPspAmount, minEthAmount, true); PSP.transfer(msg.sender, pspAmount); WETH.transfer(msg.sender, ethAmount); } function withdrawPSPAndEthMulti( int256[] calldata ids, uint256 minPspAmount, uint256 minEthAmount ) external { uint256 bptAmount; for (uint8 i; i < ids.length; i++) { bptAmount += _withdraw(ids[i]); } (uint256 ethAmount, uint256 pspAmount) = _exitPool(bptAmount, minPspAmount, minEthAmount, false); PSP.transfer(msg.sender, pspAmount); Utils.transferETH(payable(msg.sender), ethAmount); } function withdrawPSPAndWethMulti( int256[] calldata ids, uint256 minPspAmount, uint256 minEthAmount ) external { uint256 bptAmount; for (uint8 i; i < ids.length; i++) { bptAmount += _withdraw(ids[i]); } (uint256 ethAmount, uint256 pspAmount) = _exitPool(bptAmount, minPspAmount, minEthAmount, true); PSP.transfer(msg.sender, pspAmount); WETH.transfer(msg.sender, ethAmount); } function _joinPool( uint256 pspAmount, uint256 ethAmount, uint256 minBptOut, bool isWeth ) internal returns (uint256 bptAmount) { uint256[] memory amountsIn = new uint256[](2); amountsIn[0] = ethAmount; amountsIn[1] = pspAmount; address[] memory assets = new address[](2); assets[0] = isWeth ? address(WETH) : address(0); assets[1] = address(PSP); if (isReversedBalancerPair) { (assets[0], assets[1]) = (assets[1], assets[0]); (amountsIn[0], amountsIn[1]) = (amountsIn[1], amountsIn[0]); } bytes memory userDataEncoded = abi.encode(EXACT_TOKENS_IN_FOR_BPT_OUT, amountsIn, minBptOut); IVault.JoinPoolRequest memory joinRequest = IVault.JoinPoolRequest({ assets: assets, maxAmountsIn: amountsIn, userData: userDataEncoded, fromInternalBalance: false }); uint256 bptBalanceBefore = BPT.balanceOf(address(this)); PSP.approve(address(BALANCER_VAULT), pspAmount); if (isWeth) { WETH.approve(address(BALANCER_VAULT), ethAmount); BALANCER_VAULT.joinPool(WETH20_PSP80_POOL_ID, address(this), address(this), joinRequest); } else { BALANCER_VAULT.joinPool{ value: ethAmount }( WETH20_PSP80_POOL_ID, address(this), address(this), joinRequest ); } bptAmount = BPT.balanceOf(address(this)) - bptBalanceBefore; if (bptAmount < minBptOut) { revert InsufficientAssetsReceived(); } } function _exitPool( uint256 bptAmount, uint256 minPspAmount, uint256 minEthAmount, bool isWeth ) internal returns (uint256 ethAmount, uint256 pspAmount) { uint256[] memory minAmountsOut = new uint256[](2); minAmountsOut[0] = minEthAmount; minAmountsOut[1] = minPspAmount; address[] memory assets = new address[](2); assets[0] = isWeth ? address(WETH) : address(0); assets[1] = address(PSP); if (isReversedBalancerPair) { (assets[0], assets[1]) = (assets[1], assets[0]); (minAmountsOut[0], minAmountsOut[1]) = (minAmountsOut[1], minAmountsOut[0]); } bytes memory userDataEncoded = abi.encode(EXACT_BPT_IN_FOR_TOKENS_OUT, bptAmount); IVault.ExitPoolRequest memory exitRequest = IVault.ExitPoolRequest({ assets: assets, minAmountsOut: minAmountsOut, userData: userDataEncoded, toInternalBalance: false }); BPT.approve(address(BALANCER_VAULT), bptAmount); BALANCER_VAULT.exitPool(WETH20_PSP80_POOL_ID, address(this), payable(address(this)), exitRequest); pspAmount = PSP.balanceOf(address(this)); ethAmount = isWeth ? WETH.balanceOf(address(this)) : address(this).balance; if (pspAmount < minPspAmount || ethAmount < minEthAmount) { revert InsufficientAssetsReceived(); } } function _afterTokenTransfer( address from, address to, uint256 amount ) internal override(ERC20, ERC20Votes) { super._afterTokenTransfer(from, to, amount); } function _mint(address to, uint256 amount) internal override(ERC20, ERC20Votes) { super._mint(to, amount); } function _burn(address account, uint256 amount) internal override(ERC20, ERC20Votes) { super._burn(account, amount); } receive() external payable {} }
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"; import "./Utils.sol"; error TimelockOutOfRange(uint256 attemptedTimelockDuration); error CannotCancelWithdrawalRequest(int256 reqId); error CannotWithdraw(int256 reqId); error CannotWithdrawYet(int256 reqId); error InvalidWithdrawalRequestId(int256 reqId); contract TimeLockedERC20 is ERC20Permit, Ownable, Pausable { enum WITHDRAW_STATUS { UNUSED, UNLOCKING, RELEASED, CANCELLED } IERC20 public immutable asset; uint256 public timeLockDuration; uint256 public immutable minTimeLockDuration; uint256 public immutable maxTimeLockDuration; uint256 public unlockingAssets; struct WithdrawalRequest { uint256 amount; uint256 releaseTime; WITHDRAW_STATUS status; } mapping(address => mapping(int256 => WithdrawalRequest)) public userVsWithdrawals; mapping(address => int256) public userVsNextID; event TimeLockChanged(uint256 oldTimeLock, uint256 newTimeLock); event RequestedUnlocking(int256 indexed id, address indexed user, uint256 amount); event Withdraw(int256 indexed id, address indexed user, uint256 amount); event Deposited(address indexed user, uint256 amount); event CancelledWithdrawalRequest(int256 indexed id, address indexed user, uint256 amount); constructor( string memory name, string memory symbol, IERC20 _asset, uint256 _timeLockDuration, uint256 _minTimeLockDuration, uint256 _maxTimeLockDuration ) public ERC20Permit(name) ERC20(name, symbol) { if (_timeLockDuration < _minTimeLockDuration || _timeLockDuration > _maxTimeLockDuration) { revert TimelockOutOfRange(_timeLockDuration); } asset = _asset; timeLockDuration = _timeLockDuration; minTimeLockDuration = _minTimeLockDuration; maxTimeLockDuration = _maxTimeLockDuration; } function pause() external onlyOwner { _pause(); } function unpause() external onlyOwner { _unpause(); } function changeTimeLock(uint256 newTimeLockDuration) external onlyOwner { if (newTimeLockDuration < minTimeLockDuration || newTimeLockDuration > maxTimeLockDuration) { revert TimelockOutOfRange(newTimeLockDuration); } emit TimeLockChanged(timeLockDuration, newTimeLockDuration); timeLockDuration = newTimeLockDuration; } function depositWithPermit(uint256 _assetAmount, bytes calldata permit) external { Utils.permit(asset, permit); deposit(_assetAmount); } function requestWithdraw(uint256 _unlockingAmount) external { int256 id = userVsNextID[msg.sender]++; _burn(msg.sender, _unlockingAmount); WithdrawalRequest storage request = userVsWithdrawals[msg.sender][id]; request.amount = _unlockingAmount; request.releaseTime = block.timestamp + timeLockDuration; request.status = WITHDRAW_STATUS.UNLOCKING; unlockingAssets += _unlockingAmount; emit RequestedUnlocking(id, msg.sender, _unlockingAmount); } function withdrawMultiple(int256[] calldata ids) external { for (uint256 i = 0; i < ids.length; i++) { withdraw(ids[i]); } } function cancelMultipleWithdrawalRequests(int256[] calldata ids) external { for (uint256 i = 0; i < ids.length; i++) { cancelWithdrawalRequest(ids[i]); } } function deposit(uint256 _assetAmount) public { asset.transferFrom(msg.sender, address(this), _assetAmount); _deposit(_assetAmount); } function _deposit(uint256 _assetAmount) internal whenNotPaused { _mint(msg.sender, _assetAmount); emit Deposited(msg.sender, _assetAmount); } function withdraw(int256 id) public { uint256 _assetAmount = _withdraw(id); asset.transfer(msg.sender, _assetAmount); } function _withdraw(int256 id) internal returns (uint256) { if (id < 0) { revert InvalidWithdrawalRequestId(id); } WithdrawalRequest storage request = userVsWithdrawals[msg.sender][id]; if (request.status != WITHDRAW_STATUS.UNLOCKING) { revert CannotWithdraw(id); } if (request.releaseTime > block.timestamp) { revert CannotWithdrawYet(id); } request.status = WITHDRAW_STATUS.RELEASED; uint256 _assetAmount = request.amount; unlockingAssets -= _assetAmount; emit Withdraw(id, msg.sender, _assetAmount); return _assetAmount; } function cancelWithdrawalRequest(int256 id) public whenNotPaused { if (id < 0) { revert InvalidWithdrawalRequestId(id); } WithdrawalRequest storage request = userVsWithdrawals[msg.sender][id]; if (request.status != WITHDRAW_STATUS.UNLOCKING) { revert CannotCancelWithdrawalRequest(id); } request.status = WITHDRAW_STATUS.CANCELLED; uint256 _assetAmount = request.amount; _mint(msg.sender, _assetAmount); unlockingAssets -= _assetAmount; emit CancelledWithdrawalRequest(id, msg.sender, _assetAmount); } // 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 findUnlockingIDs( 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]; ids = new int256[](uint256(end - start)); 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.UNLOCKING) { ids[length++] = id; } } } // Need to force the array length to the correct value using assembly assembly { mstore(ids, length) } } }
pragma solidity 0.8.6; import "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol"; import "openzeppelin-solidity/contracts/token/ERC20/extensions/draft-IERC20Permit.sol"; error PermitFailed(); error TransferEthFailed(); library Utils { function permit(IERC20 token, bytes memory permit) internal { if (permit.length == 32 * 7) { (bool success, ) = address(token).call(abi.encodePacked(IERC20Permit.permit.selector, permit)); if (!success) { revert PermitFailed(); } } } function transferETH(address payable destination, uint256 amount) internal { if (amount > 0) { (bool result, ) = destination.call{ value: amount }(""); if (!result) { revert TransferEthFailed(); } } } }
pragma solidity 0.8.6; interface IVault { function joinPool( bytes32 poolId, address sender, address recipient, JoinPoolRequest memory request ) external payable; struct JoinPoolRequest { address[] assets; uint256[] maxAmountsIn; bytes userData; bool fromInternalBalance; } function exitPool( bytes32 poolId, address sender, address payable recipient, ExitPoolRequest memory request ) external; struct ExitPoolRequest { address[] assets; uint256[] minAmountsOut; bytes userData; bool toInternalBalance; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the 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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Votes.sol) pragma solidity ^0.8.0; import "./draft-ERC20Permit.sol"; import "../../../utils/math/Math.sol"; import "../../../governance/utils/IVotes.sol"; import "../../../utils/math/SafeCast.sol"; import "../../../utils/cryptography/ECDSA.sol"; /** * @dev Extension of ERC20 to support Compound-like voting and delegation. This version is more generic than Compound's, * and supports token supply up to 2^224^ - 1, while COMP is limited to 2^96^ - 1. * * NOTE: If exact COMP compatibility is required, use the {ERC20VotesComp} variant of this module. * * This extension keeps a history (checkpoints) of each account's vote power. Vote power can be delegated either * by calling the {delegate} function directly, or by providing a signature to be used with {delegateBySig}. Voting * power can be queried through the public accessors {getVotes} and {getPastVotes}. * * By default, token balance does not account for voting power. This makes transfers cheaper. The downside is that it * requires users to delegate to themselves in order to activate checkpoints and have their voting power tracked. * * _Available since v4.2._ */ abstract contract ERC20Votes is IVotes, ERC20Permit { struct Checkpoint { uint32 fromBlock; uint224 votes; } bytes32 private constant _DELEGATION_TYPEHASH = keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)"); mapping(address => address) private _delegates; mapping(address => Checkpoint[]) private _checkpoints; Checkpoint[] private _totalSupplyCheckpoints; /** * @dev Get the `pos`-th checkpoint for `account`. */ function checkpoints(address account, uint32 pos) public view virtual returns (Checkpoint memory) { return _checkpoints[account][pos]; } /** * @dev Get number of checkpoints for `account`. */ function numCheckpoints(address account) public view virtual returns (uint32) { return SafeCast.toUint32(_checkpoints[account].length); } /** * @dev Get the address `account` is currently delegating to. */ function delegates(address account) public view virtual override returns (address) { return _delegates[account]; } /** * @dev Gets the current votes balance for `account` */ function getVotes(address account) public view virtual override returns (uint256) { uint256 pos = _checkpoints[account].length; return pos == 0 ? 0 : _checkpoints[account][pos - 1].votes; } /** * @dev Retrieve the number of votes for `account` at the end of `blockNumber`. * * Requirements: * * - `blockNumber` must have been already mined */ function getPastVotes(address account, uint256 blockNumber) public view virtual override returns (uint256) { require(blockNumber < block.number, "ERC20Votes: block not yet mined"); return _checkpointsLookup(_checkpoints[account], blockNumber); } /** * @dev Retrieve the `totalSupply` at the end of `blockNumber`. Note, this value is the sum of all balances. * It is but NOT the sum of all the delegated votes! * * Requirements: * * - `blockNumber` must have been already mined */ function getPastTotalSupply(uint256 blockNumber) public view virtual override returns (uint256) { require(blockNumber < block.number, "ERC20Votes: block not yet mined"); return _checkpointsLookup(_totalSupplyCheckpoints, blockNumber); } /** * @dev Lookup a value in a list of (sorted) checkpoints. */ function _checkpointsLookup(Checkpoint[] storage ckpts, uint256 blockNumber) private view returns (uint256) { // We run a binary search to look for the earliest checkpoint taken after `blockNumber`. // // During the loop, the index of the wanted checkpoint remains in the range [low-1, high). // With each iteration, either `low` or `high` is moved towards the middle of the range to maintain the invariant. // - If the middle checkpoint is after `blockNumber`, we look in [low, mid) // - If the middle checkpoint is before or equal to `blockNumber`, we look in [mid+1, high) // Once we reach a single value (when low == high), we've found the right checkpoint at the index high-1, if not // out of bounds (in which case we're looking too far in the past and the result is 0). // Note that if the latest checkpoint available is exactly for `blockNumber`, we end up with an index that is // past the end of the array, so we technically don't find a checkpoint after `blockNumber`, but it works out // the same. uint256 high = ckpts.length; uint256 low = 0; while (low < high) { uint256 mid = Math.average(low, high); if (ckpts[mid].fromBlock > blockNumber) { high = mid; } else { low = mid + 1; } } return high == 0 ? 0 : ckpts[high - 1].votes; } /** * @dev Delegate votes from the sender to `delegatee`. */ function delegate(address delegatee) public virtual override { _delegate(_msgSender(), delegatee); } /** * @dev Delegates votes from signer to `delegatee` */ function delegateBySig( address delegatee, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s ) public virtual override { require(block.timestamp <= expiry, "ERC20Votes: signature expired"); address signer = ECDSA.recover( _hashTypedDataV4(keccak256(abi.encode(_DELEGATION_TYPEHASH, delegatee, nonce, expiry))), v, r, s ); require(nonce == _useNonce(signer), "ERC20Votes: invalid nonce"); _delegate(signer, delegatee); } /** * @dev Maximum token supply. Defaults to `type(uint224).max` (2^224^ - 1). */ function _maxSupply() internal view virtual returns (uint224) { return type(uint224).max; } /** * @dev Snapshots the totalSupply after it has been increased. */ function _mint(address account, uint256 amount) internal virtual override { super._mint(account, amount); require(totalSupply() <= _maxSupply(), "ERC20Votes: total supply risks overflowing votes"); _writeCheckpoint(_totalSupplyCheckpoints, _add, amount); } /** * @dev Snapshots the totalSupply after it has been decreased. */ function _burn(address account, uint256 amount) internal virtual override { super._burn(account, amount); _writeCheckpoint(_totalSupplyCheckpoints, _subtract, amount); } /** * @dev Move voting power when tokens are transferred. * * Emits a {DelegateVotesChanged} event. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual override { super._afterTokenTransfer(from, to, amount); _moveVotingPower(delegates(from), delegates(to), amount); } /** * @dev Change delegation for `delegator` to `delegatee`. * * Emits events {DelegateChanged} and {DelegateVotesChanged}. */ function _delegate(address delegator, address delegatee) internal virtual { address currentDelegate = delegates(delegator); uint256 delegatorBalance = balanceOf(delegator); _delegates[delegator] = delegatee; emit DelegateChanged(delegator, currentDelegate, delegatee); _moveVotingPower(currentDelegate, delegatee, delegatorBalance); } function _moveVotingPower( address src, address dst, uint256 amount ) private { if (src != dst && amount > 0) { if (src != address(0)) { (uint256 oldWeight, uint256 newWeight) = _writeCheckpoint(_checkpoints[src], _subtract, amount); emit DelegateVotesChanged(src, oldWeight, newWeight); } if (dst != address(0)) { (uint256 oldWeight, uint256 newWeight) = _writeCheckpoint(_checkpoints[dst], _add, amount); emit DelegateVotesChanged(dst, oldWeight, newWeight); } } } function _writeCheckpoint( Checkpoint[] storage ckpts, function(uint256, uint256) view returns (uint256) op, uint256 delta ) private returns (uint256 oldWeight, uint256 newWeight) { uint256 pos = ckpts.length; oldWeight = pos == 0 ? 0 : ckpts[pos - 1].votes; newWeight = op(oldWeight, delta); if (pos > 0 && ckpts[pos - 1].fromBlock == block.number) { ckpts[pos - 1].votes = SafeCast.toUint224(newWeight); } else { ckpts.push(Checkpoint({fromBlock: SafeCast.toUint32(block.number), votes: SafeCast.toUint224(newWeight)})); } } function _add(uint256 a, uint256 b) private pure returns (uint256) { return a + b; } function _subtract(uint256 a, uint256 b) private pure returns (uint256) { return a - b; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev 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()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/extensions/draft-ERC20Permit.sol) 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 constant _PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); /** * @dev In previous versions `_PERMIT_TYPEHASH` was declared as `immutable`. * However, to ensure consistency with the upgradeable transpiler, we will continue * to reserve a slot. * @custom:oz-renamed-from _PERMIT_TYPEHASH */ // solhint-disable-next-line var-name-mixedcase bytes32 private _PERMIT_TYPEHASH_DEPRECATED_SLOT; /** * @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(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) 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() { _transferOwnership(_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 { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) 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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/draft-EIP712.sol) 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; address private immutable _CACHED_THIS; 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); _CACHED_THIS = address(this); _TYPE_HASH = typeHash; } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (address(this) == _CACHED_THIS && 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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/ERC20.sol) 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 Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * 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: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `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: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _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 Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) 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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @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 { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. 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] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // 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 tryRecover(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 tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @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. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} 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.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // 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 (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): 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. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @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) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @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 Message, created from `s`. 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(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @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)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a / b + (a % b == 0 ? 0 : 1); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeCast.sol) pragma solidity ^0.8.0; /** * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow * checks. * * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can * easily result in undesired exploitation or bugs, since developers usually * assume that overflows raise errors. `SafeCast` restores this intuition by * reverting the transaction when such an operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. * * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing * all math on `uint256` and `int256` and then downcasting. */ library SafeCast { /** * @dev Returns the downcasted uint224 from uint256, reverting on * overflow (when the input is greater than largest uint224). * * Counterpart to Solidity's `uint224` operator. * * Requirements: * * - input must fit into 224 bits */ function toUint224(uint256 value) internal pure returns (uint224) { require(value <= type(uint224).max, "SafeCast: value doesn't fit in 224 bits"); return uint224(value); } /** * @dev Returns the downcasted uint128 from uint256, reverting on * overflow (when the input is greater than largest uint128). * * Counterpart to Solidity's `uint128` operator. * * Requirements: * * - input must fit into 128 bits */ function toUint128(uint256 value) internal pure returns (uint128) { require(value <= type(uint128).max, "SafeCast: value doesn't fit in 128 bits"); return uint128(value); } /** * @dev Returns the downcasted uint96 from uint256, reverting on * overflow (when the input is greater than largest uint96). * * Counterpart to Solidity's `uint96` operator. * * Requirements: * * - input must fit into 96 bits */ function toUint96(uint256 value) internal pure returns (uint96) { require(value <= type(uint96).max, "SafeCast: value doesn't fit in 96 bits"); return uint96(value); } /** * @dev Returns the downcasted uint64 from uint256, reverting on * overflow (when the input is greater than largest uint64). * * Counterpart to Solidity's `uint64` operator. * * Requirements: * * - input must fit into 64 bits */ function toUint64(uint256 value) internal pure returns (uint64) { require(value <= type(uint64).max, "SafeCast: value doesn't fit in 64 bits"); return uint64(value); } /** * @dev Returns the downcasted uint32 from uint256, reverting on * overflow (when the input is greater than largest uint32). * * Counterpart to Solidity's `uint32` operator. * * Requirements: * * - input must fit into 32 bits */ function toUint32(uint256 value) internal pure returns (uint32) { require(value <= type(uint32).max, "SafeCast: value doesn't fit in 32 bits"); return uint32(value); } /** * @dev Returns the downcasted uint16 from uint256, reverting on * overflow (when the input is greater than largest uint16). * * Counterpart to Solidity's `uint16` operator. * * Requirements: * * - input must fit into 16 bits */ function toUint16(uint256 value) internal pure returns (uint16) { require(value <= type(uint16).max, "SafeCast: value doesn't fit in 16 bits"); return uint16(value); } /** * @dev Returns the downcasted uint8 from uint256, reverting on * overflow (when the input is greater than largest uint8). * * Counterpart to Solidity's `uint8` operator. * * Requirements: * * - input must fit into 8 bits. */ function toUint8(uint256 value) internal pure returns (uint8) { require(value <= type(uint8).max, "SafeCast: value doesn't fit in 8 bits"); return uint8(value); } /** * @dev Converts a signed int256 into an unsigned uint256. * * Requirements: * * - input must be greater than or equal to 0. */ function toUint256(int256 value) internal pure returns (uint256) { require(value >= 0, "SafeCast: value must be positive"); return uint256(value); } /** * @dev Returns the downcasted int128 from int256, reverting on * overflow (when the input is less than smallest int128 or * greater than largest int128). * * Counterpart to Solidity's `int128` operator. * * Requirements: * * - input must fit into 128 bits * * _Available since v3.1._ */ function toInt128(int256 value) internal pure returns (int128) { require(value >= type(int128).min && value <= type(int128).max, "SafeCast: value doesn't fit in 128 bits"); return int128(value); } /** * @dev Returns the downcasted int64 from int256, reverting on * overflow (when the input is less than smallest int64 or * greater than largest int64). * * Counterpart to Solidity's `int64` operator. * * Requirements: * * - input must fit into 64 bits * * _Available since v3.1._ */ function toInt64(int256 value) internal pure returns (int64) { require(value >= type(int64).min && value <= type(int64).max, "SafeCast: value doesn't fit in 64 bits"); return int64(value); } /** * @dev Returns the downcasted int32 from int256, reverting on * overflow (when the input is less than smallest int32 or * greater than largest int32). * * Counterpart to Solidity's `int32` operator. * * Requirements: * * - input must fit into 32 bits * * _Available since v3.1._ */ function toInt32(int256 value) internal pure returns (int32) { require(value >= type(int32).min && value <= type(int32).max, "SafeCast: value doesn't fit in 32 bits"); return int32(value); } /** * @dev Returns the downcasted int16 from int256, reverting on * overflow (when the input is less than smallest int16 or * greater than largest int16). * * Counterpart to Solidity's `int16` operator. * * Requirements: * * - input must fit into 16 bits * * _Available since v3.1._ */ function toInt16(int256 value) internal pure returns (int16) { require(value >= type(int16).min && value <= type(int16).max, "SafeCast: value doesn't fit in 16 bits"); return int16(value); } /** * @dev Returns the downcasted int8 from int256, reverting on * overflow (when the input is less than smallest int8 or * greater than largest int8). * * Counterpart to Solidity's `int8` operator. * * Requirements: * * - input must fit into 8 bits. * * _Available since v3.1._ */ function toInt8(int256 value) internal pure returns (int8) { require(value >= type(int8).min && value <= type(int8).max, "SafeCast: value doesn't fit in 8 bits"); return int8(value); } /** * @dev Converts an unsigned uint256 into a signed int256. * * Requirements: * * - input must be less than or equal to maxInt256. */ function toInt256(uint256 value) internal pure returns (int256) { // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive require(value <= uint256(type(int256).max), "SafeCast: value doesn't fit in an int256"); return int256(value); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (governance/utils/IVotes.sol) pragma solidity ^0.8.0; /** * @dev Common interface for {ERC20Votes}, {ERC721Votes}, and other {Votes}-enabled contracts. * * _Available since v4.5._ */ interface IVotes { /** * @dev Emitted when an account changes their delegate. */ event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate); /** * @dev Emitted when a token transfer or delegate change results in changes to a delegate's number of votes. */ event DelegateVotesChanged(address indexed delegate, uint256 previousBalance, uint256 newBalance); /** * @dev Returns the current amount of votes that `account` has. */ function getVotes(address account) external view returns (uint256); /** * @dev Returns the amount of votes that `account` had at the end of a past block (`blockNumber`). */ function getPastVotes(address account, uint256 blockNumber) external view returns (uint256); /** * @dev Returns the total supply of votes available at the end of a past block (`blockNumber`). * * NOTE: This value is the sum of all available votes, which is not necessarily the sum of all delegated votes. * Votes that have not been delegated are still part of total supply, even though they would not participate in a * vote. */ function getPastTotalSupply(uint256 blockNumber) external view returns (uint256); /** * @dev Returns the delegate that `account` has chosen. */ function delegates(address account) external view returns (address); /** * @dev Delegates votes from the sender to `delegatee`. */ function delegate(address delegatee) external; /** * @dev Delegates votes from signer to `delegatee`. */ function delegateBySig( address delegatee, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s ) external; }
{ "optimizer": { "enabled": true, "runs": 100000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IERC20","name":"_asset","type":"address"},{"internalType":"uint256","name":"_timeLockBlocks","type":"uint256"},{"internalType":"uint256","name":"_minTimeLockBlocks","type":"uint256"},{"internalType":"uint256","name":"_maxTimeLockBlocks","type":"uint256"},{"internalType":"contract IVault","name":"balancerVault","type":"address"},{"internalType":"contract IERC20","name":"psp","type":"address"},{"internalType":"contract IERC20","name":"weth","type":"address"},{"internalType":"bytes32","name":"poolId","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"int256","name":"reqId","type":"int256"}],"name":"CannotCancelWithdrawalRequest","type":"error"},{"inputs":[{"internalType":"int256","name":"reqId","type":"int256"}],"name":"CannotWithdraw","type":"error"},{"inputs":[{"internalType":"int256","name":"reqId","type":"int256"}],"name":"CannotWithdrawYet","type":"error"},{"inputs":[],"name":"InsufficientAssetsReceived","type":"error"},{"inputs":[{"internalType":"int256","name":"reqId","type":"int256"}],"name":"InvalidWithdrawalRequestId","type":"error"},{"inputs":[],"name":"PermitFailed","type":"error"},{"inputs":[{"internalType":"uint256","name":"attemptedTimelockDuration","type":"uint256"}],"name":"TimelockOutOfRange","type":"error"},{"inputs":[],"name":"TransferEthFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"int256","name":"id","type":"int256"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"CancelledWithdrawalRequest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegator","type":"address"},{"indexed":true,"internalType":"address","name":"fromDelegate","type":"address"},{"indexed":true,"internalType":"address","name":"toDelegate","type":"address"}],"name":"DelegateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegate","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"DelegateVotesChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposited","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":"RequestedUnlocking","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":"Withdraw","type":"event"},{"inputs":[],"name":"BALANCER_VAULT","outputs":[{"internalType":"contract IVault","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BPT","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PSP","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH20_PSP80_POOL_ID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":[],"name":"asset","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int256[]","name":"ids","type":"int256[]"}],"name":"cancelMultipleWithdrawalRequests","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int256","name":"id","type":"int256"}],"name":"cancelWithdrawalRequest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newTimeLockDuration","type":"uint256"}],"name":"changeTimeLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint32","name":"pos","type":"uint32"}],"name":"checkpoints","outputs":[{"components":[{"internalType":"uint32","name":"fromBlock","type":"uint32"},{"internalType":"uint224","name":"votes","type":"uint224"}],"internalType":"struct ERC20Votes.Checkpoint","name":"","type":"tuple"}],"stateMutability":"view","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":"address","name":"delegatee","type":"address"}],"name":"delegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"delegateBySig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"delegates","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_assetAmount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pspAmount","type":"uint256"},{"internalType":"uint256","name":"minBptOut","type":"uint256"},{"internalType":"bytes","name":"pspPermit","type":"bytes"}],"name":"depositPSPAndEth","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pspAmount","type":"uint256"},{"internalType":"uint256","name":"wethAmount","type":"uint256"},{"internalType":"uint256","name":"minBptOut","type":"uint256"},{"internalType":"bytes","name":"pspPermit","type":"bytes"}],"name":"depositPSPAndWeth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_assetAmount","type":"uint256"},{"internalType":"bytes","name":"permit","type":"bytes"}],"name":"depositWithPermit","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":"findUnlockingIDs","outputs":[{"internalType":"int256[]","name":"ids","type":"int256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPastTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPastVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"isReversedBalancerPair","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTimeLockDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minTimeLockDuration","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":[{"internalType":"address","name":"account","type":"address"}],"name":"numCheckpoints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_unlockingAmount","type":"uint256"}],"name":"requestWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timeLockDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unlockingAssets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"amount","type":"uint256"},{"internalType":"uint256","name":"releaseTime","type":"uint256"},{"internalType":"enum TimeLockedERC20.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"},{"inputs":[{"internalType":"int256","name":"id","type":"int256"},{"internalType":"uint256","name":"minPspAmount","type":"uint256"},{"internalType":"uint256","name":"minEthAmount","type":"uint256"}],"name":"withdrawPSPAndEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int256[]","name":"ids","type":"int256[]"},{"internalType":"uint256","name":"minPspAmount","type":"uint256"},{"internalType":"uint256","name":"minEthAmount","type":"uint256"}],"name":"withdrawPSPAndEthMulti","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int256","name":"id","type":"int256"},{"internalType":"uint256","name":"minPspAmount","type":"uint256"},{"internalType":"uint256","name":"minEthAmount","type":"uint256"}],"name":"withdrawPSPAndWeth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int256[]","name":"ids","type":"int256[]"},{"internalType":"uint256","name":"minPspAmount","type":"uint256"},{"internalType":"uint256","name":"minEthAmount","type":"uint256"}],"name":"withdrawPSPAndWethMulti","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6102606040523480156200001257600080fd5b50604051620063e6380380620063e6833981016040819052620000359162000336565b6040518060400160405280602081526020017f536f6369616c20457363726f776564203230574554482d3830505350204250548152506040518060400160405280600681526020016539b2a829a81960d11b815250898989898580604051806040016040528060018152602001603160f81b81525088888160039080519060200190620000c492919062000290565b508051620000da90600490602084019062000290565b5050825160208085019190912083518483012060e08290526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81880181905281830187905260608201869052608082019490945230818401528151808203909301835260c0019052805194019390932091935091906080523060601b60c0526101205250620001899350620001839250506200023a9050565b6200023e565b600a805460ff60a01b1916905581831080620001a457508083115b15620001ca576040516387a5a6a760e01b81526004810184905260240160405180910390fd5b6001600160601b0319606094851b811661014052600b93909355610160919091526101805296811b87166101a05285811b87166101c05284811b87166101e0529990991b90941661020052610220526001600160a01b0391821691161160f81b61024052506200041e9350505050565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200029e90620003c8565b90600052602060002090601f016020900481019282620002c257600085556200030d565b82601f10620002dd57805160ff19168380011785556200030d565b828001600101855582156200030d579182015b828111156200030d578251825591602001919060010190620002f0565b506200031b9291506200031f565b5090565b5b808211156200031b576000815560010162000320565b600080600080600080600080610100898b0312156200035457600080fd5b8851620003618162000405565b8098505060208901519650604089015195506060890151945060808901516200038a8162000405565b60a08a01519094506200039d8162000405565b60c08a0151909350620003b08162000405565b8092505060e089015190509295985092959890939650565b600181811c90821680620003dd57607f821691505b60208210811415620003ff57634e487b7160e01b600052602260045260246000fd5b50919050565b6001600160a01b03811681146200041b57600080fd5b50565b60805160a05160c05160601c60e05161010051610120516101405160601c61016051610180516101a05160601c6101c05160601c6101e05160601c6102005160601c610220516102405160f81c615df6620005f060003960008181610c1e01528181612c370152613e000152600081816108c2015281816130c20152818161319301526140d90152600081816105e001528181612dec015281816132240152613ff001526000818161093601528181610f4901528181611a2f01528181611fa601528181612b5a01528181612fdb01528181613d230152614231015260008181610bea01528181610d0501528181610d6501528181610e1c01528181610e7c015281816114520152818161196801528181611baa01528181611edf01528181612bc901528181612eea01528181613d9201526141650152600081816109f701528181612eb801528181612fac015281816130950152818161316401528181613fbe01526140ac015260008181610b37015261173c0152600081816104c901526117130152600081816105120152818161181c0152818161221e01526122be015260006137ee0152600061383d01526000613818015260006137710152600061379b015260006137c50152615df66000f3fe60806040526004361061036f5760003560e01c8063818dc4ce116101c6578063b69871ef116100f7578063dd62ed3e11610095578063f2fde38b1161006f578063f2fde38b14610bb8578063f821902d14610bd8578063fdaf7bde14610c0c578063ff96df4414610c4057600080fd5b8063dd62ed3e14610ad2578063f003760014610b25578063f1127ed814610b5957600080fd5b8063bfe91734116100d1578063bfe9173414610a19578063c3cda52014610a39578063d505accf14610a59578063d74fbb1814610a7957600080fd5b8063b69871ef146109a5578063b6b55f25146109c5578063bc163846146109e557600080fd5b80639ab24eb011610164578063a9059cbb1161013e578063a9059cbb14610904578063ad5c464814610924578063b0d88d7f14610958578063b1b545e81461097857600080fd5b80639ab24eb0146108905780639f8d7842146108b0578063a457c2d7146108e457600080fd5b8063858b3792116101a0578063858b3792146108105780638da5cb5b146108305780638e539e8c1461085b57806395d89b411461087b57600080fd5b8063818dc4ce146107c557806382a89dc9146107e55780638456cb59146107fb57600080fd5b80633f4ba83a116102a05780636fcfff451161023e578063745400c911610218578063745400c9146107455780637ad28c51146107655780637e62eab8146107855780637ecebe00146107a557600080fd5b80636fcfff45146106b857806370a08231146106ed578063715018a61461073057600080fd5b8063587cde1e1161027a578063587cde1e146106025780635c19a95c146106485780635c975abb1461066857806368d8bb561461069857600080fd5b80633f4ba83a1461059957806349de0b13146105ae5780634f064086146105ce57600080fd5b806323b872dd1161030d5780633644e515116102e75780633644e515146104eb57806338d52e0f1461050057806339509351146105595780633a46b1a81461057957600080fd5b806323b872dd1461047b578063313ce5671461049b578063351ec77e146104b757600080fd5b806318160ddd1161034957806318160ddd1461041157806318818ccd146104265780631ad66ed81461043b5780631d271f801461045b57600080fd5b806306fdde031461037b578063095ea7b3146103a6578063138504c4146103d657600080fd5b3661037657005b600080fd5b34801561038757600080fd5b50610390610c56565b60405161039d9190615a1e565b60405180910390f35b3480156103b257600080fd5b506103c66103c13660046154c2565b610ce8565b604051901515815260200161039d565b3480156103e257600080fd5b506104036103f13660046153ce565b600e6020526000908152604090205481565b60405190815260200161039d565b34801561041d57600080fd5b50600254610403565b61043961043436600461575a565b610d00565b005b34801561044757600080fd5b506104396104563660046157aa565b610e17565b34801561046757600080fd5b506104396104763660046155cb565b610ffc565b34801561048757600080fd5b506103c661049636600461541c565b61103f565b3480156104a757600080fd5b506040516012815260200161039d565b3480156104c357600080fd5b506104037f000000000000000000000000000000000000000000000000000000000000000081565b3480156104f757600080fd5b50610403611065565b34801561050c57600080fd5b506105347f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161039d565b34801561056557600080fd5b506103c66105743660046154c2565b611074565b34801561058557600080fd5b506104036105943660046154c2565b6110c0565b3480156105a557600080fd5b5061043961115f565b3480156105ba57600080fd5b506104396105c9366004615680565b6111ea565b3480156105da57600080fd5b506105347f000000000000000000000000000000000000000000000000000000000000000081565b34801561060e57600080fd5b5061053461061d3660046153ce565b73ffffffffffffffffffffffffffffffffffffffff9081166000908152600760205260409020541690565b34801561065457600080fd5b506104396106633660046153ce565b6113a9565b34801561067457600080fd5b50600a5474010000000000000000000000000000000000000000900460ff166103c6565b3480156106a457600080fd5b506104396106b336600461560d565b6113b6565b3480156106c457600080fd5b506106d86106d33660046153ce565b6114f7565b60405163ffffffff909116815260200161039d565b3480156106f957600080fd5b506104036107083660046153ce565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b34801561073c57600080fd5b5061043961152c565b34801561075157600080fd5b50610439610760366004615680565b6115b7565b34801561077157600080fd5b50610439610780366004615680565b611690565b34801561079157600080fd5b506104396107a0366004615680565b6117d9565b3480156107b157600080fd5b506104036107c03660046153ce565b6118ad565b3480156107d157600080fd5b506104396107e036600461560d565b6118d8565b3480156107f157600080fd5b50610403600c5481565b34801561080757600080fd5b50610439611aca565b34801561081c57600080fd5b5061043961082b366004615699565b611b53565b34801561083c57600080fd5b50600a5473ffffffffffffffffffffffffffffffffffffffff16610534565b34801561086757600080fd5b50610403610876366004615680565b611c4e565b34801561088757600080fd5b50610390611cc4565b34801561089c57600080fd5b506104036108ab3660046153ce565b611cd3565b3480156108bc57600080fd5b506104037f000000000000000000000000000000000000000000000000000000000000000081565b3480156108f057600080fd5b506103c66108ff3660046154c2565b611d9e565b34801561091057600080fd5b506103c661091f3660046154c2565b611e7a565b34801561093057600080fd5b506105347f000000000000000000000000000000000000000000000000000000000000000081565b34801561096457600080fd5b50610439610973366004615699565b611e88565b34801561098457600080fd5b506109986109933660046154ec565b612037565b60405161039d9190615991565b3480156109b157600080fd5b506104396109c03660046155cb565b6121a5565b3480156109d157600080fd5b506104396109e0366004615680565b6121e3565b3480156109f157600080fd5b506105347f000000000000000000000000000000000000000000000000000000000000000081565b348015610a2557600080fd5b50610439610a343660046156de565b6122b9565b348015610a4557600080fd5b50610439610a54366004615533565b612322565b348015610a6557600080fd5b50610439610a74366004615458565b612490565b348015610a8557600080fd5b50610ac3610a943660046154c2565b600d60209081526000928352604080842090915290825290208054600182015460029092015490919060ff1683565b60405161039d93929190615a5a565b348015610ade57600080fd5b50610403610aed3660046153e9565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b348015610b3157600080fd5b506104037f000000000000000000000000000000000000000000000000000000000000000081565b348015610b6557600080fd5b50610b79610b7436600461558b565b61264f565b60408051825163ffffffff1681526020928301517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16928101929092520161039d565b348015610bc457600080fd5b50610439610bd33660046153ce565b6126f5565b348015610be457600080fd5b506105347f000000000000000000000000000000000000000000000000000000000000000081565b348015610c1857600080fd5b506103c67f000000000000000000000000000000000000000000000000000000000000000081565b348015610c4c57600080fd5b50610403600b5481565b606060038054610c6590615c2b565b80601f0160208091040260200160405190810160405280929190818152602001828054610c9190615c2b565b8015610cde5780601f10610cb357610100808354040283529160200191610cde565b820191906000526020600020905b815481529060010190602001808311610cc157829003601f168201915b5050505050905090565b600033610cf6818585612822565b5060019392505050565b610d2a7f0000000000000000000000000000000000000000000000000000000000000000826129cd565b6040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018490527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906323b872dd90606401602060405180830381600087803b158015610dbe57600080fd5b505af1158015610dd2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610df6919061565e565b506000610e068434856000612ac3565b9050610e1181613306565b50505050565b610e417f0000000000000000000000000000000000000000000000000000000000000000826129cd565b6040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018590527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906323b872dd90606401602060405180830381600087803b158015610ed557600080fd5b505af1158015610ee9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f0d919061565e565b506040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018490527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906323b872dd90606401602060405180830381600087803b158015610fa257600080fd5b505af1158015610fb6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fda919061565e565b506000610fea8585856001612ac3565b9050610ff581613306565b5050505050565b60005b8181101561103a5761102883838381811061101c5761101c615d62565b905060200201356111ea565b8061103281615cb2565b915050610fff565b505050565b60003361104d8582856133cd565b61105885858561349e565b60019150505b9392505050565b600061106f613757565b905090565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152812054909190610cf690829086906110bb908790615b21565b612822565b6000438210611130576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e65640060448201526064015b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8316600090815260086020526040902061105e908361388b565b600a5473ffffffffffffffffffffffffffffffffffffffff1633146111e0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611127565b6111e8613972565b565b600a5474010000000000000000000000000000000000000000900460ff161561126f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401611127565b60008112156112ad576040517fe568d45b00000000000000000000000000000000000000000000000000000000815260048101829052602401611127565b336000908152600d6020908152604080832084845290915290206001600282015460ff1660038111156112e2576112e2615d33565b1461131c576040517f16dcca6500000000000000000000000000000000000000000000000000000000815260048101839052602401611127565b6002810180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600317905580546113553382613a6b565b80600c60008282546113679190615be8565b9091555050604051818152339084907f9839bcbc0747668ab7ec532a9f605624bc78ec8b691311e6d0f5c4342fe00c30906020015b60405180910390a3505050565b6113b33382613a75565b50565b6000805b60ff8116851115611407576113e986868360ff168181106113dd576113dd615d62565b90506020020135613b13565b6113f39083615b21565b9150806113ff81615ce4565b9150506113ba565b506000806114188386866000613c8a565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081523360048201526024810182905291935091507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063a9059cbb90604401602060405180830381600087803b1580156114ab57600080fd5b505af11580156114bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114e3919061565e565b506114ee3383614313565b50505050505050565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260086020526040812054611526906143b3565b92915050565b600a5473ffffffffffffffffffffffffffffffffffffffff1633146115ad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611127565b6111e8600061444d565b336000908152600e60205260408120805490826115d383615c79565b9190505590506115e333836144c4565b336000908152600d602090815260408083208484529091529020828155600b5461160d9042615b21565b6001808301919091556002820180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168280021790555082600c60008282546116579190615b21565b9091555050604051838152339083907ff54d1c42121ce4641106148d5433c0035bf5ece8b312206ee5065cf3fcc978509060200161139c565b600a5473ffffffffffffffffffffffffffffffffffffffff163314611711576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611127565b7f000000000000000000000000000000000000000000000000000000000000000081108061175e57507f000000000000000000000000000000000000000000000000000000000000000081115b15611798576040517f87a5a6a700000000000000000000000000000000000000000000000000000000815260048101829052602401611127565b600b5460408051918252602082018390527f8dce199a9d83266352e70738b2dda1e7299a0ce43f7e5b9161c7ad6d571d47e9910160405180910390a1600b55565b60006117e482613b13565b6040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018290529091507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063a9059cbb90604401602060405180830381600087803b15801561187557600080fd5b505af1158015611889573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061103a919061565e565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260056020526040812054611526565b6000805b60ff811685111561191d576118ff86868360ff168181106113dd576113dd615d62565b6119099083615b21565b91508061191581615ce4565b9150506118dc565b5060008061192e8386866001613c8a565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081523360048201526024810182905291935091507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063a9059cbb90604401602060405180830381600087803b1580156119c157600080fd5b505af11580156119d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119f9919061565e565b506040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018390527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063a9059cbb90604401602060405180830381600087803b158015611a8857600080fd5b505af1158015611a9c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ac0919061565e565b5050505050505050565b600a5473ffffffffffffffffffffffffffffffffffffffff163314611b4b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611127565b6111e86144ce565b6000611b5e84613b13565b9050600080611b708386866000613c8a565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081523360048201526024810182905291935091507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063a9059cbb90604401602060405180830381600087803b158015611c0357600080fd5b505af1158015611c17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c3b919061565e565b50611c463383614313565b505050505050565b6000438210611cb9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e6564006044820152606401611127565b61152660098361388b565b606060048054610c6590615c2b565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600860205260408120548015611d765773ffffffffffffffffffffffffffffffffffffffff83166000908152600860205260409020611d2f600183615be8565b81548110611d3f57611d3f615d62565b60009182526020909120015464010000000090047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16611d79565b60005b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff169392505050565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915281205490919083811015611e62576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401611127565b611e6f8286868403612822565b506001949350505050565b600033610cf681858561349e565b6000611e9384613b13565b9050600080611ea58386866001613c8a565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081523360048201526024810182905291935091507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063a9059cbb90604401602060405180830381600087803b158015611f3857600080fd5b505af1158015611f4c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f70919061565e565b506040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018390527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063a9059cbb90604401602060405180830381600087803b158015611fff57600080fd5b505af1158015612013573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114ee919061565e565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600e602052604090205460609080841261206d575061105e565b6000841215612083576120808185615aad565b93505b600061209361ffff851686615aad565b9050600081136120a457505061105e565b818113156120af5750805b60008512156120bd57600094505b73ffffffffffffffffffffffffffffffffffffffff86166000908152600d602052604090206120ec8683615b74565b67ffffffffffffffff81111561210457612104615d91565b60405190808252806020026020018201604052801561212d578160200160208202803683370190505b5093506000865b8381121561219857600160008281526020859052604090206002015460ff16600381111561216457612164615d33565b1415612190578086838060010194508151811061218357612183615d62565b6020026020010181815250505b600101612134565b5084525050509392505050565b60005b8181101561103a576121d18383838181106121c5576121c5615d62565b905060200201356117d9565b806121db81615cb2565b9150506121a8565b6040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018290527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906323b872dd90606401602060405180830381600087803b15801561227757600080fd5b505af115801561228b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122af919061565e565b506113b381613306565b6123197f000000000000000000000000000000000000000000000000000000000000000083838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506129cd92505050565b61103a836121e3565b8342111561238c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4552433230566f7465733a207369676e617475726520657870697265640000006044820152606401611127565b604080517fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf602082015273ffffffffffffffffffffffffffffffffffffffff88169181019190915260608101869052608081018590526000906124139061240b9060a001604051602081830303815290604052805190602001206145ba565b858585614623565b905061241e8161464b565b8614612486576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433230566f7465733a20696e76616c6964206e6f6e6365000000000000006044820152606401611127565b6114ee8188613a75565b834211156124fa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606401611127565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886125298c61464b565b60408051602081019690965273ffffffffffffffffffffffffffffffffffffffff94851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000612591826145ba565b905060006125a182878787614623565b90508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612638576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152606401611127565b6126438a8a8a612822565b50505050505050505050565b604080518082019091526000808252602082015273ffffffffffffffffffffffffffffffffffffffff83166000908152600860205260409020805463ffffffff84169081106126a0576126a0615d62565b60009182526020918290206040805180820190915291015463ffffffff8116825264010000000090047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16918101919091529392505050565b600a5473ffffffffffffffffffffffffffffffffffffffff163314612776576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611127565b73ffffffffffffffffffffffffffffffffffffffff8116612819576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401611127565b6113b38161444d565b73ffffffffffffffffffffffffffffffffffffffff83166128c4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401611127565b73ffffffffffffffffffffffffffffffffffffffff8216612967576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401611127565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910161139c565b805160e01415612abf5760008273ffffffffffffffffffffffffffffffffffffffff1663d505accf60e01b83604051602001612a0a92919061592d565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815290829052612a4291615975565b6000604051808303816000865af19150503d8060008114612a7f576040519150601f19603f3d011682016040523d82523d6000602084013e612a84565b606091505b505090508061103a576040517fb78cb0dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050565b604080516002808252606082018352600092839291906020830190803683370190505090508481600081518110612afc57612afc615d62565b6020026020010181815250508581600181518110612b1c57612b1c615d62565b60209081029190910101526040805160028082526060820190925260009181602001602082028036833701905050905083612b58576000612b7a565b7f00000000000000000000000000000000000000000000000000000000000000005b81600081518110612b8d57612b8d615d62565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f000000000000000000000000000000000000000000000000000000000000000081600181518110612bfb57612bfb615d62565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f000000000000000000000000000000000000000000000000000000000000000015612d5a5780600181518110612c6e57612c6e615d62565b602002602001015181600081518110612c8957612c89615d62565b602002602001015182600081518110612ca457612ca4615d62565b6020026020010183600181518110612cbe57612cbe615d62565b73ffffffffffffffffffffffffffffffffffffffff938416602091820292909201015291169052815182906001908110612cfa57612cfa615d62565b602002602001015182600081518110612d1557612d15615d62565b602002602001015183600081518110612d3057612d30615d62565b6020026020010184600181518110612d4a57612d4a615d62565b6020908102919091010191909152525b600060018387604051602001612d7293929190615a31565b604080518083037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe00181526080830182528483526020830186905282820181905260006060840181905291517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529093507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b158015612e4357600080fd5b505afa158015612e57573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e7b91906156c5565b6040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000081166004830152602482018d90529192507f00000000000000000000000000000000000000000000000000000000000000009091169063095ea7b390604401602060405180830381600087803b158015612f3057600080fd5b505af1158015612f44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f68919061565e565b508615613127576040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000081166004830152602482018b90527f0000000000000000000000000000000000000000000000000000000000000000169063095ea7b390604401602060405180830381600087803b15801561301f57600080fd5b505af1158015613033573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613057919061565e565b506040517fb95cac2800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169063b95cac28906130f0907f0000000000000000000000000000000000000000000000000000000000000000903090819088906004016159d5565b600060405180830381600087803b15801561310a57600080fd5b505af115801561311e573d6000803e3d6000fd5b505050506131f4565b6040517fb95cac2800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169063b95cac28908b906131c1907f0000000000000000000000000000000000000000000000000000000000000000903090819089906004016159d5565b6000604051808303818588803b1580156131da57600080fd5b505af11580156131ee573d6000803e3d6000fd5b50505050505b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015281907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b15801561327b57600080fd5b505afa15801561328f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132b391906156c5565b6132bd9190615be8565b9550878610156132f9576040517ff114f58200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050505050949350505050565b600a5474010000000000000000000000000000000000000000900460ff161561338b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401611127565b6133953382613a6b565b60405181815233907f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c49060200160405180910390a250565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610e115781811015613491576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401611127565b610e118484848403612822565b73ffffffffffffffffffffffffffffffffffffffff8316613541576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401611127565b73ffffffffffffffffffffffffffffffffffffffff82166135e4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401611127565b73ffffffffffffffffffffffffffffffffffffffff83166000908152602081905260409020548181101561369a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401611127565b73ffffffffffffffffffffffffffffffffffffffff8085166000908152602081905260408082208585039055918516815290812080548492906136de908490615b21565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161374491815260200190565b60405180910390a3610e11848484614680565b60003073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000161480156137bd57507f000000000000000000000000000000000000000000000000000000000000000046145b156137e757507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b8154600090815b818110156138ef5760006138a6828461468b565b9050848682815481106138bb576138bb615d62565b60009182526020909120015463ffffffff1611156138db578092506138e9565b6138e6816001615b21565b91505b50613892565b81156139485784613901600184615be8565b8154811061391157613911615d62565b60009182526020909120015464010000000090047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1661394b565b60005b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1695945050505050565b600a5474010000000000000000000000000000000000000000900460ff166139f6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401611127565b600a80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b612abf82826146a6565b73ffffffffffffffffffffffffffffffffffffffff8281166000818152600760208181526040808420805485845282862054949093528787167fffffffffffffffffffffffff00000000000000000000000000000000000000008416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4610e1182848361476c565b600080821215613b52576040517fe568d45b00000000000000000000000000000000000000000000000000000000815260048101839052602401611127565b336000908152600d6020908152604080832085845290915290206001600282015460ff166003811115613b8757613b87615d33565b14613bc1576040517f5839c30000000000000000000000000000000000000000000000000000000000815260048101849052602401611127565b4281600101541115613c02576040517f817147bc00000000000000000000000000000000000000000000000000000000815260048101849052602401611127565b600281810180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690911790558054600c8054829190600090613c47908490615be8565b9091555050604051818152339085907f89637e85bd55311d863f01ccfbe86b07a3688fd60d241ca568b1d672e38b87eb9060200160405180910390a39392505050565b6040805160028082526060820183526000928392839290916020830190803683370190505090508481600081518110613cc557613cc5615d62565b6020026020010181815250508581600181518110613ce557613ce5615d62565b60209081029190910101526040805160028082526060820190925260009181602001602082028036833701905050905084613d21576000613d43565b7f00000000000000000000000000000000000000000000000000000000000000005b81600081518110613d5657613d56615d62565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f000000000000000000000000000000000000000000000000000000000000000081600181518110613dc457613dc4615d62565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f000000000000000000000000000000000000000000000000000000000000000015613f235780600181518110613e3757613e37615d62565b602002602001015181600081518110613e5257613e52615d62565b602002602001015182600081518110613e6d57613e6d615d62565b6020026020010183600181518110613e8757613e87615d62565b73ffffffffffffffffffffffffffffffffffffffff938416602091820292909201015291169052815182906001908110613ec357613ec3615d62565b602002602001015182600081518110613ede57613ede615d62565b602002602001015183600081518110613ef957613ef9615d62565b6020026020010184600181518110613f1357613f13615d62565b6020908102919091010191909152525b6040805160016020820152908101899052600090606001604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152608083018252848352602083018690528282018190526000606084015290517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000081166004830152602482018d90529193507f00000000000000000000000000000000000000000000000000000000000000009091169063095ea7b390604401602060405180830381600087803b15801561403657600080fd5b505af115801561404a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061406e919061565e565b506040517f8bdb391300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001690638bdb391390614107907f0000000000000000000000000000000000000000000000000000000000000000903090819087906004016159d5565b600060405180830381600087803b15801561412157600080fd5b505af1158015614135573d6000803e3d6000fd5b50506040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1692506370a08231915060240160206040518083038186803b1580156141be57600080fd5b505afa1580156141d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906141f691906156c5565b94508661420357476142c0565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b15801561428857600080fd5b505afa15801561429c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906142c091906156c5565b9550888510806142cf57508786105b15614306576040517ff114f58200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050505094509492505050565b8015612abf5760008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d8060008114614373576040519150601f19603f3d011682016040523d82523d6000602084013e614378565b606091505b505090508061103a576040517f6200562d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600063ffffffff821115614449576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201527f32206269747300000000000000000000000000000000000000000000000000006064820152608401611127565b5090565b600a805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612abf8282614911565b600a5474010000000000000000000000000000000000000000900460ff1615614553576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401611127565b600a80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613a413390565b60006115266145c7613757565b836040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b600080600061463487878787614929565b9150915061464181614a41565b5095945050505050565b73ffffffffffffffffffffffffffffffffffffffff811660009081526005602052604090208054600181018255905b50919050565b61103a838383614c9a565b600061469a6002848418615b39565b61105e90848416615b21565b6146b08282614cd9565b6002547bffffffffffffffffffffffffffffffffffffffffffffffffffffffff101561475e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f4552433230566f7465733a20746f74616c20737570706c79207269736b73206f60448201527f766572666c6f77696e6720766f746573000000000000000000000000000000006064820152608401611127565b610e116009614e0183614e0d565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156147a85750600081115b1561103a5773ffffffffffffffffffffffffffffffffffffffff83161561485d5773ffffffffffffffffffffffffffffffffffffffff8316600090815260086020526040812081906147fd90614fef85614e0d565b915091508473ffffffffffffffffffffffffffffffffffffffff167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051614852929190918252602082015260400190565b60405180910390a250505b73ffffffffffffffffffffffffffffffffffffffff82161561103a5773ffffffffffffffffffffffffffffffffffffffff8216600090815260086020526040812081906148ad90614e0185614e0d565b915091508373ffffffffffffffffffffffffffffffffffffffff167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051614902929190918252602082015260400190565b60405180910390a25050505050565b61491b8282614ffb565b610e116009614fef83614e0d565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156149605750600090506003614a38565b8460ff16601b1415801561497857508460ff16601c14155b156149895750600090506004614a38565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156149dd573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff8116614a3157600060019250925050614a38565b9150600090505b94509492505050565b6000816004811115614a5557614a55615d33565b1415614a5e5750565b6001816004811115614a7257614a72615d33565b1415614ada576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401611127565b6002816004811115614aee57614aee615d33565b1415614b56576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401611127565b6003816004811115614b6a57614b6a615d33565b1415614bf8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401611127565b6004816004811115614c0c57614c0c615d33565b14156113b3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401611127565b73ffffffffffffffffffffffffffffffffffffffff83811660009081526007602052604080822054858416835291205461103a9291821691168361476c565b73ffffffffffffffffffffffffffffffffffffffff8216614d56576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401611127565b8060026000828254614d689190615b21565b909155505073ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604081208054839290614da2908490615b21565b909155505060405181815273ffffffffffffffffffffffffffffffffffffffff8316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3612abf60008383614680565b600061105e8284615b21565b825460009081908015614e6d5785614e26600183615be8565b81548110614e3657614e36615d62565b60009182526020909120015464010000000090047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16614e70565b60005b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff169250614e9e83858763ffffffff16565b9150600081118015614edc57504386614eb8600184615be8565b81548110614ec857614ec8615d62565b60009182526020909120015463ffffffff16145b15614f6657614eea826151ef565b86614ef6600184615be8565b81548110614f0657614f06615d62565b9060005260206000200160000160046101000a8154817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff02191690837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff160217905550614fe6565b856040518060400160405280614f7b436143b3565b63ffffffff168152602001614f8f856151ef565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff90811690915282546001810184556000938452602093849020835194909301519091166401000000000263ffffffff909316929092179101555b50935093915050565b600061105e8284615be8565b73ffffffffffffffffffffffffffffffffffffffff821661509e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401611127565b73ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604090205481811015615154576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152608401611127565b73ffffffffffffffffffffffffffffffffffffffff83166000908152602081905260408120838303905560028054849290615190908490615be8565b909155505060405182815260009073ffffffffffffffffffffffffffffffffffffffff8516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a361103a83600084614680565b60007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff821115614449576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203260448201527f32342062697473000000000000000000000000000000000000000000000000006064820152608401611127565b803573ffffffffffffffffffffffffffffffffffffffff811681146152c157600080fd5b919050565b60008083601f8401126152d857600080fd5b50813567ffffffffffffffff8111156152f057600080fd5b6020830191508360208260051b850101111561530b57600080fd5b9250929050565b600082601f83011261532357600080fd5b813567ffffffffffffffff8082111561533e5761533e615d91565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190828211818310171561538457615384615d91565b8160405283815286602085880101111561539d57600080fd5b836020870160208301376000602085830101528094505050505092915050565b803560ff811681146152c157600080fd5b6000602082840312156153e057600080fd5b61105e8261529d565b600080604083850312156153fc57600080fd5b6154058361529d565b91506154136020840161529d565b90509250929050565b60008060006060848603121561543157600080fd5b61543a8461529d565b92506154486020850161529d565b9150604084013590509250925092565b600080600080600080600060e0888a03121561547357600080fd5b61547c8861529d565b965061548a6020890161529d565b955060408801359450606088013593506154a6608089016153bd565b925060a0880135915060c0880135905092959891949750929550565b600080604083850312156154d557600080fd5b6154de8361529d565b946020939093013593505050565b60008060006060848603121561550157600080fd5b61550a8461529d565b925060208401359150604084013561ffff8116811461552857600080fd5b809150509250925092565b60008060008060008060c0878903121561554c57600080fd5b6155558761529d565b95506020870135945060408701359350615571606088016153bd565b92506080870135915060a087013590509295509295509295565b6000806040838503121561559e57600080fd5b6155a78361529d565b9150602083013563ffffffff811681146155c057600080fd5b809150509250929050565b600080602083850312156155de57600080fd5b823567ffffffffffffffff8111156155f557600080fd5b615601858286016152c6565b90969095509350505050565b6000806000806060858703121561562357600080fd5b843567ffffffffffffffff81111561563a57600080fd5b615646878288016152c6565b90989097506020870135966040013595509350505050565b60006020828403121561567057600080fd5b8151801515811461105e57600080fd5b60006020828403121561569257600080fd5b5035919050565b6000806000606084860312156156ae57600080fd5b505081359360208301359350604090920135919050565b6000602082840312156156d757600080fd5b5051919050565b6000806000604084860312156156f357600080fd5b83359250602084013567ffffffffffffffff8082111561571257600080fd5b818601915086601f83011261572657600080fd5b81358181111561573557600080fd5b87602082850101111561574757600080fd5b6020830194508093505050509250925092565b60008060006060848603121561576f57600080fd5b8335925060208401359150604084013567ffffffffffffffff81111561579457600080fd5b6157a086828701615312565b9150509250925092565b600080600080608085870312156157c057600080fd5b843593506020850135925060408501359150606085013567ffffffffffffffff8111156157ec57600080fd5b6157f887828801615312565b91505092959194509250565b600081518084526020808501945080840160005b8381101561583457815187529582019590820190600101615818565b509495945050505050565b60008151808452615857816020860160208601615bff565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b8051608080845281519084018190526000916020919082019060a0860190845b818110156158db57835173ffffffffffffffffffffffffffffffffffffffff16835292840192918401916001016158a9565b5050828501519150858103838701526158f48183615804565b925050506040830151848203604086015261590f828261583f565b9150506060830151615925606086018215159052565b509392505050565b7fffffffff000000000000000000000000000000000000000000000000000000008316815260008251615967816004850160208701615bff565b919091016004019392505050565b60008251615987818460208701615bff565b9190910192915050565b6020808252825182820181905260009190848201906040850190845b818110156159c9578351835292840192918401916001016159ad565b50909695505050505050565b848152600073ffffffffffffffffffffffffffffffffffffffff808616602084015280851660408401525060806060830152615a146080830184615889565b9695505050505050565b60208152600061105e602083018461583f565b838152606060208201526000615a4a6060830185615804565b9050826040830152949350505050565b838152602081018390526060810160048310615a9f577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b826040830152949350505050565b6000808212827f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03841381151615615ae757615ae7615d04565b827f8000000000000000000000000000000000000000000000000000000000000000038412811615615b1b57615b1b615d04565b50500190565b60008219821115615b3457615b34615d04565b500190565b600082615b6f577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000808312837f800000000000000000000000000000000000000000000000000000000000000001831281151615615bae57615bae615d04565b837f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff018313811615615be257615be2615d04565b50500390565b600082821015615bfa57615bfa615d04565b500390565b60005b83811015615c1a578181015183820152602001615c02565b83811115610e115750506000910152565b600181811c90821680615c3f57607f821691505b6020821081141561467a577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415615cab57615cab615d04565b5060010190565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415615cab57615cab615d04565b600060ff821660ff811415615cfb57615cfb615d04565b60010192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfea26469706673582212201e05f5b1bae60eca8550ae4445b26df47511166ad83ff59a34ec662ad298677364736f6c63430008060033000000000000000000000000cb0e14e96f2cefa8550ad8e4aea344f211e5061d000000000000000000000000000000000000000000000000000000000024ea0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d2f000000000000000000000000000ba12222222228d8ba445958a75a0704d566bf2c8000000000000000000000000cafe001067cdef266afb7eb5a286dcfd277f3de5000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2cb0e14e96f2cefa8550ad8e4aea344f211e5061d00020000000000000000011a
Deployed Bytecode
0x60806040526004361061036f5760003560e01c8063818dc4ce116101c6578063b69871ef116100f7578063dd62ed3e11610095578063f2fde38b1161006f578063f2fde38b14610bb8578063f821902d14610bd8578063fdaf7bde14610c0c578063ff96df4414610c4057600080fd5b8063dd62ed3e14610ad2578063f003760014610b25578063f1127ed814610b5957600080fd5b8063bfe91734116100d1578063bfe9173414610a19578063c3cda52014610a39578063d505accf14610a59578063d74fbb1814610a7957600080fd5b8063b69871ef146109a5578063b6b55f25146109c5578063bc163846146109e557600080fd5b80639ab24eb011610164578063a9059cbb1161013e578063a9059cbb14610904578063ad5c464814610924578063b0d88d7f14610958578063b1b545e81461097857600080fd5b80639ab24eb0146108905780639f8d7842146108b0578063a457c2d7146108e457600080fd5b8063858b3792116101a0578063858b3792146108105780638da5cb5b146108305780638e539e8c1461085b57806395d89b411461087b57600080fd5b8063818dc4ce146107c557806382a89dc9146107e55780638456cb59146107fb57600080fd5b80633f4ba83a116102a05780636fcfff451161023e578063745400c911610218578063745400c9146107455780637ad28c51146107655780637e62eab8146107855780637ecebe00146107a557600080fd5b80636fcfff45146106b857806370a08231146106ed578063715018a61461073057600080fd5b8063587cde1e1161027a578063587cde1e146106025780635c19a95c146106485780635c975abb1461066857806368d8bb561461069857600080fd5b80633f4ba83a1461059957806349de0b13146105ae5780634f064086146105ce57600080fd5b806323b872dd1161030d5780633644e515116102e75780633644e515146104eb57806338d52e0f1461050057806339509351146105595780633a46b1a81461057957600080fd5b806323b872dd1461047b578063313ce5671461049b578063351ec77e146104b757600080fd5b806318160ddd1161034957806318160ddd1461041157806318818ccd146104265780631ad66ed81461043b5780631d271f801461045b57600080fd5b806306fdde031461037b578063095ea7b3146103a6578063138504c4146103d657600080fd5b3661037657005b600080fd5b34801561038757600080fd5b50610390610c56565b60405161039d9190615a1e565b60405180910390f35b3480156103b257600080fd5b506103c66103c13660046154c2565b610ce8565b604051901515815260200161039d565b3480156103e257600080fd5b506104036103f13660046153ce565b600e6020526000908152604090205481565b60405190815260200161039d565b34801561041d57600080fd5b50600254610403565b61043961043436600461575a565b610d00565b005b34801561044757600080fd5b506104396104563660046157aa565b610e17565b34801561046757600080fd5b506104396104763660046155cb565b610ffc565b34801561048757600080fd5b506103c661049636600461541c565b61103f565b3480156104a757600080fd5b506040516012815260200161039d565b3480156104c357600080fd5b506104037f000000000000000000000000000000000000000000000000000000000000000081565b3480156104f757600080fd5b50610403611065565b34801561050c57600080fd5b506105347f000000000000000000000000cb0e14e96f2cefa8550ad8e4aea344f211e5061d81565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161039d565b34801561056557600080fd5b506103c66105743660046154c2565b611074565b34801561058557600080fd5b506104036105943660046154c2565b6110c0565b3480156105a557600080fd5b5061043961115f565b3480156105ba57600080fd5b506104396105c9366004615680565b6111ea565b3480156105da57600080fd5b506105347f000000000000000000000000cb0e14e96f2cefa8550ad8e4aea344f211e5061d81565b34801561060e57600080fd5b5061053461061d3660046153ce565b73ffffffffffffffffffffffffffffffffffffffff9081166000908152600760205260409020541690565b34801561065457600080fd5b506104396106633660046153ce565b6113a9565b34801561067457600080fd5b50600a5474010000000000000000000000000000000000000000900460ff166103c6565b3480156106a457600080fd5b506104396106b336600461560d565b6113b6565b3480156106c457600080fd5b506106d86106d33660046153ce565b6114f7565b60405163ffffffff909116815260200161039d565b3480156106f957600080fd5b506104036107083660046153ce565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b34801561073c57600080fd5b5061043961152c565b34801561075157600080fd5b50610439610760366004615680565b6115b7565b34801561077157600080fd5b50610439610780366004615680565b611690565b34801561079157600080fd5b506104396107a0366004615680565b6117d9565b3480156107b157600080fd5b506104036107c03660046153ce565b6118ad565b3480156107d157600080fd5b506104396107e036600461560d565b6118d8565b3480156107f157600080fd5b50610403600c5481565b34801561080757600080fd5b50610439611aca565b34801561081c57600080fd5b5061043961082b366004615699565b611b53565b34801561083c57600080fd5b50600a5473ffffffffffffffffffffffffffffffffffffffff16610534565b34801561086757600080fd5b50610403610876366004615680565b611c4e565b34801561088757600080fd5b50610390611cc4565b34801561089c57600080fd5b506104036108ab3660046153ce565b611cd3565b3480156108bc57600080fd5b506104037fcb0e14e96f2cefa8550ad8e4aea344f211e5061d00020000000000000000011a81565b3480156108f057600080fd5b506103c66108ff3660046154c2565b611d9e565b34801561091057600080fd5b506103c661091f3660046154c2565b611e7a565b34801561093057600080fd5b506105347f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b34801561096457600080fd5b50610439610973366004615699565b611e88565b34801561098457600080fd5b506109986109933660046154ec565b612037565b60405161039d9190615991565b3480156109b157600080fd5b506104396109c03660046155cb565b6121a5565b3480156109d157600080fd5b506104396109e0366004615680565b6121e3565b3480156109f157600080fd5b506105347f000000000000000000000000ba12222222228d8ba445958a75a0704d566bf2c881565b348015610a2557600080fd5b50610439610a343660046156de565b6122b9565b348015610a4557600080fd5b50610439610a54366004615533565b612322565b348015610a6557600080fd5b50610439610a74366004615458565b612490565b348015610a8557600080fd5b50610ac3610a943660046154c2565b600d60209081526000928352604080842090915290825290208054600182015460029092015490919060ff1683565b60405161039d93929190615a5a565b348015610ade57600080fd5b50610403610aed3660046153e9565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b348015610b3157600080fd5b506104037f0000000000000000000000000000000000000000000000000000000000d2f00081565b348015610b6557600080fd5b50610b79610b7436600461558b565b61264f565b60408051825163ffffffff1681526020928301517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16928101929092520161039d565b348015610bc457600080fd5b50610439610bd33660046153ce565b6126f5565b348015610be457600080fd5b506105347f000000000000000000000000cafe001067cdef266afb7eb5a286dcfd277f3de581565b348015610c1857600080fd5b506103c67f000000000000000000000000000000000000000000000000000000000000000081565b348015610c4c57600080fd5b50610403600b5481565b606060038054610c6590615c2b565b80601f0160208091040260200160405190810160405280929190818152602001828054610c9190615c2b565b8015610cde5780601f10610cb357610100808354040283529160200191610cde565b820191906000526020600020905b815481529060010190602001808311610cc157829003601f168201915b5050505050905090565b600033610cf6818585612822565b5060019392505050565b610d2a7f000000000000000000000000cafe001067cdef266afb7eb5a286dcfd277f3de5826129cd565b6040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018490527f000000000000000000000000cafe001067cdef266afb7eb5a286dcfd277f3de573ffffffffffffffffffffffffffffffffffffffff16906323b872dd90606401602060405180830381600087803b158015610dbe57600080fd5b505af1158015610dd2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610df6919061565e565b506000610e068434856000612ac3565b9050610e1181613306565b50505050565b610e417f000000000000000000000000cafe001067cdef266afb7eb5a286dcfd277f3de5826129cd565b6040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018590527f000000000000000000000000cafe001067cdef266afb7eb5a286dcfd277f3de573ffffffffffffffffffffffffffffffffffffffff16906323b872dd90606401602060405180830381600087803b158015610ed557600080fd5b505af1158015610ee9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f0d919061565e565b506040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018490527f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff16906323b872dd90606401602060405180830381600087803b158015610fa257600080fd5b505af1158015610fb6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fda919061565e565b506000610fea8585856001612ac3565b9050610ff581613306565b5050505050565b60005b8181101561103a5761102883838381811061101c5761101c615d62565b905060200201356111ea565b8061103281615cb2565b915050610fff565b505050565b60003361104d8582856133cd565b61105885858561349e565b60019150505b9392505050565b600061106f613757565b905090565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152812054909190610cf690829086906110bb908790615b21565b612822565b6000438210611130576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e65640060448201526064015b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8316600090815260086020526040902061105e908361388b565b600a5473ffffffffffffffffffffffffffffffffffffffff1633146111e0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611127565b6111e8613972565b565b600a5474010000000000000000000000000000000000000000900460ff161561126f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401611127565b60008112156112ad576040517fe568d45b00000000000000000000000000000000000000000000000000000000815260048101829052602401611127565b336000908152600d6020908152604080832084845290915290206001600282015460ff1660038111156112e2576112e2615d33565b1461131c576040517f16dcca6500000000000000000000000000000000000000000000000000000000815260048101839052602401611127565b6002810180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600317905580546113553382613a6b565b80600c60008282546113679190615be8565b9091555050604051818152339084907f9839bcbc0747668ab7ec532a9f605624bc78ec8b691311e6d0f5c4342fe00c30906020015b60405180910390a3505050565b6113b33382613a75565b50565b6000805b60ff8116851115611407576113e986868360ff168181106113dd576113dd615d62565b90506020020135613b13565b6113f39083615b21565b9150806113ff81615ce4565b9150506113ba565b506000806114188386866000613c8a565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081523360048201526024810182905291935091507f000000000000000000000000cafe001067cdef266afb7eb5a286dcfd277f3de573ffffffffffffffffffffffffffffffffffffffff169063a9059cbb90604401602060405180830381600087803b1580156114ab57600080fd5b505af11580156114bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114e3919061565e565b506114ee3383614313565b50505050505050565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260086020526040812054611526906143b3565b92915050565b600a5473ffffffffffffffffffffffffffffffffffffffff1633146115ad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611127565b6111e8600061444d565b336000908152600e60205260408120805490826115d383615c79565b9190505590506115e333836144c4565b336000908152600d602090815260408083208484529091529020828155600b5461160d9042615b21565b6001808301919091556002820180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168280021790555082600c60008282546116579190615b21565b9091555050604051838152339083907ff54d1c42121ce4641106148d5433c0035bf5ece8b312206ee5065cf3fcc978509060200161139c565b600a5473ffffffffffffffffffffffffffffffffffffffff163314611711576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611127565b7f000000000000000000000000000000000000000000000000000000000000000081108061175e57507f0000000000000000000000000000000000000000000000000000000000d2f00081115b15611798576040517f87a5a6a700000000000000000000000000000000000000000000000000000000815260048101829052602401611127565b600b5460408051918252602082018390527f8dce199a9d83266352e70738b2dda1e7299a0ce43f7e5b9161c7ad6d571d47e9910160405180910390a1600b55565b60006117e482613b13565b6040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018290529091507f000000000000000000000000cb0e14e96f2cefa8550ad8e4aea344f211e5061d73ffffffffffffffffffffffffffffffffffffffff169063a9059cbb90604401602060405180830381600087803b15801561187557600080fd5b505af1158015611889573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061103a919061565e565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260056020526040812054611526565b6000805b60ff811685111561191d576118ff86868360ff168181106113dd576113dd615d62565b6119099083615b21565b91508061191581615ce4565b9150506118dc565b5060008061192e8386866001613c8a565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081523360048201526024810182905291935091507f000000000000000000000000cafe001067cdef266afb7eb5a286dcfd277f3de573ffffffffffffffffffffffffffffffffffffffff169063a9059cbb90604401602060405180830381600087803b1580156119c157600080fd5b505af11580156119d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119f9919061565e565b506040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018390527f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff169063a9059cbb90604401602060405180830381600087803b158015611a8857600080fd5b505af1158015611a9c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ac0919061565e565b5050505050505050565b600a5473ffffffffffffffffffffffffffffffffffffffff163314611b4b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611127565b6111e86144ce565b6000611b5e84613b13565b9050600080611b708386866000613c8a565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081523360048201526024810182905291935091507f000000000000000000000000cafe001067cdef266afb7eb5a286dcfd277f3de573ffffffffffffffffffffffffffffffffffffffff169063a9059cbb90604401602060405180830381600087803b158015611c0357600080fd5b505af1158015611c17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c3b919061565e565b50611c463383614313565b505050505050565b6000438210611cb9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e6564006044820152606401611127565b61152660098361388b565b606060048054610c6590615c2b565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600860205260408120548015611d765773ffffffffffffffffffffffffffffffffffffffff83166000908152600860205260409020611d2f600183615be8565b81548110611d3f57611d3f615d62565b60009182526020909120015464010000000090047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16611d79565b60005b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff169392505050565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915281205490919083811015611e62576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401611127565b611e6f8286868403612822565b506001949350505050565b600033610cf681858561349e565b6000611e9384613b13565b9050600080611ea58386866001613c8a565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081523360048201526024810182905291935091507f000000000000000000000000cafe001067cdef266afb7eb5a286dcfd277f3de573ffffffffffffffffffffffffffffffffffffffff169063a9059cbb90604401602060405180830381600087803b158015611f3857600080fd5b505af1158015611f4c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f70919061565e565b506040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018390527f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff169063a9059cbb90604401602060405180830381600087803b158015611fff57600080fd5b505af1158015612013573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114ee919061565e565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600e602052604090205460609080841261206d575061105e565b6000841215612083576120808185615aad565b93505b600061209361ffff851686615aad565b9050600081136120a457505061105e565b818113156120af5750805b60008512156120bd57600094505b73ffffffffffffffffffffffffffffffffffffffff86166000908152600d602052604090206120ec8683615b74565b67ffffffffffffffff81111561210457612104615d91565b60405190808252806020026020018201604052801561212d578160200160208202803683370190505b5093506000865b8381121561219857600160008281526020859052604090206002015460ff16600381111561216457612164615d33565b1415612190578086838060010194508151811061218357612183615d62565b6020026020010181815250505b600101612134565b5084525050509392505050565b60005b8181101561103a576121d18383838181106121c5576121c5615d62565b905060200201356117d9565b806121db81615cb2565b9150506121a8565b6040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018290527f000000000000000000000000cb0e14e96f2cefa8550ad8e4aea344f211e5061d73ffffffffffffffffffffffffffffffffffffffff16906323b872dd90606401602060405180830381600087803b15801561227757600080fd5b505af115801561228b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122af919061565e565b506113b381613306565b6123197f000000000000000000000000cb0e14e96f2cefa8550ad8e4aea344f211e5061d83838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506129cd92505050565b61103a836121e3565b8342111561238c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4552433230566f7465733a207369676e617475726520657870697265640000006044820152606401611127565b604080517fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf602082015273ffffffffffffffffffffffffffffffffffffffff88169181019190915260608101869052608081018590526000906124139061240b9060a001604051602081830303815290604052805190602001206145ba565b858585614623565b905061241e8161464b565b8614612486576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433230566f7465733a20696e76616c6964206e6f6e6365000000000000006044820152606401611127565b6114ee8188613a75565b834211156124fa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606401611127565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886125298c61464b565b60408051602081019690965273ffffffffffffffffffffffffffffffffffffffff94851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000612591826145ba565b905060006125a182878787614623565b90508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612638576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152606401611127565b6126438a8a8a612822565b50505050505050505050565b604080518082019091526000808252602082015273ffffffffffffffffffffffffffffffffffffffff83166000908152600860205260409020805463ffffffff84169081106126a0576126a0615d62565b60009182526020918290206040805180820190915291015463ffffffff8116825264010000000090047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16918101919091529392505050565b600a5473ffffffffffffffffffffffffffffffffffffffff163314612776576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611127565b73ffffffffffffffffffffffffffffffffffffffff8116612819576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401611127565b6113b38161444d565b73ffffffffffffffffffffffffffffffffffffffff83166128c4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401611127565b73ffffffffffffffffffffffffffffffffffffffff8216612967576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401611127565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910161139c565b805160e01415612abf5760008273ffffffffffffffffffffffffffffffffffffffff1663d505accf60e01b83604051602001612a0a92919061592d565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815290829052612a4291615975565b6000604051808303816000865af19150503d8060008114612a7f576040519150601f19603f3d011682016040523d82523d6000602084013e612a84565b606091505b505090508061103a576040517fb78cb0dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050565b604080516002808252606082018352600092839291906020830190803683370190505090508481600081518110612afc57612afc615d62565b6020026020010181815250508581600181518110612b1c57612b1c615d62565b60209081029190910101526040805160028082526060820190925260009181602001602082028036833701905050905083612b58576000612b7a565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc25b81600081518110612b8d57612b8d615d62565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f000000000000000000000000cafe001067cdef266afb7eb5a286dcfd277f3de581600181518110612bfb57612bfb615d62565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f000000000000000000000000000000000000000000000000000000000000000015612d5a5780600181518110612c6e57612c6e615d62565b602002602001015181600081518110612c8957612c89615d62565b602002602001015182600081518110612ca457612ca4615d62565b6020026020010183600181518110612cbe57612cbe615d62565b73ffffffffffffffffffffffffffffffffffffffff938416602091820292909201015291169052815182906001908110612cfa57612cfa615d62565b602002602001015182600081518110612d1557612d15615d62565b602002602001015183600081518110612d3057612d30615d62565b6020026020010184600181518110612d4a57612d4a615d62565b6020908102919091010191909152525b600060018387604051602001612d7293929190615a31565b604080518083037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe00181526080830182528483526020830186905282820181905260006060840181905291517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529093507f000000000000000000000000cb0e14e96f2cefa8550ad8e4aea344f211e5061d73ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b158015612e4357600080fd5b505afa158015612e57573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e7b91906156c5565b6040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000ba12222222228d8ba445958a75a0704d566bf2c881166004830152602482018d90529192507f000000000000000000000000cafe001067cdef266afb7eb5a286dcfd277f3de59091169063095ea7b390604401602060405180830381600087803b158015612f3057600080fd5b505af1158015612f44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f68919061565e565b508615613127576040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000ba12222222228d8ba445958a75a0704d566bf2c881166004830152602482018b90527f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2169063095ea7b390604401602060405180830381600087803b15801561301f57600080fd5b505af1158015613033573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613057919061565e565b506040517fb95cac2800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000ba12222222228d8ba445958a75a0704d566bf2c8169063b95cac28906130f0907fcb0e14e96f2cefa8550ad8e4aea344f211e5061d00020000000000000000011a903090819088906004016159d5565b600060405180830381600087803b15801561310a57600080fd5b505af115801561311e573d6000803e3d6000fd5b505050506131f4565b6040517fb95cac2800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000ba12222222228d8ba445958a75a0704d566bf2c8169063b95cac28908b906131c1907fcb0e14e96f2cefa8550ad8e4aea344f211e5061d00020000000000000000011a903090819089906004016159d5565b6000604051808303818588803b1580156131da57600080fd5b505af11580156131ee573d6000803e3d6000fd5b50505050505b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015281907f000000000000000000000000cb0e14e96f2cefa8550ad8e4aea344f211e5061d73ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b15801561327b57600080fd5b505afa15801561328f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132b391906156c5565b6132bd9190615be8565b9550878610156132f9576040517ff114f58200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050505050949350505050565b600a5474010000000000000000000000000000000000000000900460ff161561338b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401611127565b6133953382613a6b565b60405181815233907f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c49060200160405180910390a250565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610e115781811015613491576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401611127565b610e118484848403612822565b73ffffffffffffffffffffffffffffffffffffffff8316613541576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401611127565b73ffffffffffffffffffffffffffffffffffffffff82166135e4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401611127565b73ffffffffffffffffffffffffffffffffffffffff83166000908152602081905260409020548181101561369a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401611127565b73ffffffffffffffffffffffffffffffffffffffff8085166000908152602081905260408082208585039055918516815290812080548492906136de908490615b21565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161374491815260200190565b60405180910390a3610e11848484614680565b60003073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000593f39a4ba26a9c8ed2128ac95d109e8e403c485161480156137bd57507f000000000000000000000000000000000000000000000000000000000000000146145b156137e757507f0459a6c16012633257034f821698cb7cb89129e403ba3ce328641cf19138228590565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527f93f41fb7beeb0d9254533eea4e89f46de94ff1cb7aab33da31d7d2413078ee9b828401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b8154600090815b818110156138ef5760006138a6828461468b565b9050848682815481106138bb576138bb615d62565b60009182526020909120015463ffffffff1611156138db578092506138e9565b6138e6816001615b21565b91505b50613892565b81156139485784613901600184615be8565b8154811061391157613911615d62565b60009182526020909120015464010000000090047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1661394b565b60005b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1695945050505050565b600a5474010000000000000000000000000000000000000000900460ff166139f6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401611127565b600a80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b612abf82826146a6565b73ffffffffffffffffffffffffffffffffffffffff8281166000818152600760208181526040808420805485845282862054949093528787167fffffffffffffffffffffffff00000000000000000000000000000000000000008416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4610e1182848361476c565b600080821215613b52576040517fe568d45b00000000000000000000000000000000000000000000000000000000815260048101839052602401611127565b336000908152600d6020908152604080832085845290915290206001600282015460ff166003811115613b8757613b87615d33565b14613bc1576040517f5839c30000000000000000000000000000000000000000000000000000000000815260048101849052602401611127565b4281600101541115613c02576040517f817147bc00000000000000000000000000000000000000000000000000000000815260048101849052602401611127565b600281810180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690911790558054600c8054829190600090613c47908490615be8565b9091555050604051818152339085907f89637e85bd55311d863f01ccfbe86b07a3688fd60d241ca568b1d672e38b87eb9060200160405180910390a39392505050565b6040805160028082526060820183526000928392839290916020830190803683370190505090508481600081518110613cc557613cc5615d62565b6020026020010181815250508581600181518110613ce557613ce5615d62565b60209081029190910101526040805160028082526060820190925260009181602001602082028036833701905050905084613d21576000613d43565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc25b81600081518110613d5657613d56615d62565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f000000000000000000000000cafe001067cdef266afb7eb5a286dcfd277f3de581600181518110613dc457613dc4615d62565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f000000000000000000000000000000000000000000000000000000000000000015613f235780600181518110613e3757613e37615d62565b602002602001015181600081518110613e5257613e52615d62565b602002602001015182600081518110613e6d57613e6d615d62565b6020026020010183600181518110613e8757613e87615d62565b73ffffffffffffffffffffffffffffffffffffffff938416602091820292909201015291169052815182906001908110613ec357613ec3615d62565b602002602001015182600081518110613ede57613ede615d62565b602002602001015183600081518110613ef957613ef9615d62565b6020026020010184600181518110613f1357613f13615d62565b6020908102919091010191909152525b6040805160016020820152908101899052600090606001604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152608083018252848352602083018690528282018190526000606084015290517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000ba12222222228d8ba445958a75a0704d566bf2c881166004830152602482018d90529193507f000000000000000000000000cb0e14e96f2cefa8550ad8e4aea344f211e5061d9091169063095ea7b390604401602060405180830381600087803b15801561403657600080fd5b505af115801561404a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061406e919061565e565b506040517f8bdb391300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000ba12222222228d8ba445958a75a0704d566bf2c81690638bdb391390614107907fcb0e14e96f2cefa8550ad8e4aea344f211e5061d00020000000000000000011a903090819087906004016159d5565b600060405180830381600087803b15801561412157600080fd5b505af1158015614135573d6000803e3d6000fd5b50506040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201527f000000000000000000000000cafe001067cdef266afb7eb5a286dcfd277f3de573ffffffffffffffffffffffffffffffffffffffff1692506370a08231915060240160206040518083038186803b1580156141be57600080fd5b505afa1580156141d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906141f691906156c5565b94508661420357476142c0565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201527f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b15801561428857600080fd5b505afa15801561429c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906142c091906156c5565b9550888510806142cf57508786105b15614306576040517ff114f58200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050505094509492505050565b8015612abf5760008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d8060008114614373576040519150601f19603f3d011682016040523d82523d6000602084013e614378565b606091505b505090508061103a576040517f6200562d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600063ffffffff821115614449576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201527f32206269747300000000000000000000000000000000000000000000000000006064820152608401611127565b5090565b600a805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612abf8282614911565b600a5474010000000000000000000000000000000000000000900460ff1615614553576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401611127565b600a80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613a413390565b60006115266145c7613757565b836040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b600080600061463487878787614929565b9150915061464181614a41565b5095945050505050565b73ffffffffffffffffffffffffffffffffffffffff811660009081526005602052604090208054600181018255905b50919050565b61103a838383614c9a565b600061469a6002848418615b39565b61105e90848416615b21565b6146b08282614cd9565b6002547bffffffffffffffffffffffffffffffffffffffffffffffffffffffff101561475e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f4552433230566f7465733a20746f74616c20737570706c79207269736b73206f60448201527f766572666c6f77696e6720766f746573000000000000000000000000000000006064820152608401611127565b610e116009614e0183614e0d565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156147a85750600081115b1561103a5773ffffffffffffffffffffffffffffffffffffffff83161561485d5773ffffffffffffffffffffffffffffffffffffffff8316600090815260086020526040812081906147fd90614fef85614e0d565b915091508473ffffffffffffffffffffffffffffffffffffffff167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051614852929190918252602082015260400190565b60405180910390a250505b73ffffffffffffffffffffffffffffffffffffffff82161561103a5773ffffffffffffffffffffffffffffffffffffffff8216600090815260086020526040812081906148ad90614e0185614e0d565b915091508373ffffffffffffffffffffffffffffffffffffffff167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051614902929190918252602082015260400190565b60405180910390a25050505050565b61491b8282614ffb565b610e116009614fef83614e0d565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156149605750600090506003614a38565b8460ff16601b1415801561497857508460ff16601c14155b156149895750600090506004614a38565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156149dd573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff8116614a3157600060019250925050614a38565b9150600090505b94509492505050565b6000816004811115614a5557614a55615d33565b1415614a5e5750565b6001816004811115614a7257614a72615d33565b1415614ada576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401611127565b6002816004811115614aee57614aee615d33565b1415614b56576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401611127565b6003816004811115614b6a57614b6a615d33565b1415614bf8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401611127565b6004816004811115614c0c57614c0c615d33565b14156113b3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401611127565b73ffffffffffffffffffffffffffffffffffffffff83811660009081526007602052604080822054858416835291205461103a9291821691168361476c565b73ffffffffffffffffffffffffffffffffffffffff8216614d56576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401611127565b8060026000828254614d689190615b21565b909155505073ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604081208054839290614da2908490615b21565b909155505060405181815273ffffffffffffffffffffffffffffffffffffffff8316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3612abf60008383614680565b600061105e8284615b21565b825460009081908015614e6d5785614e26600183615be8565b81548110614e3657614e36615d62565b60009182526020909120015464010000000090047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16614e70565b60005b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff169250614e9e83858763ffffffff16565b9150600081118015614edc57504386614eb8600184615be8565b81548110614ec857614ec8615d62565b60009182526020909120015463ffffffff16145b15614f6657614eea826151ef565b86614ef6600184615be8565b81548110614f0657614f06615d62565b9060005260206000200160000160046101000a8154817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff02191690837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff160217905550614fe6565b856040518060400160405280614f7b436143b3565b63ffffffff168152602001614f8f856151ef565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff90811690915282546001810184556000938452602093849020835194909301519091166401000000000263ffffffff909316929092179101555b50935093915050565b600061105e8284615be8565b73ffffffffffffffffffffffffffffffffffffffff821661509e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401611127565b73ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604090205481811015615154576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152608401611127565b73ffffffffffffffffffffffffffffffffffffffff83166000908152602081905260408120838303905560028054849290615190908490615be8565b909155505060405182815260009073ffffffffffffffffffffffffffffffffffffffff8516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a361103a83600084614680565b60007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff821115614449576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203260448201527f32342062697473000000000000000000000000000000000000000000000000006064820152608401611127565b803573ffffffffffffffffffffffffffffffffffffffff811681146152c157600080fd5b919050565b60008083601f8401126152d857600080fd5b50813567ffffffffffffffff8111156152f057600080fd5b6020830191508360208260051b850101111561530b57600080fd5b9250929050565b600082601f83011261532357600080fd5b813567ffffffffffffffff8082111561533e5761533e615d91565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190828211818310171561538457615384615d91565b8160405283815286602085880101111561539d57600080fd5b836020870160208301376000602085830101528094505050505092915050565b803560ff811681146152c157600080fd5b6000602082840312156153e057600080fd5b61105e8261529d565b600080604083850312156153fc57600080fd5b6154058361529d565b91506154136020840161529d565b90509250929050565b60008060006060848603121561543157600080fd5b61543a8461529d565b92506154486020850161529d565b9150604084013590509250925092565b600080600080600080600060e0888a03121561547357600080fd5b61547c8861529d565b965061548a6020890161529d565b955060408801359450606088013593506154a6608089016153bd565b925060a0880135915060c0880135905092959891949750929550565b600080604083850312156154d557600080fd5b6154de8361529d565b946020939093013593505050565b60008060006060848603121561550157600080fd5b61550a8461529d565b925060208401359150604084013561ffff8116811461552857600080fd5b809150509250925092565b60008060008060008060c0878903121561554c57600080fd5b6155558761529d565b95506020870135945060408701359350615571606088016153bd565b92506080870135915060a087013590509295509295509295565b6000806040838503121561559e57600080fd5b6155a78361529d565b9150602083013563ffffffff811681146155c057600080fd5b809150509250929050565b600080602083850312156155de57600080fd5b823567ffffffffffffffff8111156155f557600080fd5b615601858286016152c6565b90969095509350505050565b6000806000806060858703121561562357600080fd5b843567ffffffffffffffff81111561563a57600080fd5b615646878288016152c6565b90989097506020870135966040013595509350505050565b60006020828403121561567057600080fd5b8151801515811461105e57600080fd5b60006020828403121561569257600080fd5b5035919050565b6000806000606084860312156156ae57600080fd5b505081359360208301359350604090920135919050565b6000602082840312156156d757600080fd5b5051919050565b6000806000604084860312156156f357600080fd5b83359250602084013567ffffffffffffffff8082111561571257600080fd5b818601915086601f83011261572657600080fd5b81358181111561573557600080fd5b87602082850101111561574757600080fd5b6020830194508093505050509250925092565b60008060006060848603121561576f57600080fd5b8335925060208401359150604084013567ffffffffffffffff81111561579457600080fd5b6157a086828701615312565b9150509250925092565b600080600080608085870312156157c057600080fd5b843593506020850135925060408501359150606085013567ffffffffffffffff8111156157ec57600080fd5b6157f887828801615312565b91505092959194509250565b600081518084526020808501945080840160005b8381101561583457815187529582019590820190600101615818565b509495945050505050565b60008151808452615857816020860160208601615bff565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b8051608080845281519084018190526000916020919082019060a0860190845b818110156158db57835173ffffffffffffffffffffffffffffffffffffffff16835292840192918401916001016158a9565b5050828501519150858103838701526158f48183615804565b925050506040830151848203604086015261590f828261583f565b9150506060830151615925606086018215159052565b509392505050565b7fffffffff000000000000000000000000000000000000000000000000000000008316815260008251615967816004850160208701615bff565b919091016004019392505050565b60008251615987818460208701615bff565b9190910192915050565b6020808252825182820181905260009190848201906040850190845b818110156159c9578351835292840192918401916001016159ad565b50909695505050505050565b848152600073ffffffffffffffffffffffffffffffffffffffff808616602084015280851660408401525060806060830152615a146080830184615889565b9695505050505050565b60208152600061105e602083018461583f565b838152606060208201526000615a4a6060830185615804565b9050826040830152949350505050565b838152602081018390526060810160048310615a9f577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b826040830152949350505050565b6000808212827f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03841381151615615ae757615ae7615d04565b827f8000000000000000000000000000000000000000000000000000000000000000038412811615615b1b57615b1b615d04565b50500190565b60008219821115615b3457615b34615d04565b500190565b600082615b6f577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000808312837f800000000000000000000000000000000000000000000000000000000000000001831281151615615bae57615bae615d04565b837f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff018313811615615be257615be2615d04565b50500390565b600082821015615bfa57615bfa615d04565b500390565b60005b83811015615c1a578181015183820152602001615c02565b83811115610e115750506000910152565b600181811c90821680615c3f57607f821691505b6020821081141561467a577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415615cab57615cab615d04565b5060010190565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415615cab57615cab615d04565b600060ff821660ff811415615cfb57615cfb615d04565b60010192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfea26469706673582212201e05f5b1bae60eca8550ae4445b26df47511166ad83ff59a34ec662ad298677364736f6c63430008060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000cb0e14e96f2cefa8550ad8e4aea344f211e5061d000000000000000000000000000000000000000000000000000000000024ea0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d2f000000000000000000000000000ba12222222228d8ba445958a75a0704d566bf2c8000000000000000000000000cafe001067cdef266afb7eb5a286dcfd277f3de5000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2cb0e14e96f2cefa8550ad8e4aea344f211e5061d00020000000000000000011a
-----Decoded View---------------
Arg [0] : _asset (address): 0xCB0e14e96f2cEFA8550ad8e4aeA344F211E5061d
Arg [1] : _timeLockBlocks (uint256): 2419200
Arg [2] : _minTimeLockBlocks (uint256): 0
Arg [3] : _maxTimeLockBlocks (uint256): 13824000
Arg [4] : balancerVault (address): 0xBA12222222228d8Ba445958a75a0704d566BF2C8
Arg [5] : psp (address): 0xcAfE001067cDEF266AfB7Eb5A286dCFD277f3dE5
Arg [6] : weth (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Arg [7] : poolId (bytes32): 0xcb0e14e96f2cefa8550ad8e4aea344f211e5061d00020000000000000000011a
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 000000000000000000000000cb0e14e96f2cefa8550ad8e4aea344f211e5061d
Arg [1] : 000000000000000000000000000000000000000000000000000000000024ea00
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000d2f000
Arg [4] : 000000000000000000000000ba12222222228d8ba445958a75a0704d566bf2c8
Arg [5] : 000000000000000000000000cafe001067cdef266afb7eb5a286dcfd277f3de5
Arg [6] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [7] : cb0e14e96f2cefa8550ad8e4aea344f211e5061d00020000000000000000011a
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.