Overview
POL Balance
POL Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Loading...
Loading
Contract Name:
BobToken
Compiler Version
v0.8.15+commit.e14f2714
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: CC0-1.0 pragma solidity 0.8.15; import "./proxy/EIP1967Admin.sol"; import "./token/ERC677.sol"; import "./token/ERC20Permit.sol"; import "./token/ERC20MintBurn.sol"; import "./token/ERC20Recovery.sol"; import "./token/ERC20Blocklist.sol"; import "./utils/Claimable.sol"; /** * @title BobToken */ contract BobToken is EIP1967Admin, BaseERC20, ERC677, ERC20Permit, ERC20MintBurn, ERC20Recovery, ERC20Blocklist, Claimable { /** * @dev Creates a proxy implementation for BobToken. * @param _self address of the proxy contract, linked to the deployed implementation, * required for correct EIP712 domain derivation. */ constructor(address _self) ERC20Permit(_self) {} /** * @dev Returns the name of the token. */ function name() public view override returns (string memory) { return "BOB"; } /** * @dev Returns the symbol of the token. */ function symbol() public view override returns (string memory) { return "BOB"; } /** * @dev Tells if caller is the contract owner. * Gives ownership rights to the proxy admin as well. * @return true, if caller is the contract owner or proxy admin. */ function _isOwner() internal view override returns (bool) { return super._isOwner() || _admin() == _msgSender(); } }
// SPDX-License-Identifier: CC0-1.0 pragma solidity 0.8.15; /** * @title EIP1967Admin * @dev Upgradeable proxy pattern implementation according to minimalistic EIP1967. */ contract EIP1967Admin { // EIP 1967 // bytes32(uint256(keccak256('eip1967.proxy.admin')) - 1) uint256 internal constant EIP1967_ADMIN_STORAGE = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103; modifier onlyAdmin() { require(msg.sender == _admin(), "EIP1967Admin: not an admin"); _; } function _admin() internal view returns (address res) { assembly { res := sload(EIP1967_ADMIN_STORAGE) } } }
// SPDX-License-Identifier: CC0-1.0 pragma solidity 0.8.15; import "../interfaces/IERC677.sol"; import "../interfaces/IERC677Receiver.sol"; import "./BaseERC20.sol"; /** * @title ERC677 */ abstract contract ERC677 is IERC677, BaseERC20 { /** * @dev ERC677 extension to ERC20 transfer. Will notify receiver after transfer completion. * @param _to address of the tokens receiver. * @param _amount amount of tokens to mint. * @param _data extra data to pass in the notification callback. */ function transferAndCall(address _to, uint256 _amount, bytes calldata _data) external override { _transfer(msg.sender, _to, _amount); require(IERC677Receiver(_to).onTokenTransfer(msg.sender, _amount, _data), "ERC677: callback failed"); } }
// SPDX-License-Identifier: CC0-1.0 pragma solidity 0.8.15; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "../interfaces/IERC20Permit.sol"; import "./BaseERC20.sol"; /** * @title ERC20Permit */ abstract contract ERC20Permit is BaseERC20, IERC20Permit { // EIP712 domain separator bytes32 public immutable DOMAIN_SEPARATOR; // EIP2612 permit typehash bytes32 public constant PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); // Custom "salted" permit typehash // Works exactly the same as EIP2612 permit, except that includes an additional salt, // which should be explicitly signed by the user, as part of the permit message. bytes32 public constant SALTED_PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline,bytes32 salt)"); mapping(address => uint256) public nonces; constructor(address _self) { DOMAIN_SEPARATOR = keccak256( abi.encode( keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"), keccak256(bytes(name())), keccak256("1"), block.chainid, _self ) ); } /** * @dev Allows to spend holder's unlimited amount by the specified spender according to EIP2612. * The function can be called by anyone, but requires having allowance parameters * signed by the holder according to EIP712. * @param _holder The holder's address. * @param _spender The spender's address. * @param _value Allowance value to set as a result of the call. * @param _deadline The deadline timestamp to call the permit function. Must be a timestamp in the future. * Note that timestamps are not precise, malicious miner/validator can manipulate them to some extend. * Assume that there can be a 900 seconds time delta between the desired timestamp and the actual expiration. * @param _v A final byte of signature (ECDSA component). * @param _r The first 32 bytes of signature (ECDSA component). * @param _s The second 32 bytes of signature (ECDSA component). */ function permit( address _holder, address _spender, uint256 _value, uint256 _deadline, uint8 _v, bytes32 _r, bytes32 _s ) external { _checkPermit(_holder, _spender, _value, _deadline, _v, _r, _s); _approve(_holder, _spender, _value); } /** * @dev Cheap shortcut for making sequential calls to permit() + transferFrom() functions. */ function receiveWithPermit(address _holder, uint256 _value, uint256 _deadline, uint8 _v, bytes32 _r, bytes32 _s) public virtual { _checkPermit(_holder, msg.sender, _value, _deadline, _v, _r, _s); // we don't make calls to _approve to avoid unnecessary storage writes // however, emitting ERC20 events is still desired emit Approval(_holder, msg.sender, _value); emit Approval(_holder, msg.sender, 0); _transfer(_holder, msg.sender, _value); } /** * @dev Salted permit modification. */ function saltedPermit( address _holder, address _spender, uint256 _value, uint256 _deadline, bytes32 _salt, uint8 _v, bytes32 _r, bytes32 _s ) external { _checkSaltedPermit(_holder, _spender, _value, _deadline, _salt, _v, _r, _s); _approve(_holder, _spender, _value); } /** * @dev Cheap shortcut for making sequential calls to saltedPermit() + transferFrom() functions. */ function receiveWithSaltedPermit( address _holder, uint256 _value, uint256 _deadline, bytes32 _salt, uint8 _v, bytes32 _r, bytes32 _s ) public virtual { _checkSaltedPermit(_holder, msg.sender, _value, _deadline, _salt, _v, _r, _s); // we don't make calls to _approve to avoid unnecessary storage writes // however, emitting ERC20 events is still desired emit Approval(_holder, msg.sender, _value); emit Approval(_holder, msg.sender, 0); _transfer(_holder, msg.sender, _value); } function _checkPermit( address _holder, address _spender, uint256 _value, uint256 _deadline, uint8 _v, bytes32 _r, bytes32 _s ) private { require(block.timestamp <= _deadline, "ERC20Permit: expired permit"); uint256 nonce = nonces[_holder]++; bytes32 digest = ECDSA.toTypedDataHash( DOMAIN_SEPARATOR, keccak256(abi.encode(PERMIT_TYPEHASH, _holder, _spender, _value, nonce, _deadline)) ); require(_holder == ECDSA.recover(digest, _v, _r, _s), "ERC20Permit: invalid ERC2612 signature"); } function _checkSaltedPermit( address _holder, address _spender, uint256 _value, uint256 _deadline, bytes32 _salt, uint8 _v, bytes32 _r, bytes32 _s ) private { require(block.timestamp <= _deadline, "ERC20Permit: expired permit"); uint256 nonce = nonces[_holder]++; bytes32 digest = ECDSA.toTypedDataHash( DOMAIN_SEPARATOR, keccak256(abi.encode(SALTED_PERMIT_TYPEHASH, _holder, _spender, _value, nonce, _deadline, _salt)) ); require(_holder == ECDSA.recover(digest, _v, _r, _s), "ERC20Permit: invalid signature"); } }
// SPDX-License-Identifier: CC0-1.0 pragma solidity 0.8.15; import "../utils/Ownable.sol"; import "../interfaces/IMintableERC20.sol"; import "./BaseERC20.sol"; import "../interfaces/IMintableERC20.sol"; import "../interfaces/IBurnableERC20.sol"; /** * @title ERC20MintBurn */ abstract contract ERC20MintBurn is IMintableERC20, IBurnableERC20, Ownable, BaseERC20 { mapping(address => uint256) internal permissions; event UpdateMinter(address indexed minter, bool canMint, bool canBurn); function isMinter(address _account) public view returns (bool) { return permissions[_account] & 2 > 0; } function isBurner(address _account) public view returns (bool) { return permissions[_account] & 1 > 0; } /** * @dev Updates mint/burn permissions of the specific account. * Callable only by the contract owner. * @param _account address of the new minter EOA or contract. * @param _canMint true if minting is allowed. * @param _canBurn true if burning is allowed. */ function updateMinter(address _account, bool _canMint, bool _canBurn) external onlyOwner { permissions[_account] = (_canMint ? 2 : 0) + (_canBurn ? 1 : 0); emit UpdateMinter(_account, _canMint, _canBurn); } /** * @dev Mints the specified amount of tokens. * Callable only by one of the minter addresses. * @param _to address of the tokens receiver. * @param _amount amount of tokens to mint. */ function mint(address _to, uint256 _amount) external { require(isMinter(msg.sender), "ERC20MintBurn: not a minter"); _mint(_to, _amount); } /** * @dev Burns tokens from the caller. * Callable only by one of the burner addresses. * @param _value amount of tokens to burn. Should be less than or equal to caller balance. */ function burn(uint256 _value) external virtual { require(isBurner(msg.sender), "ERC20MintBurn: not a burner"); _burn(msg.sender, _value); } }
// SPDX-License-Identifier: CC0-1.0 pragma solidity 0.8.15; import "@openzeppelin/contracts/utils/Address.sol"; import "../utils/Ownable.sol"; import "../interfaces/IERC677Receiver.sol"; import "./BaseERC20.sol"; /** * @title ERC20Recovery */ abstract contract ERC20Recovery is Ownable, BaseERC20 { event ExecutedRecovery(bytes32 indexed hash, uint256 value); event CancelledRecovery(bytes32 indexed hash); event RequestedRecovery( bytes32 indexed hash, uint256 requestTimestamp, uint256 executionTimestamp, address[] accounts, uint256[] values ); address public recoveryAdmin; address public recoveredFundsReceiver; uint64 public recoveryLimitPercent; uint32 public recoveryRequestTimelockPeriod; uint256 public totalRecovered; bytes32 public recoveryRequestHash; uint256 public recoveryRequestExecutionTimestamp; /** * @dev Throws if called by any account other than the contract owner or recovery admin. */ modifier onlyRecoveryAdmin() { require(_msgSender() == recoveryAdmin || _isOwner(), "Recovery: not authorized for recovery"); _; } /** * @dev Updates the address of the recovery admin account. * Callable only by the contract owner. * Recovery admin is only authorized to request/execute/cancel recovery operations. * The availability, parameters and impact limits of recovery is controlled by the contract owner. * @param _recoveryAdmin address of the new recovery admin account. */ function setRecoveryAdmin(address _recoveryAdmin) external onlyOwner { recoveryAdmin = _recoveryAdmin; } /** * @dev Updates the address of the recovered funds receiver. * Callable only by the contract owner. * Recovered funds receiver will receive ERC20, recovered from lost/unused accounts. * If receiver is a smart contract, it must correctly process a ERC677 callback, sent once on the recovery execution. * @param _recoveredFundsReceiver address of the new recovered funds receiver. */ function setRecoveredFundsReceiver(address _recoveredFundsReceiver) external onlyOwner { recoveredFundsReceiver = _recoveredFundsReceiver; } /** * @dev Updates the max allowed percentage of total supply, which can be recovered. * Limits the impact that could be caused by the recovery admin. * Callable only by the contract owner. * @param _recoveryLimitPercent percentage, as a fraction of 1 ether, should be at most 100%. * In theory, recovery can exceed total supply, if recovered funds are then lost once again, * but in practice, we do not expect totalRecovered to reach such extreme values. */ function setRecoveryLimitPercent(uint64 _recoveryLimitPercent) external onlyOwner { require(_recoveryLimitPercent <= 1 ether, "Recovery: invalid percentage"); recoveryLimitPercent = _recoveryLimitPercent; } /** * @dev Updates the timelock period between submission of the recovery request and its execution. * Any user, who is not willing to accept the recovery, can safely withdraw his tokens within such period. * Callable only by the contract owner. * @param _recoveryRequestTimelockPeriod new timelock period in seconds. */ function setRecoveryRequestTimelockPeriod(uint32 _recoveryRequestTimelockPeriod) external onlyOwner { require(_recoveryRequestTimelockPeriod >= 1 days, "Recovery: too low timelock period"); require(_recoveryRequestTimelockPeriod <= 30 days, "Recovery: too high timelock period"); recoveryRequestTimelockPeriod = _recoveryRequestTimelockPeriod; } /** * @dev Tells if recovery of funds is available, given the current configuration of recovery parameters. * @return true, if at least 1 wei of tokens could be recovered within the available limit. */ function isRecoveryEnabled() external view returns (bool) { return _remainingRecoveryLimit() > 0; } /** * @dev Internal function telling the remaining available limit for recovery. * @return available recovery limit. */ function _remainingRecoveryLimit() internal view returns (uint256) { if (recoveredFundsReceiver == address(0)) { return 0; } uint256 limit = totalSupply * recoveryLimitPercent / 1 ether; if (limit > totalRecovered) { return limit - totalRecovered; } return 0; } /** * @dev Creates a request to recover funds from abandoned/unused accounts. * Only one request could be active at a time. Any pending request would be cancelled and won't take any effect. * Callable only by the contract owner or recovery admin. * @param _accounts list of accounts to recover funds from. * @param _values list of max values to recover from each of the specified account. */ function requestRecovery(address[] calldata _accounts, uint256[] calldata _values) external onlyRecoveryAdmin { require(_accounts.length == _values.length, "Recovery: different lengths"); require(_accounts.length > 0, "Recovery: empty accounts"); uint256 limit = _remainingRecoveryLimit(); require(limit > 0, "Recovery: not enabled"); bytes32 hash = recoveryRequestHash; if (hash != bytes32(0)) { emit CancelledRecovery(hash); } uint256[] memory values = new uint256[](_values.length); uint256 total = 0; for (uint256 i = 0; i < _values.length; i++) { uint256 balance = balanceOf(_accounts[i]); uint256 value = balance < _values[i] ? balance : _values[i]; values[i] = value; total += value; } require(total <= limit, "Recovery: exceed recovery limit"); uint256 executionTimestamp = block.timestamp + recoveryRequestTimelockPeriod; hash = keccak256(abi.encode(executionTimestamp, _accounts, values)); recoveryRequestHash = hash; recoveryRequestExecutionTimestamp = executionTimestamp; emit RequestedRecovery(hash, block.timestamp, executionTimestamp, _accounts, values); } /** * @dev Executes the request to recover funds from abandoned/unused accounts. * Executed request should have exactly the same parameters, as emitted in the RequestedRecovery event. * Request could only be executed once configured timelock was surpassed. * After execution of the request, total amount of recovered funds should not exceed the configured percentage. * Callable only by the contract owner or recovery admin. * @param _accounts list of accounts to recover funds from. * @param _values list of max values to recover from each of the specified account. */ function executeRecovery(address[] calldata _accounts, uint256[] calldata _values) external onlyRecoveryAdmin { uint256 executionTimestamp = recoveryRequestExecutionTimestamp; require(executionTimestamp > 0, "Recovery: no active recovery request"); require(executionTimestamp <= block.timestamp, "Recovery: request still timelocked"); uint256 limit = _remainingRecoveryLimit(); require(limit > 0, "Recovery: not enabled"); bytes32 storedHash = recoveryRequestHash; bytes32 receivedHash = keccak256(abi.encode(executionTimestamp, _accounts, _values)); require(storedHash == receivedHash, "Recovery: request hashes do not match"); uint256 value = _recoverTokens(_accounts, _values); totalRecovered += value; require(value <= limit, "Recovery: exceed recovery limit"); delete recoveryRequestHash; delete recoveryRequestExecutionTimestamp; emit ExecutedRecovery(storedHash, value); } /** * @dev Cancels pending recovery request. * Callable only by the contract owner or recovery admin. */ function cancelRecovery() external onlyRecoveryAdmin { bytes32 hash = recoveryRequestHash; require(hash != bytes32(0), "Recovery: no active recovery request"); delete recoveryRequestHash; delete recoveryRequestExecutionTimestamp; emit CancelledRecovery(hash); } function _recoverTokens(address[] calldata _accounts, uint256[] calldata _values) internal returns (uint256) { uint256 total = 0; address receiver = recoveredFundsReceiver; for (uint256 i = 0; i < _accounts.length; i++) { uint256 balance = balanceOf(_accounts[i]); uint256 value = balance < _values[i] ? balance : _values[i]; total += value; _decreaseBalanceUnchecked(_accounts[i], value); emit Transfer(_accounts[i], receiver, value); } _increaseBalance(receiver, total); if (Address.isContract(receiver)) { require(IERC677Receiver(receiver).onTokenTransfer(address(this), total, new bytes(0))); } return total; } }
// SPDX-License-Identifier: CC0-1.0 pragma solidity 0.8.15; import "../utils/Ownable.sol"; import "./BaseERC20.sol"; /** * @title ERC20Blocklist */ abstract contract ERC20Blocklist is Ownable, BaseERC20 { address public blocklister; event Blocked(address indexed account); event Unblocked(address indexed account); event BlocklisterChanged(address indexed account); /** * @dev Throws if called by any account other than the blocklister. */ modifier onlyBlocklister() { require(msg.sender == blocklister, "Blocklist: caller is not the blocklister"); _; } /** * @dev Checks if account is blocked. * @param _account The address to check. */ function isBlocked(address _account) external view returns (bool) { return _isFrozen(_account); } /** * @dev Adds account to blocklist. * @param _account The address to blocklist. */ function blockAccount(address _account) external onlyBlocklister { _freezeBalance(_account); emit Blocked(_account); } /** * @dev Removes account from blocklist. * @param _account The address to remove from the blocklist. */ function unblockAccount(address _account) external onlyBlocklister { _unfreezeBalance(_account); emit Unblocked(_account); } /** * @dev Updates address of the blocklister account. * Callable only by the contract owner. * @param _newBlocklister address of new blocklister account. */ function updateBlocklister(address _newBlocklister) external onlyOwner { blocklister = _newBlocklister; emit BlocklisterChanged(_newBlocklister); } }
// SPDX-License-Identifier: CC0-1.0 pragma solidity 0.8.15; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "./Ownable.sol"; /** * @title Claimable */ contract Claimable is Ownable { address claimingAdmin; /** * @dev Throws if called by any account other than the contract owner or claiming admin. */ modifier onlyClaimingAdmin() { require(_msgSender() == claimingAdmin || _isOwner(), "Claimable: not authorized for claiming"); _; } /** * @dev Updates the address of the claiming admin account. * Callable only by the contract owner. * Claiming admin is only authorized to claim ERC20 tokens or native tokens mistakenly sent to the token contract address. * @param _claimingAdmin address of the new claiming admin account. */ function setClaimingAdmin(address _claimingAdmin) external onlyOwner { claimingAdmin = _claimingAdmin; } /** * @dev Allows to transfer any locked token from this contract. * Callable only by the contract owner or claiming admin. * @param _token address of the token contract, or 0x00..00 for transferring native coins. * @param _to locked tokens receiver address. */ function claimTokens(address _token, address _to) external virtual onlyClaimingAdmin { if (_token == address(0)) { payable(_to).transfer(address(this).balance); } else { uint256 balance = IERC20(_token).balanceOf(address(this)); IERC20(_token).transfer(_to, balance); } } }
// SPDX-License-Identifier: CC0-1.0 pragma solidity 0.8.15; interface IERC677 { function transferAndCall(address to, uint256 amount, bytes calldata data) external; }
// SPDX-License-Identifier: CC0-1.0 pragma solidity 0.8.15; interface IERC677Receiver { function onTokenTransfer(address from, uint256 value, bytes calldata data) external returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.15; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol"; /** * @title BaseERC20 */ abstract contract BaseERC20 is IERC20, IERC20Metadata { mapping(address => uint256) internal _balances; mapping(address => mapping(address => uint256)) public allowance; uint256 public totalSupply; function name() public view virtual override returns (string memory); function symbol() public view virtual override returns (string memory); function decimals() public view override returns (uint8) { return 18; } function balanceOf(address account) public view virtual override returns (uint256 _balance) { _balance = _balances[account]; assembly { _balance := and(_balance, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) } } function transfer(address to, uint256 amount) public virtual override returns (bool) { _transfer(msg.sender, to, amount); return true; } function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(msg.sender, spender, amount); return true; } function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) { _spendAllowance(from, msg.sender, amount); _transfer(from, to, amount); return true; } function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(msg.sender, spender, allowance[msg.sender][spender] + addedValue); return true; } function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = allowance[msg.sender][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(msg.sender, spender, currentAllowance - subtractedValue); } return true; } 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"); _decreaseBalance(from, amount); _increaseBalance(to, amount); emit Transfer(from, to, amount); } function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); totalSupply += amount; _increaseBalance(account, amount); emit Transfer(address(0), account, amount); } function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _decreaseBalance(account, amount); totalSupply -= amount; emit Transfer(account, address(0), amount); } 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"); allowance[owner][spender] = amount; emit Approval(owner, spender, amount); } 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); } } } function _increaseBalance(address _account, uint256 _amount) internal { uint256 balance = _balances[_account]; require(balance < 1 << 255, "ERC20: account frozen"); unchecked { _balances[_account] = balance + _amount; } } function _decreaseBalance(address _account, uint256 _amount) internal { uint256 balance = _balances[_account]; require(balance < 1 << 255, "ERC20: account frozen"); require(balance >= _amount, "ERC20: amount exceeds balance"); unchecked { _balances[_account] = balance - _amount; } } function _decreaseBalanceUnchecked(address _account, uint256 _amount) internal { uint256 balance = _balances[_account]; unchecked { _balances[_account] = balance - _amount; } } function _isFrozen(address _account) internal view returns (bool) { return _balances[_account] >= 1 << 255; } function _freezeBalance(address _account) internal { _balances[_account] |= 1 << 255; } function _unfreezeBalance(address _account) internal { _balances[_account] &= (1 << 255) - 1; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.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. /// @solidity memory-safe-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. /// @solidity memory-safe-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: CC0-1.0 pragma solidity 0.8.15; interface IERC20Permit { function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) external; function nonces(address owner) external view returns (uint256); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external view returns (bytes32); function SALTED_PERMIT_TYPEHASH() external view returns (bytes32); function receiveWithPermit(address _holder, uint256 _value, uint256 _deadline, uint8 _v, bytes32 _r, bytes32 _s) external; function saltedPermit( address _holder, address _spender, uint256 _value, uint256 _deadline, bytes32 _salt, uint8 _v, bytes32 _r, bytes32 _s ) external; function receiveWithSaltedPermit( address _holder, uint256 _value, uint256 _deadline, bytes32 _salt, uint8 _v, bytes32 _r, bytes32 _s ) external; }
// SPDX-License-Identifier: CC0-1.0 pragma solidity 0.8.15; import "@openzeppelin/contracts/access/Ownable.sol" as OZOwnable; /** * @title Ownable */ contract Ownable is OZOwnable.Ownable { /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view override { require(_isOwner(), "Ownable: caller is not the owner"); } /** * @dev Tells if caller is the contract owner. * @return true, if caller is the contract owner. */ function _isOwner() internal view virtual returns (bool) { return owner() == _msgSender(); } }
// SPDX-License-Identifier: CC0-1.0 pragma solidity 0.8.15; interface IMintableERC20 { function mint(address to, uint256 amount) external; }
// SPDX-License-Identifier: CC0-1.0 pragma solidity 0.8.15; interface IBurnableERC20 { function burn(uint256 amount) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// 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 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.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @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); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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 (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; } }
{ "remappings": [ "@gnosis/=lib/@gnosis/", "@gnosis/auction/=lib/@gnosis/auction/contracts/", "@openzeppelin/=lib/@openzeppelin/contracts/", "@openzeppelin/contracts/=lib/@openzeppelin/contracts/contracts/", "ds-test/=lib/forge-std/lib/ds-test/src/", "forge-std/=lib/forge-std/src/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "bytecodeHash": "ipfs" }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "london", "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_self","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"Blocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"BlocklisterChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"hash","type":"bytes32"}],"name":"CancelledRecovery","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"hash","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"ExecutedRecovery","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"hash","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"requestTimestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"executionTimestamp","type":"uint256"},{"indexed":false,"internalType":"address[]","name":"accounts","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"RequestedRecovery","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"Unblocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"bool","name":"canMint","type":"bool"},{"indexed":false,"internalType":"bool","name":"canBurn","type":"bool"}],"name":"UpdateMinter","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SALTED_PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"_balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"blockAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"blocklister","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cancelRecovery","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_to","type":"address"}],"name":"claimTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_accounts","type":"address[]"},{"internalType":"uint256[]","name":"_values","type":"uint256[]"}],"name":"executeRecovery","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"isBlocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"isBurner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"isMinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRecoveryEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_holder","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":[{"internalType":"address","name":"_holder","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":"receiveWithPermit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_holder","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"uint256","name":"_deadline","type":"uint256"},{"internalType":"bytes32","name":"_salt","type":"bytes32"},{"internalType":"uint8","name":"_v","type":"uint8"},{"internalType":"bytes32","name":"_r","type":"bytes32"},{"internalType":"bytes32","name":"_s","type":"bytes32"}],"name":"receiveWithSaltedPermit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"recoveredFundsReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"recoveryAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"recoveryLimitPercent","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"recoveryRequestExecutionTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"recoveryRequestHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"recoveryRequestTimelockPeriod","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_accounts","type":"address[]"},{"internalType":"uint256[]","name":"_values","type":"uint256[]"}],"name":"requestRecovery","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_holder","type":"address"},{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"uint256","name":"_deadline","type":"uint256"},{"internalType":"bytes32","name":"_salt","type":"bytes32"},{"internalType":"uint8","name":"_v","type":"uint8"},{"internalType":"bytes32","name":"_r","type":"bytes32"},{"internalType":"bytes32","name":"_s","type":"bytes32"}],"name":"saltedPermit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_claimingAdmin","type":"address"}],"name":"setClaimingAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recoveredFundsReceiver","type":"address"}],"name":"setRecoveredFundsReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recoveryAdmin","type":"address"}],"name":"setRecoveryAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_recoveryLimitPercent","type":"uint64"}],"name":"setRecoveryLimitPercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_recoveryRequestTimelockPeriod","type":"uint32"}],"name":"setRecoveryRequestTimelockPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalRecovered","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":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"transferAndCall","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"unblockAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newBlocklister","type":"address"}],"name":"updateBlocklister","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"bool","name":"_canMint","type":"bool"},{"internalType":"bool","name":"_canBurn","type":"bool"}],"name":"updateMinter","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040523480156200001157600080fd5b50604051620031c0380380620031c083398101604081905262000034916200014e565b806200004033620000fe565b7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f620000826040805180820190915260038152622127a160e91b602082015290565b80516020918201206040805192830193909352918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201526001600160a01b03821660a082015260c00160408051601f19818403018152919052805160209091012060805250620001809050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156200016157600080fd5b81516001600160a01b03811681146200017957600080fd5b9392505050565b608051613016620001aa600039600081816103ec01528181611db5015261204601526130166000f3fe608060405234801561001057600080fd5b50600436106102d65760003560e01c80637ecebe0011610182578063b88e9ca2116100e9578063d92118c2116100a2578063f2fde38b1161007c578063f2fde38b14610726578063f9b5aa9214610739578063fa3e36e71461074c578063fbac39511461075f57600080fd5b8063d92118c2146106d5578063dd62ed3e146106e8578063e6c10d2a1461071357600080fd5b8063b88e9ca21461066d578063bb7b734f14610680578063ca1a6fbb14610693578063d1f58d261461069c578063d4113cfb146106af578063d505accf146106c257600080fd5b8063a457c2d71161013b578063a457c2d7146105ca578063a744eec8146105dd578063a871f4d114610611578063a9059cbb14610619578063aa271e1a1461062c578063b54d94971461065a57600080fd5b80637ecebe001461053d5780637f0159b61461055d5780638da5cb5b1461058457806395d89b41146102f057806398fd662414610595578063a104e112146105c157600080fd5b80634000aea01161024157806355a6db8b116101fa57806369ffa08a116101d457806369ffa08a146104dd57806370a08231146104f0578063715018a6146105225780637c0a893d1461052a57600080fd5b806355a6db8b146104a45780635937f650146104b75780635f6529a3146104ca57600080fd5b80634000aea01461042157806340c10f191461043457806342966c68146104475780634334614a1461045a5780634d78fdc61461048857806353d3e8711461049b57600080fd5b806323b872dd1161029357806323b872dd1461037357806330adf81f14610386578063313ce567146103ad57806334ed26e4146103bc5780633644e515146103e7578063395093511461040e57600080fd5b8063027e231b146102db57806306fdde03146102f0578063095ea7b31461031e5780630ba234d61461034157806318160ddd1461034957806319dc47e814610360575b600080fd5b6102ee6102e936600461272e565b61078f565b005b60408051808201825260038152622127a160e91b60208201529051610315919061279d565b60405180910390f35b61033161032c3660046127b0565b6107b9565b6040519015158152602001610315565b6102ee6107cf565b61035260035481565b604051908152602001610315565b6102ee61036e3660046127da565b610870565b610331610381366004612800565b610964565b6103527f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60405160128152602001610315565b6007546103cf906001600160a01b031681565b6040516001600160a01b039091168152602001610315565b6103527f000000000000000000000000000000000000000000000000000000000000000081565b61033161041c3660046127b0565b610986565b6102ee61042f36600461283c565b6109c2565b6102ee6104423660046127b0565b610a94565b6102ee6104553660046128c3565b610b01565b61033161046836600461272e565b6001600160a01b0316600090815260056020526040902054600116151590565b6102ee61049636600461272e565b610b6d565b610352600a5481565b6102ee6104b23660046128ed565b610bf8565b6102ee6104c536600461272e565b610c1d565b6006546103cf906001600160a01b031681565b6102ee6104eb366004612961565b610c47565b6103526104fe36600461272e565b6001600160a01b03166000908152600160205260409020546001600160ff1b031690565b6102ee610df1565b6102ee61053836600461272e565b610e05565b61035261054b36600461272e565b60046020526000908152604090205481565b6103527f4bcf1917b4c6060d0cfc29abba53999d42824efa953155f8c376edb9e22cad8c81565b6000546001600160a01b03166103cf565b6007546105ac90600160e01b900463ffffffff1681565b60405163ffffffff9091168152602001610315565b61035260095481565b6103316105d83660046127b0565b610e8d565b6007546105f890600160a01b900467ffffffffffffffff1681565b60405167ffffffffffffffff9091168152602001610315565b610331610f1c565b6103316106273660046127b0565b610f2d565b61033161063a36600461272e565b6001600160a01b0316600090815260056020526040902054600216151590565b600b546103cf906001600160a01b031681565b6102ee61067b366004612994565b610f3a565b6102ee61068e3660046129fa565b610fb9565b61035260085481565b6102ee6106aa366004612a43565b611057565b6102ee6106bd36600461272e565b6110ef565b6102ee6106d0366004612a6d565b611119565b6102ee6106e3366004612b23565b61113c565b6103526106f6366004612961565b600260209081526000928352604080842090915290825290205481565b6102ee610721366004612b23565b61149b565b6102ee61073436600461272e565b6116f2565b6102ee61074736600461272e565b611768565b6102ee61075a366004612b8f565b6117ba565b61033161076d36600461272e565b6001600160a01b0316600090815260016020526040902054600160ff1b111590565b610797611832565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b60006107c6338484611886565b50600192915050565b6006546001600160a01b0316336001600160a01b031614806107f457506107f4611999565b6108195760405162461bcd60e51b815260040161081090612bd6565b60405180910390fd5b600954806108395760405162461bcd60e51b815260040161081090612c1b565b60006009819055600a81905560405182917f498f8458de594d5a7326e3c17e836ba5a763e96022d30c5a1f0736ba65e9d0ca91a250565b610878611832565b620151808163ffffffff1610156108db5760405162461bcd60e51b815260206004820152602160248201527f5265636f766572793a20746f6f206c6f772074696d656c6f636b20706572696f6044820152601960fa1b6064820152608401610810565b62278d008163ffffffff16111561093f5760405162461bcd60e51b815260206004820152602260248201527f5265636f766572793a20746f6f20686967682074696d656c6f636b20706572696044820152611bd960f21b6064820152608401610810565b6007805463ffffffff909216600160e01b026001600160e01b03909216919091179055565b60006109718433846119de565b61097c848484611a6a565b5060019392505050565b3360008181526002602090815260408083206001600160a01b038716845290915281205490916107c69185906109bd908690612c75565b611886565b6109cd338585611a6a565b604051635260769b60e11b81526001600160a01b0385169063a4c0ed36906109ff903390879087908790600401612c8d565b6020604051808303816000875af1158015610a1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a429190612cd5565b610a8e5760405162461bcd60e51b815260206004820152601760248201527f4552433637373a2063616c6c6261636b206661696c65640000000000000000006044820152606401610810565b50505050565b33600090815260056020526040902054600216610af35760405162461bcd60e51b815260206004820152601b60248201527f45524332304d696e744275726e3a206e6f742061206d696e74657200000000006044820152606401610810565b610afd8282611b77565b5050565b33600090815260056020526040902054600116610b605760405162461bcd60e51b815260206004820152601b60248201527f45524332304d696e744275726e3a206e6f742061206275726e657200000000006044820152606401610810565b610b6a3382611c23565b50565b600b546001600160a01b03163314610b975760405162461bcd60e51b815260040161081090612cf2565b610bc1816001600160a01b0316600090815260016020526040902080546001600160ff1b03169055565b6040516001600160a01b038216907f5c272fb29e21b46870af1850afe89126704c55a7781cc100da3f733e15446c7d90600090a250565b610c088888888888888888611cd0565b610c13888888611886565b5050505050505050565b610c25611832565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b600c546001600160a01b0316336001600160a01b03161480610c6c5750610c6c611999565b610cc75760405162461bcd60e51b815260206004820152602660248201527f436c61696d61626c653a206e6f7420617574686f72697a656420666f7220636c60448201526561696d696e6760d01b6064820152608401610810565b6001600160a01b038216610d0f576040516001600160a01b038216904780156108fc02916000818181858888f19350505050158015610d0a573d6000803e3d6000fd5b505050565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa158015610d56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d7a9190612d3a565b60405163a9059cbb60e01b81526001600160a01b038481166004830152602482018390529192509084169063a9059cbb906044016020604051808303816000875af1158015610dcd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a8e9190612cd5565b610df9611832565b610e036000611ea0565b565b600b546001600160a01b03163314610e2f5760405162461bcd60e51b815260040161081090612cf2565b610e56816001600160a01b031660009081526001602052604090208054600160ff1b179055565b6040516001600160a01b038216907f75e91ce73c1d3352d8dd3610443539cd33dfe13b1de8f8caae54ec26dd0dc9cb90600090a250565b3360009081526002602090815260408083206001600160a01b038616845290915281205482811015610f0f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610810565b61097c3385858403611886565b600080610f27611ef0565b11905090565b60006107c6338484611a6a565b610f4986338787878787611f68565b60405185815233906001600160a01b03881690600080516020612fc18339815191529060200160405180910390a36040516000815233906001600160a01b03881690600080516020612fc18339815191529060200160405180910390a3610fb1863387611a6a565b505050505050565b610fc1611832565b80610fcd576000610fd0565b60015b82610fdc576000610fdf565b60025b610fe99190612d53565b6001600160a01b0384166000818152600560205260409081902060ff9390931690925590517fb625581fc22318da180188590e00c281ecdfbb5d9d538c35740a9564b17889dc9061104a908590859091151582521515602082015260400190565b60405180910390a2505050565b61105f611832565b670de0b6b3a76400008167ffffffffffffffff1611156110c15760405162461bcd60e51b815260206004820152601c60248201527f5265636f766572793a20696e76616c69642070657263656e74616765000000006044820152606401610810565b6007805467ffffffffffffffff909216600160a01b0267ffffffffffffffff60a01b19909216919091179055565b6110f7611832565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b61112887878787878787611f68565b611133878787611886565b50505050505050565b6006546001600160a01b0316336001600160a01b031614806111615750611161611999565b61117d5760405162461bcd60e51b815260040161081090612bd6565b8281146111cc5760405162461bcd60e51b815260206004820152601b60248201527f5265636f766572793a20646966666572656e74206c656e6774687300000000006044820152606401610810565b826112195760405162461bcd60e51b815260206004820152601860248201527f5265636f766572793a20656d707479206163636f756e747300000000000000006044820152606401610810565b6000611223611ef0565b90506000811161126d5760405162461bcd60e51b8152602060048201526015602482015274149958dbdd995c9e4e881b9bdd08195b98589b1959605a1b6044820152606401610810565b60095480156112a25760405181907f498f8458de594d5a7326e3c17e836ba5a763e96022d30c5a1f0736ba65e9d0ca90600090a25b60008367ffffffffffffffff8111156112bd576112bd612d78565b6040519080825280602002602001820160405280156112e6578160200160208202803683370190505b5090506000805b858110156113a55760006113218a8a8481811061130c5761130c612d8e565b90506020020160208101906104fe919061272e565b9050600088888481811061133757611337612d8e565b9050602002013582106113625788888481811061135657611356612d8e565b90506020020135611364565b815b90508085848151811061137957611379612d8e565b602090810291909101015261138e8185612c75565b93505050808061139d90612da4565b9150506112ed565b50838111156113f65760405162461bcd60e51b815260206004820152601f60248201527f5265636f766572793a20657863656564207265636f76657279206c696d6974006044820152606401610810565b60075460009061141390600160e01b900463ffffffff1642612c75565b90508089898560405160200161142c9493929190612e34565b60408051601f198184030181529082905280516020909101206009819055600a839055945084907f67574952c8fe8f773bb77d781f3a57dd157f12f205efbe810810384a8d2a00149061148890429085908e908e908a90612e6b565b60405180910390a2505050505050505050565b6006546001600160a01b0316336001600160a01b031614806114c057506114c0611999565b6114dc5760405162461bcd60e51b815260040161081090612bd6565b600a54806114fc5760405162461bcd60e51b815260040161081090612c1b565b428111156115575760405162461bcd60e51b815260206004820152602260248201527f5265636f766572793a2072657175657374207374696c6c2074696d656c6f636b604482015261195960f21b6064820152608401610810565b6000611561611ef0565b9050600081116115ab5760405162461bcd60e51b8152602060048201526015602482015274149958dbdd995c9e4e881b9bdd08195b98589b1959605a1b6044820152606401610810565b6009546040516000906115ca9085908a908a908a908a90602001612ea9565b60405160208183030381529060405280519060200120905080821461163f5760405162461bcd60e51b815260206004820152602560248201527f5265636f766572793a20726571756573742068617368657320646f206e6f74206044820152640dac2e8c6d60db1b6064820152608401610810565b600061164d898989896120f6565b905080600860008282546116619190612c75565b9091555050838111156116b65760405162461bcd60e51b815260206004820152601f60248201527f5265636f766572793a20657863656564207265636f76657279206c696d6974006044820152606401610810565b60006009819055600a5560405181815283907fbdbd8667b6c12f94c5a90a10097bfa133de72220146fefc2f5ff04b86cc6ae1a90602001611488565b6116fa611832565b6001600160a01b03811661175f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610810565b610b6a81611ea0565b611770611832565b600b80546001600160a01b0319166001600160a01b0383169081179091556040517f68f10ceb42d30acc930aaaedf5b94559e14fc4f22496dc2c1b38b1b1b5231f9890600090a250565b6117ca8733888888888888611cd0565b60405186815233906001600160a01b03891690600080516020612fc18339815191529060200160405180910390a36040516000815233906001600160a01b03891690600080516020612fc18339815191529060200160405180910390a3611133873388611a6a565b61183a611999565b610e035760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610810565b6001600160a01b0383166118e85760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610810565b6001600160a01b0382166119495760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610810565b6001600160a01b038381166000818152600260209081526040808320948716808452948252918290208590559051848152600080516020612fc183398151915291015b60405180910390a3505050565b60006119a36122e7565b806119d957507fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035433905b6001600160a01b0316145b905090565b6001600160a01b038084166000908152600260209081526040808320938616835292905220546000198114610a8e5781811015611a5d5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610810565b610a8e8484848403611886565b6001600160a01b038316611ace5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610810565b6001600160a01b038216611b305760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610810565b611b3a83826122fb565b611b4482826123ce565b816001600160a01b0316836001600160a01b0316600080516020612fa18339815191528360405161198c91815260200190565b6001600160a01b038216611bcd5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610810565b8060036000828254611bdf9190612c75565b90915550611bef905082826123ce565b6040518181526001600160a01b03831690600090600080516020612fa1833981519152906020015b60405180910390a35050565b6001600160a01b038216611c835760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610810565b611c8d82826122fb565b8060036000828254611c9f9190612f02565b90915550506040518181526000906001600160a01b03841690600080516020612fa183398151915290602001611c17565b84421115611d205760405162461bcd60e51b815260206004820152601b60248201527f45524332305065726d69743a2065787069726564207065726d697400000000006044820152606401610810565b6001600160a01b038816600090815260046020526040812080549082611d4583612da4565b90915550604080517f4bcf1917b4c6060d0cfc29abba53999d42824efa953155f8c376edb9e22cad8c60208201526001600160a01b03808d1692820192909252908a1660608201526080810189905260a0810182905260c0810188905260e08101879052909150600090611e26907f000000000000000000000000000000000000000000000000000000000000000090610100015b60408051601f19818403018152828252805160209182012061190160f01b8483015260228401949094526042808401949094528151808403909401845260629092019052815191012090565b9050611e3481868686612451565b6001600160a01b03168a6001600160a01b031614611e945760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152606401610810565b50505050505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6007546000906001600160a01b0316611f095750600090565b600754600354600091670de0b6b3a764000091611f3791600160a01b900467ffffffffffffffff1690612f19565b611f419190612f38565b9050600854811115611f6057600854611f5a9082612f02565b91505090565b600091505090565b83421115611fb85760405162461bcd60e51b815260206004820152601b60248201527f45524332305065726d69743a2065787069726564207065726d697400000000006044820152606401610810565b6001600160a01b038716600090815260046020526040812080549082611fdd83612da4565b90915550604080517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c960208201526001600160a01b03808c169282019290925290891660608201526080810188905260a0810182905260c0810187905290915060009061206e907f00000000000000000000000000000000000000000000000000000000000000009060e001611dda565b905061207c81868686612451565b6001600160a01b0316896001600160a01b0316146120eb5760405162461bcd60e51b815260206004820152602660248201527f45524332305065726d69743a20696e76616c69642045524332363132207369676044820152656e617475726560d01b6064820152608401610810565b505050505050505050565b60075460009081906001600160a01b0316815b8681101561223957600061212889898481811061130c5761130c612d8e565b9050600087878481811061213e5761213e612d8e565b9050602002013582106121695787878481811061215d5761215d612d8e565b9050602002013561216b565b815b90506121778186612c75565b94506121c38a8a8581811061218e5761218e612d8e565b90506020020160208101906121a3919061272e565b6001600160a01b0316600090815260016020526040902080548390039055565b836001600160a01b03168a8a858181106121df576121df612d8e565b90506020020160208101906121f4919061272e565b6001600160a01b0316600080516020612fa18339815191528360405161221c91815260200190565b60405180910390a35050808061223190612da4565b915050612109565b5061224481836123ce565b6001600160a01b0381163b156122dd5760408051600081526020810191829052635260769b60e11b9091526001600160a01b0382169063a4c0ed3690612291903090869060248101612f5a565b6020604051808303816000875af11580156122b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122d49190612cd5565b6122dd57600080fd5b5095945050505050565b6000805433906001600160a01b03166119ce565b6001600160a01b038216600090815260016020526040902054600160ff1b811061235f5760405162461bcd60e51b815260206004820152601560248201527422a92199181d1030b1b1b7bab73a10333937bd32b760591b6044820152606401610810565b818110156123af5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20616d6f756e7420657863656564732062616c616e63650000006044820152606401610810565b6001600160a01b03909216600090815260016020526040902091039055565b6001600160a01b038216600090815260016020526040902054600160ff1b81106124325760405162461bcd60e51b815260206004820152601560248201527422a92199181d1030b1b1b7bab73a10333937bd32b760591b6044820152606401610810565b6001600160a01b03909216600090815260016020526040902091019055565b60008060006124628787878761246f565b915091506122dd8161255c565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156124a65750600090506003612553565b8460ff16601b141580156124be57508460ff16601c14155b156124cf5750600090506004612553565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612523573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661254c57600060019250925050612553565b9150600090505b94509492505050565b600081600481111561257057612570612f8a565b036125785750565b600181600481111561258c5761258c612f8a565b036125d95760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610810565b60028160048111156125ed576125ed612f8a565b0361263a5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610810565b600381600481111561264e5761264e612f8a565b036126a65760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610810565b60048160048111156126ba576126ba612f8a565b03610b6a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610810565b80356001600160a01b038116811461272957600080fd5b919050565b60006020828403121561274057600080fd5b61274982612712565b9392505050565b6000815180845260005b818110156127765760208185018101518683018201520161275a565b81811115612788576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006127496020830184612750565b600080604083850312156127c357600080fd5b6127cc83612712565b946020939093013593505050565b6000602082840312156127ec57600080fd5b813563ffffffff8116811461274957600080fd5b60008060006060848603121561281557600080fd5b61281e84612712565b925061282c60208501612712565b9150604084013590509250925092565b6000806000806060858703121561285257600080fd5b61285b85612712565b935060208501359250604085013567ffffffffffffffff8082111561287f57600080fd5b818701915087601f83011261289357600080fd5b8135818111156128a257600080fd5b8860208285010111156128b457600080fd5b95989497505060200194505050565b6000602082840312156128d557600080fd5b5035919050565b803560ff8116811461272957600080fd5b600080600080600080600080610100898b03121561290a57600080fd5b61291389612712565b975061292160208a01612712565b965060408901359550606089013594506080890135935061294460a08a016128dc565b925060c0890135915060e089013590509295985092959890939650565b6000806040838503121561297457600080fd5b61297d83612712565b915061298b60208401612712565b90509250929050565b60008060008060008060c087890312156129ad57600080fd5b6129b687612712565b955060208701359450604087013593506129d2606088016128dc565b92506080870135915060a087013590509295509295509295565b8015158114610b6a57600080fd5b600080600060608486031215612a0f57600080fd5b612a1884612712565b92506020840135612a28816129ec565b91506040840135612a38816129ec565b809150509250925092565b600060208284031215612a5557600080fd5b813567ffffffffffffffff8116811461274957600080fd5b600080600080600080600060e0888a031215612a8857600080fd5b612a9188612712565b9650612a9f60208901612712565b95506040880135945060608801359350612abb608089016128dc565b925060a0880135915060c0880135905092959891949750929550565b60008083601f840112612ae957600080fd5b50813567ffffffffffffffff811115612b0157600080fd5b6020830191508360208260051b8501011115612b1c57600080fd5b9250929050565b60008060008060408587031215612b3957600080fd5b843567ffffffffffffffff80821115612b5157600080fd5b612b5d88838901612ad7565b90965094506020870135915080821115612b7657600080fd5b50612b8387828801612ad7565b95989497509550505050565b600080600080600080600060e0888a031215612baa57600080fd5b612bb388612712565b9650602088013595506040880135945060608801359350612abb608089016128dc565b60208082526025908201527f5265636f766572793a206e6f7420617574686f72697a656420666f72207265636040820152646f7665727960d81b606082015260800190565b60208082526024908201527f5265636f766572793a206e6f20616374697665207265636f76657279207265716040820152631d595cdd60e21b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008219821115612c8857612c88612c5f565b500190565b6001600160a01b0385168152602081018490526060604082018190528101829052818360808301376000818301608090810191909152601f909201601f191601019392505050565b600060208284031215612ce757600080fd5b8151612749816129ec565b60208082526028908201527f426c6f636b6c6973743a2063616c6c6572206973206e6f742074686520626c6f60408201526731b5b634b9ba32b960c11b606082015260800190565b600060208284031215612d4c57600080fd5b5051919050565b600060ff821660ff84168060ff03821115612d7057612d70612c5f565b019392505050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600060018201612db657612db6612c5f565b5060010190565b8183526000602080850194508260005b85811015612df9576001600160a01b03612de683612712565b1687529582019590820190600101612dcd565b509495945050505050565b600081518084526020808501945080840160005b83811015612df957815187529582019590820190600101612e18565b848152606060208201526000612e4e606083018587612dbd565b8281036040840152612e608185612e04565b979650505050505050565b858152846020820152608060408201526000612e8b608083018587612dbd565b8281036060840152612e9d8185612e04565b98975050505050505050565b858152606060208201526000612ec3606083018688612dbd565b82810360408401528381526001600160fb1b03841115612ee257600080fd5b8360051b8086602084013760009101602001908152979650505050505050565b600082821015612f1457612f14612c5f565b500390565b6000816000190483118215151615612f3357612f33612c5f565b500290565b600082612f5557634e487b7160e01b600052601260045260246000fd5b500490565b60018060a01b0384168152826020820152606060408201526000612f816060830184612750565b95945050505050565b634e487b7160e01b600052602160045260246000fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925a2646970667358221220be42865ebd965828e2b8ad3a4c0ad603b7a0acd1110e894e70bda609680c7cd464736f6c634300080f0033000000000000000000000000b0b195aefa3650a6908f15cdac7d92f8a5791b0b
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102d65760003560e01c80637ecebe0011610182578063b88e9ca2116100e9578063d92118c2116100a2578063f2fde38b1161007c578063f2fde38b14610726578063f9b5aa9214610739578063fa3e36e71461074c578063fbac39511461075f57600080fd5b8063d92118c2146106d5578063dd62ed3e146106e8578063e6c10d2a1461071357600080fd5b8063b88e9ca21461066d578063bb7b734f14610680578063ca1a6fbb14610693578063d1f58d261461069c578063d4113cfb146106af578063d505accf146106c257600080fd5b8063a457c2d71161013b578063a457c2d7146105ca578063a744eec8146105dd578063a871f4d114610611578063a9059cbb14610619578063aa271e1a1461062c578063b54d94971461065a57600080fd5b80637ecebe001461053d5780637f0159b61461055d5780638da5cb5b1461058457806395d89b41146102f057806398fd662414610595578063a104e112146105c157600080fd5b80634000aea01161024157806355a6db8b116101fa57806369ffa08a116101d457806369ffa08a146104dd57806370a08231146104f0578063715018a6146105225780637c0a893d1461052a57600080fd5b806355a6db8b146104a45780635937f650146104b75780635f6529a3146104ca57600080fd5b80634000aea01461042157806340c10f191461043457806342966c68146104475780634334614a1461045a5780634d78fdc61461048857806353d3e8711461049b57600080fd5b806323b872dd1161029357806323b872dd1461037357806330adf81f14610386578063313ce567146103ad57806334ed26e4146103bc5780633644e515146103e7578063395093511461040e57600080fd5b8063027e231b146102db57806306fdde03146102f0578063095ea7b31461031e5780630ba234d61461034157806318160ddd1461034957806319dc47e814610360575b600080fd5b6102ee6102e936600461272e565b61078f565b005b60408051808201825260038152622127a160e91b60208201529051610315919061279d565b60405180910390f35b61033161032c3660046127b0565b6107b9565b6040519015158152602001610315565b6102ee6107cf565b61035260035481565b604051908152602001610315565b6102ee61036e3660046127da565b610870565b610331610381366004612800565b610964565b6103527f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60405160128152602001610315565b6007546103cf906001600160a01b031681565b6040516001600160a01b039091168152602001610315565b6103527fde8d39718fa34d2ebac775c3e965466635eaf72920c6ea519f1d49359b1068a881565b61033161041c3660046127b0565b610986565b6102ee61042f36600461283c565b6109c2565b6102ee6104423660046127b0565b610a94565b6102ee6104553660046128c3565b610b01565b61033161046836600461272e565b6001600160a01b0316600090815260056020526040902054600116151590565b6102ee61049636600461272e565b610b6d565b610352600a5481565b6102ee6104b23660046128ed565b610bf8565b6102ee6104c536600461272e565b610c1d565b6006546103cf906001600160a01b031681565b6102ee6104eb366004612961565b610c47565b6103526104fe36600461272e565b6001600160a01b03166000908152600160205260409020546001600160ff1b031690565b6102ee610df1565b6102ee61053836600461272e565b610e05565b61035261054b36600461272e565b60046020526000908152604090205481565b6103527f4bcf1917b4c6060d0cfc29abba53999d42824efa953155f8c376edb9e22cad8c81565b6000546001600160a01b03166103cf565b6007546105ac90600160e01b900463ffffffff1681565b60405163ffffffff9091168152602001610315565b61035260095481565b6103316105d83660046127b0565b610e8d565b6007546105f890600160a01b900467ffffffffffffffff1681565b60405167ffffffffffffffff9091168152602001610315565b610331610f1c565b6103316106273660046127b0565b610f2d565b61033161063a36600461272e565b6001600160a01b0316600090815260056020526040902054600216151590565b600b546103cf906001600160a01b031681565b6102ee61067b366004612994565b610f3a565b6102ee61068e3660046129fa565b610fb9565b61035260085481565b6102ee6106aa366004612a43565b611057565b6102ee6106bd36600461272e565b6110ef565b6102ee6106d0366004612a6d565b611119565b6102ee6106e3366004612b23565b61113c565b6103526106f6366004612961565b600260209081526000928352604080842090915290825290205481565b6102ee610721366004612b23565b61149b565b6102ee61073436600461272e565b6116f2565b6102ee61074736600461272e565b611768565b6102ee61075a366004612b8f565b6117ba565b61033161076d36600461272e565b6001600160a01b0316600090815260016020526040902054600160ff1b111590565b610797611832565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b60006107c6338484611886565b50600192915050565b6006546001600160a01b0316336001600160a01b031614806107f457506107f4611999565b6108195760405162461bcd60e51b815260040161081090612bd6565b60405180910390fd5b600954806108395760405162461bcd60e51b815260040161081090612c1b565b60006009819055600a81905560405182917f498f8458de594d5a7326e3c17e836ba5a763e96022d30c5a1f0736ba65e9d0ca91a250565b610878611832565b620151808163ffffffff1610156108db5760405162461bcd60e51b815260206004820152602160248201527f5265636f766572793a20746f6f206c6f772074696d656c6f636b20706572696f6044820152601960fa1b6064820152608401610810565b62278d008163ffffffff16111561093f5760405162461bcd60e51b815260206004820152602260248201527f5265636f766572793a20746f6f20686967682074696d656c6f636b20706572696044820152611bd960f21b6064820152608401610810565b6007805463ffffffff909216600160e01b026001600160e01b03909216919091179055565b60006109718433846119de565b61097c848484611a6a565b5060019392505050565b3360008181526002602090815260408083206001600160a01b038716845290915281205490916107c69185906109bd908690612c75565b611886565b6109cd338585611a6a565b604051635260769b60e11b81526001600160a01b0385169063a4c0ed36906109ff903390879087908790600401612c8d565b6020604051808303816000875af1158015610a1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a429190612cd5565b610a8e5760405162461bcd60e51b815260206004820152601760248201527f4552433637373a2063616c6c6261636b206661696c65640000000000000000006044820152606401610810565b50505050565b33600090815260056020526040902054600216610af35760405162461bcd60e51b815260206004820152601b60248201527f45524332304d696e744275726e3a206e6f742061206d696e74657200000000006044820152606401610810565b610afd8282611b77565b5050565b33600090815260056020526040902054600116610b605760405162461bcd60e51b815260206004820152601b60248201527f45524332304d696e744275726e3a206e6f742061206275726e657200000000006044820152606401610810565b610b6a3382611c23565b50565b600b546001600160a01b03163314610b975760405162461bcd60e51b815260040161081090612cf2565b610bc1816001600160a01b0316600090815260016020526040902080546001600160ff1b03169055565b6040516001600160a01b038216907f5c272fb29e21b46870af1850afe89126704c55a7781cc100da3f733e15446c7d90600090a250565b610c088888888888888888611cd0565b610c13888888611886565b5050505050505050565b610c25611832565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b600c546001600160a01b0316336001600160a01b03161480610c6c5750610c6c611999565b610cc75760405162461bcd60e51b815260206004820152602660248201527f436c61696d61626c653a206e6f7420617574686f72697a656420666f7220636c60448201526561696d696e6760d01b6064820152608401610810565b6001600160a01b038216610d0f576040516001600160a01b038216904780156108fc02916000818181858888f19350505050158015610d0a573d6000803e3d6000fd5b505050565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa158015610d56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d7a9190612d3a565b60405163a9059cbb60e01b81526001600160a01b038481166004830152602482018390529192509084169063a9059cbb906044016020604051808303816000875af1158015610dcd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a8e9190612cd5565b610df9611832565b610e036000611ea0565b565b600b546001600160a01b03163314610e2f5760405162461bcd60e51b815260040161081090612cf2565b610e56816001600160a01b031660009081526001602052604090208054600160ff1b179055565b6040516001600160a01b038216907f75e91ce73c1d3352d8dd3610443539cd33dfe13b1de8f8caae54ec26dd0dc9cb90600090a250565b3360009081526002602090815260408083206001600160a01b038616845290915281205482811015610f0f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610810565b61097c3385858403611886565b600080610f27611ef0565b11905090565b60006107c6338484611a6a565b610f4986338787878787611f68565b60405185815233906001600160a01b03881690600080516020612fc18339815191529060200160405180910390a36040516000815233906001600160a01b03881690600080516020612fc18339815191529060200160405180910390a3610fb1863387611a6a565b505050505050565b610fc1611832565b80610fcd576000610fd0565b60015b82610fdc576000610fdf565b60025b610fe99190612d53565b6001600160a01b0384166000818152600560205260409081902060ff9390931690925590517fb625581fc22318da180188590e00c281ecdfbb5d9d538c35740a9564b17889dc9061104a908590859091151582521515602082015260400190565b60405180910390a2505050565b61105f611832565b670de0b6b3a76400008167ffffffffffffffff1611156110c15760405162461bcd60e51b815260206004820152601c60248201527f5265636f766572793a20696e76616c69642070657263656e74616765000000006044820152606401610810565b6007805467ffffffffffffffff909216600160a01b0267ffffffffffffffff60a01b19909216919091179055565b6110f7611832565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b61112887878787878787611f68565b611133878787611886565b50505050505050565b6006546001600160a01b0316336001600160a01b031614806111615750611161611999565b61117d5760405162461bcd60e51b815260040161081090612bd6565b8281146111cc5760405162461bcd60e51b815260206004820152601b60248201527f5265636f766572793a20646966666572656e74206c656e6774687300000000006044820152606401610810565b826112195760405162461bcd60e51b815260206004820152601860248201527f5265636f766572793a20656d707479206163636f756e747300000000000000006044820152606401610810565b6000611223611ef0565b90506000811161126d5760405162461bcd60e51b8152602060048201526015602482015274149958dbdd995c9e4e881b9bdd08195b98589b1959605a1b6044820152606401610810565b60095480156112a25760405181907f498f8458de594d5a7326e3c17e836ba5a763e96022d30c5a1f0736ba65e9d0ca90600090a25b60008367ffffffffffffffff8111156112bd576112bd612d78565b6040519080825280602002602001820160405280156112e6578160200160208202803683370190505b5090506000805b858110156113a55760006113218a8a8481811061130c5761130c612d8e565b90506020020160208101906104fe919061272e565b9050600088888481811061133757611337612d8e565b9050602002013582106113625788888481811061135657611356612d8e565b90506020020135611364565b815b90508085848151811061137957611379612d8e565b602090810291909101015261138e8185612c75565b93505050808061139d90612da4565b9150506112ed565b50838111156113f65760405162461bcd60e51b815260206004820152601f60248201527f5265636f766572793a20657863656564207265636f76657279206c696d6974006044820152606401610810565b60075460009061141390600160e01b900463ffffffff1642612c75565b90508089898560405160200161142c9493929190612e34565b60408051601f198184030181529082905280516020909101206009819055600a839055945084907f67574952c8fe8f773bb77d781f3a57dd157f12f205efbe810810384a8d2a00149061148890429085908e908e908a90612e6b565b60405180910390a2505050505050505050565b6006546001600160a01b0316336001600160a01b031614806114c057506114c0611999565b6114dc5760405162461bcd60e51b815260040161081090612bd6565b600a54806114fc5760405162461bcd60e51b815260040161081090612c1b565b428111156115575760405162461bcd60e51b815260206004820152602260248201527f5265636f766572793a2072657175657374207374696c6c2074696d656c6f636b604482015261195960f21b6064820152608401610810565b6000611561611ef0565b9050600081116115ab5760405162461bcd60e51b8152602060048201526015602482015274149958dbdd995c9e4e881b9bdd08195b98589b1959605a1b6044820152606401610810565b6009546040516000906115ca9085908a908a908a908a90602001612ea9565b60405160208183030381529060405280519060200120905080821461163f5760405162461bcd60e51b815260206004820152602560248201527f5265636f766572793a20726571756573742068617368657320646f206e6f74206044820152640dac2e8c6d60db1b6064820152608401610810565b600061164d898989896120f6565b905080600860008282546116619190612c75565b9091555050838111156116b65760405162461bcd60e51b815260206004820152601f60248201527f5265636f766572793a20657863656564207265636f76657279206c696d6974006044820152606401610810565b60006009819055600a5560405181815283907fbdbd8667b6c12f94c5a90a10097bfa133de72220146fefc2f5ff04b86cc6ae1a90602001611488565b6116fa611832565b6001600160a01b03811661175f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610810565b610b6a81611ea0565b611770611832565b600b80546001600160a01b0319166001600160a01b0383169081179091556040517f68f10ceb42d30acc930aaaedf5b94559e14fc4f22496dc2c1b38b1b1b5231f9890600090a250565b6117ca8733888888888888611cd0565b60405186815233906001600160a01b03891690600080516020612fc18339815191529060200160405180910390a36040516000815233906001600160a01b03891690600080516020612fc18339815191529060200160405180910390a3611133873388611a6a565b61183a611999565b610e035760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610810565b6001600160a01b0383166118e85760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610810565b6001600160a01b0382166119495760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610810565b6001600160a01b038381166000818152600260209081526040808320948716808452948252918290208590559051848152600080516020612fc183398151915291015b60405180910390a3505050565b60006119a36122e7565b806119d957507fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035433905b6001600160a01b0316145b905090565b6001600160a01b038084166000908152600260209081526040808320938616835292905220546000198114610a8e5781811015611a5d5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610810565b610a8e8484848403611886565b6001600160a01b038316611ace5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610810565b6001600160a01b038216611b305760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610810565b611b3a83826122fb565b611b4482826123ce565b816001600160a01b0316836001600160a01b0316600080516020612fa18339815191528360405161198c91815260200190565b6001600160a01b038216611bcd5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610810565b8060036000828254611bdf9190612c75565b90915550611bef905082826123ce565b6040518181526001600160a01b03831690600090600080516020612fa1833981519152906020015b60405180910390a35050565b6001600160a01b038216611c835760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610810565b611c8d82826122fb565b8060036000828254611c9f9190612f02565b90915550506040518181526000906001600160a01b03841690600080516020612fa183398151915290602001611c17565b84421115611d205760405162461bcd60e51b815260206004820152601b60248201527f45524332305065726d69743a2065787069726564207065726d697400000000006044820152606401610810565b6001600160a01b038816600090815260046020526040812080549082611d4583612da4565b90915550604080517f4bcf1917b4c6060d0cfc29abba53999d42824efa953155f8c376edb9e22cad8c60208201526001600160a01b03808d1692820192909252908a1660608201526080810189905260a0810182905260c0810188905260e08101879052909150600090611e26907fde8d39718fa34d2ebac775c3e965466635eaf72920c6ea519f1d49359b1068a890610100015b60408051601f19818403018152828252805160209182012061190160f01b8483015260228401949094526042808401949094528151808403909401845260629092019052815191012090565b9050611e3481868686612451565b6001600160a01b03168a6001600160a01b031614611e945760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152606401610810565b50505050505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6007546000906001600160a01b0316611f095750600090565b600754600354600091670de0b6b3a764000091611f3791600160a01b900467ffffffffffffffff1690612f19565b611f419190612f38565b9050600854811115611f6057600854611f5a9082612f02565b91505090565b600091505090565b83421115611fb85760405162461bcd60e51b815260206004820152601b60248201527f45524332305065726d69743a2065787069726564207065726d697400000000006044820152606401610810565b6001600160a01b038716600090815260046020526040812080549082611fdd83612da4565b90915550604080517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c960208201526001600160a01b03808c169282019290925290891660608201526080810188905260a0810182905260c0810187905290915060009061206e907fde8d39718fa34d2ebac775c3e965466635eaf72920c6ea519f1d49359b1068a89060e001611dda565b905061207c81868686612451565b6001600160a01b0316896001600160a01b0316146120eb5760405162461bcd60e51b815260206004820152602660248201527f45524332305065726d69743a20696e76616c69642045524332363132207369676044820152656e617475726560d01b6064820152608401610810565b505050505050505050565b60075460009081906001600160a01b0316815b8681101561223957600061212889898481811061130c5761130c612d8e565b9050600087878481811061213e5761213e612d8e565b9050602002013582106121695787878481811061215d5761215d612d8e565b9050602002013561216b565b815b90506121778186612c75565b94506121c38a8a8581811061218e5761218e612d8e565b90506020020160208101906121a3919061272e565b6001600160a01b0316600090815260016020526040902080548390039055565b836001600160a01b03168a8a858181106121df576121df612d8e565b90506020020160208101906121f4919061272e565b6001600160a01b0316600080516020612fa18339815191528360405161221c91815260200190565b60405180910390a35050808061223190612da4565b915050612109565b5061224481836123ce565b6001600160a01b0381163b156122dd5760408051600081526020810191829052635260769b60e11b9091526001600160a01b0382169063a4c0ed3690612291903090869060248101612f5a565b6020604051808303816000875af11580156122b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122d49190612cd5565b6122dd57600080fd5b5095945050505050565b6000805433906001600160a01b03166119ce565b6001600160a01b038216600090815260016020526040902054600160ff1b811061235f5760405162461bcd60e51b815260206004820152601560248201527422a92199181d1030b1b1b7bab73a10333937bd32b760591b6044820152606401610810565b818110156123af5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20616d6f756e7420657863656564732062616c616e63650000006044820152606401610810565b6001600160a01b03909216600090815260016020526040902091039055565b6001600160a01b038216600090815260016020526040902054600160ff1b81106124325760405162461bcd60e51b815260206004820152601560248201527422a92199181d1030b1b1b7bab73a10333937bd32b760591b6044820152606401610810565b6001600160a01b03909216600090815260016020526040902091019055565b60008060006124628787878761246f565b915091506122dd8161255c565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156124a65750600090506003612553565b8460ff16601b141580156124be57508460ff16601c14155b156124cf5750600090506004612553565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612523573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661254c57600060019250925050612553565b9150600090505b94509492505050565b600081600481111561257057612570612f8a565b036125785750565b600181600481111561258c5761258c612f8a565b036125d95760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610810565b60028160048111156125ed576125ed612f8a565b0361263a5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610810565b600381600481111561264e5761264e612f8a565b036126a65760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610810565b60048160048111156126ba576126ba612f8a565b03610b6a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610810565b80356001600160a01b038116811461272957600080fd5b919050565b60006020828403121561274057600080fd5b61274982612712565b9392505050565b6000815180845260005b818110156127765760208185018101518683018201520161275a565b81811115612788576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006127496020830184612750565b600080604083850312156127c357600080fd5b6127cc83612712565b946020939093013593505050565b6000602082840312156127ec57600080fd5b813563ffffffff8116811461274957600080fd5b60008060006060848603121561281557600080fd5b61281e84612712565b925061282c60208501612712565b9150604084013590509250925092565b6000806000806060858703121561285257600080fd5b61285b85612712565b935060208501359250604085013567ffffffffffffffff8082111561287f57600080fd5b818701915087601f83011261289357600080fd5b8135818111156128a257600080fd5b8860208285010111156128b457600080fd5b95989497505060200194505050565b6000602082840312156128d557600080fd5b5035919050565b803560ff8116811461272957600080fd5b600080600080600080600080610100898b03121561290a57600080fd5b61291389612712565b975061292160208a01612712565b965060408901359550606089013594506080890135935061294460a08a016128dc565b925060c0890135915060e089013590509295985092959890939650565b6000806040838503121561297457600080fd5b61297d83612712565b915061298b60208401612712565b90509250929050565b60008060008060008060c087890312156129ad57600080fd5b6129b687612712565b955060208701359450604087013593506129d2606088016128dc565b92506080870135915060a087013590509295509295509295565b8015158114610b6a57600080fd5b600080600060608486031215612a0f57600080fd5b612a1884612712565b92506020840135612a28816129ec565b91506040840135612a38816129ec565b809150509250925092565b600060208284031215612a5557600080fd5b813567ffffffffffffffff8116811461274957600080fd5b600080600080600080600060e0888a031215612a8857600080fd5b612a9188612712565b9650612a9f60208901612712565b95506040880135945060608801359350612abb608089016128dc565b925060a0880135915060c0880135905092959891949750929550565b60008083601f840112612ae957600080fd5b50813567ffffffffffffffff811115612b0157600080fd5b6020830191508360208260051b8501011115612b1c57600080fd5b9250929050565b60008060008060408587031215612b3957600080fd5b843567ffffffffffffffff80821115612b5157600080fd5b612b5d88838901612ad7565b90965094506020870135915080821115612b7657600080fd5b50612b8387828801612ad7565b95989497509550505050565b600080600080600080600060e0888a031215612baa57600080fd5b612bb388612712565b9650602088013595506040880135945060608801359350612abb608089016128dc565b60208082526025908201527f5265636f766572793a206e6f7420617574686f72697a656420666f72207265636040820152646f7665727960d81b606082015260800190565b60208082526024908201527f5265636f766572793a206e6f20616374697665207265636f76657279207265716040820152631d595cdd60e21b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008219821115612c8857612c88612c5f565b500190565b6001600160a01b0385168152602081018490526060604082018190528101829052818360808301376000818301608090810191909152601f909201601f191601019392505050565b600060208284031215612ce757600080fd5b8151612749816129ec565b60208082526028908201527f426c6f636b6c6973743a2063616c6c6572206973206e6f742074686520626c6f60408201526731b5b634b9ba32b960c11b606082015260800190565b600060208284031215612d4c57600080fd5b5051919050565b600060ff821660ff84168060ff03821115612d7057612d70612c5f565b019392505050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600060018201612db657612db6612c5f565b5060010190565b8183526000602080850194508260005b85811015612df9576001600160a01b03612de683612712565b1687529582019590820190600101612dcd565b509495945050505050565b600081518084526020808501945080840160005b83811015612df957815187529582019590820190600101612e18565b848152606060208201526000612e4e606083018587612dbd565b8281036040840152612e608185612e04565b979650505050505050565b858152846020820152608060408201526000612e8b608083018587612dbd565b8281036060840152612e9d8185612e04565b98975050505050505050565b858152606060208201526000612ec3606083018688612dbd565b82810360408401528381526001600160fb1b03841115612ee257600080fd5b8360051b8086602084013760009101602001908152979650505050505050565b600082821015612f1457612f14612c5f565b500390565b6000816000190483118215151615612f3357612f33612c5f565b500290565b600082612f5557634e487b7160e01b600052601260045260246000fd5b500490565b60018060a01b0384168152826020820152606060408201526000612f816060830184612750565b95945050505050565b634e487b7160e01b600052602160045260246000fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925a2646970667358221220be42865ebd965828e2b8ad3a4c0ad603b7a0acd1110e894e70bda609680c7cd464736f6c634300080f0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000b0b195aefa3650a6908f15cdac7d92f8a5791b0b
-----Decoded View---------------
Arg [0] : _self (address): 0xB0B195aEFA3650A6908f15CdaC7D92F8a5791B0B
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000b0b195aefa3650a6908f15cdac7d92f8a5791b0b
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.