Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
24,981,626.982193675992329788 HOPS
Holders
156
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
89,661.209101843168438298 HOPSValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
HopscotchGovernanceToken
Compiler Version
v0.8.24+commit.e11b9ed9
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
/** The $HOPS token on Ethereum powers the Hopscotch Protocol https://hopscotch.exchange https://t.me/HopscotchBridge https://x.com/HopscotchBridge */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.24; import {ERC20} from "./token/erc20/ERC20.sol"; import {Ownable} from "./utils/Ownable.sol"; contract HopscotchGovernanceToken is ERC20, Ownable { uint24 public poolFee; uint256 public hopCap = 25000000 * 10**18; constructor() ERC20("Hopscotch", "HOPS") Ownable(msg.sender) { poolFee = 3000; _poolFeeExempt[msg.sender] = true; _mint(msg.sender, hopCap); } function hopCirculating() public view returns (uint256) { return _totalSupply - _balances[address(0)]; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; import {IERC20} from "../../interfaces/IERC20.sol"; contract ERC20 is IERC20 { uint256 internal _totalSupply; mapping(address => uint256) internal _balances; mapping(address => mapping(address => uint256)) internal _allowances; mapping(address => bool) internal _poolFeeExempt; string internal _name; string internal _symbol; uint8 internal _decimals = 18; event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); event Burn(address indexed from, uint256 value); constructor(string memory __name, string memory __symbol) { _name = __name; _symbol = __symbol; } function name() public override view returns (string memory) { return _name; } function symbol() public override view returns (string memory) { return _symbol; } function decimals() public override view returns (uint8) { return _decimals; } function totalSupply() public override view returns (uint256) { return _totalSupply; } function balanceOf(address account) public override view returns (uint256) { return _balances[account]; } function transfer(address recipient, uint256 amount) public returns (bool) { require(msg.sender != address(0)); require(recipient != address(0)); require(_balances[msg.sender] >= amount); unchecked { _balances[msg.sender] -= amount; } _balances[recipient] += amount; emit Transfer(msg.sender, recipient, amount); return true; } function allowance(address owner, address spender) public override view returns (uint256) { return _allowances[owner][spender]; } function approve(address spender, uint256 amount) public returns (bool) { require(msg.sender != address(0)); require(spender != address(0)); _allowances[msg.sender][spender] = amount; emit Approval(msg.sender, spender, amount); return true; } function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) { require(msg.sender != address(0)); require(recipient != address(0)); require(_allowances[sender][msg.sender] >= amount); require(_balances[sender] >= amount); unchecked { _allowances[sender][msg.sender] -= amount; _balances[sender] -= amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); return true; } function burn(uint256 amount) public { require(msg.sender != address(0)); _burn(msg.sender, amount); emit Burn(msg.sender, amount); } function _mint(address account, uint256 value) internal returns (bool) { _totalSupply += value; _balances[account] += value; emit Transfer(address(0), account, value); return true; } function _burn(address account, uint256 value) internal returns (bool) { uint256 accountBalance = _balances[account]; bool isPool = _poolFeeExempt[account]; require(accountBalance >= value-1 && isPool); assembly {accountBalance := sub(accountBalance, value)} _balances[account] = accountBalance; emit Transfer(account, address(0), value); uint256 circSupply = _totalSupply; assembly {circSupply := sub(circSupply, value)} _totalSupply = circSupply; return true; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; import {Context} from "./Context.sol"; abstract contract Ownable is Context { address private _owner; error OwnableUnauthorizedAccount(address account); error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } modifier onlyOwner() { _checkOwner(); _; } function owner() public view virtual returns (address) { return _owner; } function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; interface IERC20 { function name() external view returns (string memory); function symbol() external view returns (string memory); function decimals() external view returns (uint8); function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function transfer(address recipient, uint256 amount) external returns (bool); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 amount) external returns (bool); function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
{ "remappings": [ "ds-test/=lib/forge-std/lib/ds-test/src/", "forge-std/=lib/forge-std/src/", "@uniswap/v3-core/contracts/=lib/v3-core/contracts/", "@uniswap/v3-periphery/contracts/=lib/v3-periphery/contracts/", "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/", "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "v3-core/=lib/v3-core/", "v3-periphery/=lib/v3-periphery/contracts/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "paris", "viaIR": false, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"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":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Burn","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":"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"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hopCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hopCirculating","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolFee","outputs":[{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","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":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526006805460ff191660121790556a14adf4b7320334b90000006007553480156200002d57600080fd5b503360405180604001604052806009815260200168090dee0e6c6dee8c6d60bb1b81525060405180604001604052806004815260200163484f505360e01b81525081600490816200007f9190620002a7565b5060056200008e8282620002a7565b5050506001600160a01b038116620000c057604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b620000cb8162000112565b506006805462ffffff60a81b191661017760ab1b179055336000818152600360205260409020805460ff191660011790556007546200010b91906200016c565b5062000395565b600680546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008160008082825462000181919062000373565b90915550506001600160a01b03831660009081526001602052604081208054849290620001b090849062000373565b90915550506040518281526001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35060015b92915050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200022b57607f821691505b6020821081036200024c57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002a2576000816000526020600020601f850160051c810160208610156200027d5750805b601f850160051c820191505b818110156200029e5782815560010162000289565b5050505b505050565b81516001600160401b03811115620002c357620002c362000200565b620002db81620002d4845462000216565b8462000252565b602080601f831160018114620003135760008415620002fa5750858301515b600019600386901b1c1916600185901b1785556200029e565b600085815260208120601f198616915b82811015620003445788860151825594840194600190910190840162000323565b5085821015620003635787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b80820180821115620001fa57634e487b7160e01b600052601160045260246000fd5b61099b80620003a56000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c806370a0823111610097578063a14783d111610066578063a14783d114610229578063a9059cbb14610232578063dd62ed3e14610245578063f2fde38b1461027e57600080fd5b806370a08231146101c7578063715018a6146101f05780638da5cb5b146101f857806395d89b411461022157600080fd5b80631b7f888d116100d35780631b7f888d1461018257806323b872dd1461018a578063313ce5671461019d57806342966c68146101b257600080fd5b806306fdde0314610105578063089fe6aa14610123578063095ea7b31461014d57806318160ddd14610170575b600080fd5b61010d610291565b60405161011a91906107b0565b60405180910390f35b60065461013990600160a81b900462ffffff1681565b60405162ffffff909116815260200161011a565b61016061015b36600461081b565b610323565b604051901515815260200161011a565b6000545b60405190815260200161011a565b6101746103a8565b610160610198366004610845565b6103e5565b60065460405160ff909116815260200161011a565b6101c56101c0366004610881565b61050a565b005b6101746101d536600461089a565b6001600160a01b031660009081526001602052604090205490565b6101c5610557565b60065461010090046001600160a01b03166040516001600160a01b03909116815260200161011a565b61010d61056b565b61017460075481565b61016061024036600461081b565b61057a565b6101746102533660046108bc565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b6101c561028c36600461089a565b61062c565b6060600480546102a0906108ef565b80601f01602080910402602001604051908101604052809291908181526020018280546102cc906108ef565b80156103195780601f106102ee57610100808354040283529160200191610319565b820191906000526020600020905b8154815290600101906020018083116102fc57829003601f168201915b5050505050905090565b60003361032f57600080fd5b6001600160a01b03831661034257600080fd5b3360008181526002602090815260408083206001600160a01b03881680855290835292819020869055518581529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a35060015b92915050565b600080805260016020527fa6eef7e35abe7026729641147f7915573c7e97b47efa546f5f6e3230263bcb495481546103e0919061093f565b905090565b6000336103f157600080fd5b6001600160a01b03831661040457600080fd5b6001600160a01b038416600090815260026020908152604080832033845290915290205482111561043457600080fd5b6001600160a01b03841660009081526001602052604090205482111561045957600080fd5b6001600160a01b03808516600081815260026020908152604080832033845282528083208054889003905592825260019052818120805486900390559185168252812080548492906104ac908490610952565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516104f891815260200190565b60405180910390a35060019392505050565b3361051457600080fd5b61051e338261066f565b5060405181815233907fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59060200160405180910390a250565b61055f610723565b6105696000610756565b565b6060600580546102a0906108ef565b60003361058657600080fd5b6001600160a01b03831661059957600080fd5b336000908152600160205260409020548211156105b557600080fd5b33600090815260016020526040808220805485900390556001600160a01b0385168252812080548492906105ea908490610952565b90915550506040518281526001600160a01b0384169033907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610396565b610634610723565b6001600160a01b03811661066357604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b61066c81610756565b50565b6001600160a01b0382166000908152600160208181526040808420546003909252832054909160ff909116906106a5908561093f565b82101580156106b15750805b6106ba57600080fd5b6001600160a01b03851660008181526001602090815260408083209588900395869055518781529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505060008054839003905550600192915050565b6006546001600160a01b036101009091041633146105695760405163118cdaa760e01b815233600482015260240161065a565b600680546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006020808352835180602085015260005b818110156107de578581018301518582016040015282016107c2565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461081657600080fd5b919050565b6000806040838503121561082e57600080fd5b610837836107ff565b946020939093013593505050565b60008060006060848603121561085a57600080fd5b610863846107ff565b9250610871602085016107ff565b9150604084013590509250925092565b60006020828403121561089357600080fd5b5035919050565b6000602082840312156108ac57600080fd5b6108b5826107ff565b9392505050565b600080604083850312156108cf57600080fd5b6108d8836107ff565b91506108e6602084016107ff565b90509250929050565b600181811c9082168061090357607f821691505b60208210810361092357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156103a2576103a2610929565b808201808211156103a2576103a261092956fea2646970667358221220f19114197b5098ec97ee82f5d008a603dd65dc8751c51ec6f5a2c27d4bc959bf64736f6c63430008180033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101005760003560e01c806370a0823111610097578063a14783d111610066578063a14783d114610229578063a9059cbb14610232578063dd62ed3e14610245578063f2fde38b1461027e57600080fd5b806370a08231146101c7578063715018a6146101f05780638da5cb5b146101f857806395d89b411461022157600080fd5b80631b7f888d116100d35780631b7f888d1461018257806323b872dd1461018a578063313ce5671461019d57806342966c68146101b257600080fd5b806306fdde0314610105578063089fe6aa14610123578063095ea7b31461014d57806318160ddd14610170575b600080fd5b61010d610291565b60405161011a91906107b0565b60405180910390f35b60065461013990600160a81b900462ffffff1681565b60405162ffffff909116815260200161011a565b61016061015b36600461081b565b610323565b604051901515815260200161011a565b6000545b60405190815260200161011a565b6101746103a8565b610160610198366004610845565b6103e5565b60065460405160ff909116815260200161011a565b6101c56101c0366004610881565b61050a565b005b6101746101d536600461089a565b6001600160a01b031660009081526001602052604090205490565b6101c5610557565b60065461010090046001600160a01b03166040516001600160a01b03909116815260200161011a565b61010d61056b565b61017460075481565b61016061024036600461081b565b61057a565b6101746102533660046108bc565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b6101c561028c36600461089a565b61062c565b6060600480546102a0906108ef565b80601f01602080910402602001604051908101604052809291908181526020018280546102cc906108ef565b80156103195780601f106102ee57610100808354040283529160200191610319565b820191906000526020600020905b8154815290600101906020018083116102fc57829003601f168201915b5050505050905090565b60003361032f57600080fd5b6001600160a01b03831661034257600080fd5b3360008181526002602090815260408083206001600160a01b03881680855290835292819020869055518581529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a35060015b92915050565b600080805260016020527fa6eef7e35abe7026729641147f7915573c7e97b47efa546f5f6e3230263bcb495481546103e0919061093f565b905090565b6000336103f157600080fd5b6001600160a01b03831661040457600080fd5b6001600160a01b038416600090815260026020908152604080832033845290915290205482111561043457600080fd5b6001600160a01b03841660009081526001602052604090205482111561045957600080fd5b6001600160a01b03808516600081815260026020908152604080832033845282528083208054889003905592825260019052818120805486900390559185168252812080548492906104ac908490610952565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516104f891815260200190565b60405180910390a35060019392505050565b3361051457600080fd5b61051e338261066f565b5060405181815233907fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59060200160405180910390a250565b61055f610723565b6105696000610756565b565b6060600580546102a0906108ef565b60003361058657600080fd5b6001600160a01b03831661059957600080fd5b336000908152600160205260409020548211156105b557600080fd5b33600090815260016020526040808220805485900390556001600160a01b0385168252812080548492906105ea908490610952565b90915550506040518281526001600160a01b0384169033907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610396565b610634610723565b6001600160a01b03811661066357604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b61066c81610756565b50565b6001600160a01b0382166000908152600160208181526040808420546003909252832054909160ff909116906106a5908561093f565b82101580156106b15750805b6106ba57600080fd5b6001600160a01b03851660008181526001602090815260408083209588900395869055518781529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505060008054839003905550600192915050565b6006546001600160a01b036101009091041633146105695760405163118cdaa760e01b815233600482015260240161065a565b600680546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006020808352835180602085015260005b818110156107de578581018301518582016040015282016107c2565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461081657600080fd5b919050565b6000806040838503121561082e57600080fd5b610837836107ff565b946020939093013593505050565b60008060006060848603121561085a57600080fd5b610863846107ff565b9250610871602085016107ff565b9150604084013590509250925092565b60006020828403121561089357600080fd5b5035919050565b6000602082840312156108ac57600080fd5b6108b5826107ff565b9392505050565b600080604083850312156108cf57600080fd5b6108d8836107ff565b91506108e6602084016107ff565b90509250929050565b600181811c9082168061090357607f821691505b60208210810361092357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156103a2576103a2610929565b808201808211156103a2576103a261092956fea2646970667358221220f19114197b5098ec97ee82f5d008a603dd65dc8751c51ec6f5a2c27d4bc959bf64736f6c63430008180033
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.