Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
1,807,657,479.7111658984337794 HSTK
Holders
94
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
55,555.55556 HSTKValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
HstkToken
Compiler Version
v0.8.28+commit.7893614a
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.28; import {Pausable} from "./utils/Pausable.sol"; import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import {IERC20} from "@openzeppelin/contracts/interfaces/IERC20.sol"; import {BlackListed} from "./utils/BlackListed.sol"; /** * @title HstkToken * @dev Implementation of the HstkToken * This contract extends ERC20 with Pausable and BlackListed functionalities. * It includes features for minting, burning, token recovery, and various pause states. */ contract HstkToken is ERC20, Pausable, BlackListed { using SafeERC20 for IERC20; /** * @notice Emitted whenever MAX Supply is reached. */ error MAX_SUPPLY_EXCEEDED(); /** * @notice Emitted whenever tokens are minted for an account. * * @param account Address of the account tokens are being minted for. * @param amount Amount of tokens minted. */ event Mint(address indexed account, uint256 amount); /** * @notice Event emitted when tokens are rescued from the contract * * @param token Address of the token to be rescued * @param to Address of receipient * @param amount amount transferred to 'to' address */ event Token_Rescued(address indexed token, address indexed to, uint256 amount); /** * @notice Emitted whenever tokens are burned from an account. * * @param account Address of the account tokens are being burned from. * @param amount Amount of tokens burned. */ event Burn(address indexed account, uint256 amount); /// @dev The maximum total supply of tokens uint256 private constant MAX_SUPPLY = 9_000_000_000e18; /** * @dev Constructor that gives the admin the initial supply of tokens * @param _multisig Address of the multiSig account */ constructor(address _multisig) ERC20("Hashstack", "HSTK") Pausable() BlackListed(_multisig) { require(_multisig != address(0), "Address cannot be zero address"); _mint(_multisig, 1 * 10 ** decimals()); } /** * @dev See {ERC20-transfer}. * Added partialPausedOff and pausedOff modifiers */ function transfer(address to, uint256 value) public override whenActive notBlackListed(_msgSender()) notBlackListed(to) returns (bool) { return super.transfer(to, value); } /** * @dev See {ERC20-transferFrom}. * Added partialPausedOff and pausedOff modifiers */ function transferFrom(address from, address to, uint256 value) public override whenActive notBlackListed(_msgSender()) notBlackListed(from) notBlackListed(to) returns (bool) { return super.transferFrom(from, to, value); } /** * @dev See {ERC20-approve}. * Added pausedOff modifier */ function approve(address spender, uint256 value) public override allowedInActiveOrPartialPause notBlackListed(_msgSender()) notBlackListed(spender) returns (bool) { return super.approve(spender, value); } /** * @dev Mints new tokens * @param account The address that will receive the minted tokens * @param value The amount of tokens to mint * Requirements: * - Can only be called by the admin * - Contract must not be paused * - `account` cannot be the zero address * - Total supply after minting must not exceed MAX_SUPPLY */ function mint(address account, uint256 value) external allowedInActiveOrPartialPause onlyMultiSig notBlackListed(account) { if (totalSupply() + value > MAX_SUPPLY) { revert MAX_SUPPLY_EXCEEDED(); } _mint(account, value); emit Mint(account, value); } /** * @dev Burns tokens * @param value The amount of tokens to burn * Requirements: * - Contract must not be fully paused */ function burn(uint256 value) external allowedInActiveOrPartialPause { _burn(_msgSender(), value); emit Burn(_msgSender(), value); } /** * @dev Recovers tokens accidentally sent to this contract * @param asset The address of the token to recover * @param to The address to send the recovered tokens * Requirements: * - Can only be called by the admin * - `asset` and `to` cannot be the zero address * @notice This function can be used to recover any ERC20 tokens sent to this contract by mistake */ function recoverToken(address asset, address to) external allowedInActiveOrPartialPause onlyMultiSig { IERC20 interfaceAsset = IERC20(asset); uint256 balance = interfaceAsset.balanceOf(address(this)); interfaceAsset.safeTransfer(to, balance); emit Token_Rescued(asset, to, balance); } /** * @dev Updates the contract's operational state * @param newState The new state to set (0: Active, 1: Partial Pause, 2: Full Pause) * Requirements: * - Can only be called by the MultiSig */ function updateOperationalState(uint8 newState) external onlyMultiSig { _updateOperationalState(newState); } /** * @dev Returns the max supply of tokens */ function supplyHardCap() external pure returns (uint256) { return MAX_SUPPLY; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.28; import {Context} from "@openzeppelin/contracts/utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `pausedOff` and `pausedOn`, which can be applied to * the functions of your contract. */ abstract contract Pausable is Context { enum PauseState { ACTIVE, // Normal operation state PARTIAL_PAUSE, // Partially paused state FULL_PAUSE // Fully paused state } PauseState private _currentState; /** * @dev Emitted when the pause state is changed by `account`. */ event PauseStateChanged(address account, PauseState newState); /** * @dev The operation failed because the contract is fully paused. */ error EnforcedPause(); /** * @dev The operation failed because the contract is partially paused. */ error EnforcedPartialPause(); /** * @dev The operation failed because the current state is partially paused. */ error InvalidStateChange(); /** * @dev Initializes the contract in ACTIVE state. */ constructor() { _currentState = PauseState.ACTIVE; } /** * @dev Modifier to make a function callable only when the contract is active. */ modifier whenActive() { _requireActive(); _; } modifier allowedInActiveOrPartialPause() { if (_currentState == PauseState.ACTIVE || _currentState == PauseState.PARTIAL_PAUSE) { _; } else { revert InvalidStateChange(); } } /** * @dev Returns the current pause state of the contract. */ function getCurrentState() external view returns (PauseState) { return _currentState; } /** * @dev Throws if the contract is not active. */ function _requireActive() internal view { if (_currentState != PauseState.ACTIVE) { if (_currentState == PauseState.FULL_PAUSE) { revert EnforcedPause(); } else { revert EnforcedPartialPause(); } } } /** * @dev Update the Contract Pause State. */ function _updateOperationalState(uint8 _state) internal { if (_state > 2) revert InvalidStateChange(); _currentState = PauseState(_state); emit PauseStateChanged(_msgSender(), _currentState); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "./IERC20.sol"; import {IERC20Metadata} from "./extensions/IERC20Metadata.sol"; import {Context} from "../../utils/Context.sol"; import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. */ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors { mapping(address account => uint256) private _balances; mapping(address account => mapping(address spender => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `value`. */ function transfer(address to, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _transfer(owner, to, value); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, value); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `value`. * - the caller must have allowance for ``from``'s tokens of at least * `value`. */ function transferFrom(address from, address to, uint256 value) public virtual returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, value); _transfer(from, to, value); return true; } /** * @dev Moves a `value` amount of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _transfer(address from, address to, uint256 value) internal { if (from == address(0)) { revert ERC20InvalidSender(address(0)); } if (to == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(from, to, value); } /** * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from` * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding * this function. * * Emits a {Transfer} event. */ function _update(address from, address to, uint256 value) internal virtual { if (from == address(0)) { // Overflow check required: The rest of the code assumes that totalSupply never overflows _totalSupply += value; } else { uint256 fromBalance = _balances[from]; if (fromBalance < value) { revert ERC20InsufficientBalance(from, fromBalance, value); } unchecked { // Overflow not possible: value <= fromBalance <= totalSupply. _balances[from] = fromBalance - value; } } if (to == address(0)) { unchecked { // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply. _totalSupply -= value; } } else { unchecked { // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256. _balances[to] += value; } } emit Transfer(from, to, value); } /** * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0). * Relies on the `_update` mechanism * * Emits a {Transfer} event with `from` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _mint(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(address(0), account, value); } /** * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply. * Relies on the `_update` mechanism. * * Emits a {Transfer} event with `to` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead */ function _burn(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidSender(address(0)); } _update(account, address(0), value); } /** * @dev Sets `value` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address owner, address spender, uint256 value) internal { _approve(owner, spender, value, true); } /** * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event. * * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any * `Approval` event during `transferFrom` operations. * * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to * true using the following override: * ``` * function _approve(address owner, address spender, uint256 value, bool) internal virtual override { * super._approve(owner, spender, value, true); * } * ``` * * Requirements are the same as {_approve}. */ function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual { if (owner == address(0)) { revert ERC20InvalidApprover(address(0)); } if (spender == address(0)) { revert ERC20InvalidSpender(address(0)); } _allowances[owner][spender] = value; if (emitEvent) { emit Approval(owner, spender, value); } } /** * @dev Updates `owner` s allowance for `spender` based on spent `value`. * * Does not update the allowance value in case of infinite allowance. * Revert if not enough allowance is available. * * Does not emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 value) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { if (currentAllowance < value) { revert ERC20InsufficientAllowance(spender, currentAllowance, value); } unchecked { _approve(owner, spender, currentAllowance - value, false); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; import {IERC20Permit} from "../extensions/IERC20Permit.sol"; import {Address} from "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; /** * @dev An operation with an ERC20 token failed. */ error SafeERC20FailedOperation(address token); /** * @dev Indicates a failed `decreaseAllowance` request. */ error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease); /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value))); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value))); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); forceApprove(token, spender, oldAllowance + value); } /** * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no * value, non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal { unchecked { uint256 currentAllowance = token.allowance(address(this), spender); if (currentAllowance < requestedDecrease) { revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease); } forceApprove(token, spender, currentAllowance - requestedDecrease); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value)); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0))); _callOptionalReturn(token, approvalCall); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data); if (returndata.length != 0 && !abi.decode(returndata, (bool))) { revert SafeERC20FailedOperation(address(token)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "../token/ERC20/IERC20.sol";
// SPDX-License-Identifier: MIT pragma solidity 0.8.28; import {Context} from "@openzeppelin/contracts/utils/Context.sol"; /** * @title BlackListed * @dev Implements blacklisting functionality for addresses * This contract allows an admin to blacklist and unblacklist addresses */ abstract contract BlackListed is Context { // Errors error AccountBlackListed(address account); error RestrictedToMultiSig(); error InvalidOperation(); // Events event NewAccountBlackListed(address indexed account); event RemovedAccountBlackListed(address indexed account); // State variables mapping(address => bool) private blackListedAccounts; address public immutable multiSig; /** * @dev Constructor that sets the admin address * @param _multiSig The address of the admin */ constructor(address _multiSig) { multiSig = _multiSig; } /** * @dev Modifier to check if an address is not blacklisted * @param _check The address to check */ modifier notBlackListed(address _check) { if (isBlackListed(_check)) { revert AccountBlackListed(_check); } _; } /** * @dev Modifier to restrict access to admin only */ modifier onlyMultiSig() { if (_msgSender() != multiSig) { revert RestrictedToMultiSig(); } _; } /** * @dev Blacklists an account * @param account The address to blacklist * Requirements: * - Can only be called by the admin * - `account` cannot be the zero address */ function blackListAccount(address account) external onlyMultiSig { blackListedAccounts[account] = true; emit NewAccountBlackListed(account); } /** * @dev Removes an account from the blacklist * @param account The address to remove from the blacklist * Requirements: * - Can only be called by the admin */ function removeBlackListedAccount(address account) external onlyMultiSig { blackListedAccounts[account] = false; emit RemovedAccountBlackListed(account); } /** * @dev Checks if an account is blacklisted * @param account The address to check * @return bool True if the account is blacklisted, false otherwise */ function isBlackListed(address account) public view returns (bool) { return blackListedAccounts[account]; } receive() external payable { revert InvalidOperation(); } fallback() external payable { revert InvalidOperation(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @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 value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` 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 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. */ 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 v5.0.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * ==== Security Considerations * * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be * considered as an intention to spend the allowance in any specific way. The second is that because permits have * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be * generally recommended is: * * ```solidity * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public { * try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {} * doThing(..., value); * } * * function doThing(..., uint256 value) public { * token.safeTransferFrom(msg.sender, address(this), value); * ... * } * ``` * * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also * {SafeERC20-safeTransferFrom}). * * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so * contracts should have entry points that don't rely on permit. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. * * CAUTION: See Security Considerations above. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol) pragma solidity ^0.8.20; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev The ETH balance of the account is not enough to perform the operation. */ error AddressInsufficientBalance(address account); /** * @dev There's no code at `target` (it is not a contract). */ error AddressEmptyCode(address target); /** * @dev A call to an address target failed. The target may have reverted. */ error FailedInnerCall(); /** * @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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { if (address(this).balance < amount) { revert AddressInsufficientBalance(address(this)); } (bool success, ) = recipient.call{value: amount}(""); if (!success) { revert FailedInnerCall(); } } /** * @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 or custom error, it is bubbled * up by this function (like regular Solidity function calls). However, if * the call reverted with no returned reason, this function reverts with a * {FailedInnerCall} error. * * 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. */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0); } /** * @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`. */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { if (address(this).balance < value) { revert AddressInsufficientBalance(address(this)); } (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an * unsuccessful call. */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata ) internal view returns (bytes memory) { if (!success) { _revert(returndata); } else { // only check if target is a contract if the call was successful and the return data is empty // otherwise we already know that it was a contract if (returndata.length == 0 && target.code.length == 0) { revert AddressEmptyCode(target); } return returndata; } } /** * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the * revert reason or with a default {FailedInnerCall} error. */ function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) { if (!success) { _revert(returndata); } else { return returndata; } } /** * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}. */ function _revert(bytes memory returndata) 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 FailedInnerCall(); } } }
{ "remappings": [ "@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/", "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/", "ds-test/=lib/openzeppelin-contracts-upgradeable/lib/forge-std/lib/ds-test/src/", "erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/", "forge-std/=lib/forge-std/src/", "halmos-cheatcodes/=lib/openzeppelin-contracts-upgradeable/lib/halmos-cheatcodes/src/", "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/", "openzeppelin-contracts/=lib/openzeppelin-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":[{"internalType":"address","name":"_multisig","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AccountBlackListed","type":"error"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[],"name":"EnforcedPartialPause","type":"error"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[],"name":"InvalidOperation","type":"error"},{"inputs":[],"name":"InvalidStateChange","type":"error"},{"inputs":[],"name":"MAX_SUPPLY_EXCEEDED","type":"error"},{"inputs":[],"name":"RestrictedToMultiSig","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","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":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"NewAccountBlackListed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"enum Pausable.PauseState","name":"newState","type":"uint8"}],"name":"PauseStateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"RemovedAccountBlackListed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Token_Rescued","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"},{"stateMutability":"payable","type":"fallback"},{"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":"value","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":"address","name":"account","type":"address"}],"name":"blackListAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentState","outputs":[{"internalType":"enum Pausable.PauseState","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isBlackListed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"multiSig","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"recoverToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"removeBlackListedAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"supplyHardCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","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":"value","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":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"newState","type":"uint8"}],"name":"updateOperationalState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60a060405234801561001057600080fd5b50604051611a3c380380611a3c83398101604081905261002f91610283565b806040518060400160405280600981526020016848617368737461636b60b81b815250604051806040016040528060048152602001634853544b60e01b815250816003908161007e9190610352565b50600461008b8282610352565b50506005805460ff19169055506001600160a01b0390811660805281166100f95760405162461bcd60e51b815260206004820152601e60248201527f416464726573732063616e6e6f74206265207a65726f2061646472657373000060448201526064015b60405180910390fd5b610119816101096012600a61050f565b61011490600161051e565b61011f565b50610548565b6001600160a01b0382166101495760405163ec442f0560e01b8152600060048201526024016100f0565b61015560008383610159565b5050565b6001600160a01b0383166101845780600260008282546101799190610535565b909155506101f69050565b6001600160a01b038316600090815260208190526040902054818110156101d75760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016100f0565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b03821661021257600280548290039055610231565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161027691815260200190565b60405180910390a3505050565b60006020828403121561029557600080fd5b81516001600160a01b03811681146102ac57600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806102dd57607f821691505b6020821081036102fd57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561034d57806000526020600020601f840160051c8101602085101561032a5750805b601f840160051c820191505b8181101561034a5760008155600101610336565b50505b505050565b81516001600160401b0381111561036b5761036b6102b3565b61037f8161037984546102c9565b84610303565b6020601f8211600181146103b3576000831561039b5750848201515b600019600385901b1c1916600184901b17845561034a565b600084815260208120601f198516915b828110156103e357878501518255602094850194600190920191016103c3565b50848210156104015786840151600019600387901b60f8161c191681555b50505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b6001815b60018411156104615780850481111561044557610445610410565b600184161561045357908102905b60019390931c92800261042a565b935093915050565b60008261047857506001610509565b8161048557506000610509565b816001811461049b57600281146104a5576104c1565b6001915050610509565b60ff8411156104b6576104b6610410565b50506001821b610509565b5060208310610133831016604e8410600b84101617156104e4575081810a610509565b6104f16000198484610426565b806000190482111561050557610505610410565b0290505b92915050565b60006102ac60ff841683610469565b808202811582820484141761050957610509610410565b8082018082111561050957610509610410565b6080516114b6610586600039600081816102170152818161068f015281816108260152818161090a0152818161099c0152610a8f01526114b66000f3fe6080604052600436106101185760003560e01c806350f20190116100a0578063c460f1be11610064578063c460f1be1461035d578063dd62ed3e1461037d578063e0644962146103c3578063e47d6060146103e3578063feaea5861461040357610136565b806350f20190146102b357806370a08231146102d357806395d89b4114610309578063a9059cbb1461031e578063bad0c2471461033e57610136565b8063313ce567116100e7578063313ce567146101e957806336e0004a14610205578063378aa7011461025157806340c10f191461027157806342966c681461029357610136565b806306fdde031461014f578063095ea7b31461017a57806318160ddd146101aa57806323b872dd146101c957610136565b3661013657604051631cc6a69960e11b815260040160405180910390fd5b604051631cc6a69960e11b815260040160405180910390fd5b34801561015b57600080fd5b50610164610423565b604051610171919061122b565b60405180910390f35b34801561018657600080fd5b5061019a61019536600461127a565b6104b5565b6040519015158152602001610171565b3480156101b657600080fd5b506002545b604051908152602001610171565b3480156101d557600080fd5b5061019a6101e43660046112a4565b610593565b3480156101f557600080fd5b5060405160128152602001610171565b34801561021157600080fd5b506102397f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610171565b34801561025d57600080fd5b5060055460ff166040516101719190611319565b34801561027d57600080fd5b5061029161028c36600461127a565b61064c565b005b34801561029f57600080fd5b506102916102ae366004611327565b61079e565b3480156102bf57600080fd5b506102916102ce366004611340565b610823565b3480156102df57600080fd5b506101bb6102ee366004611363565b6001600160a01b031660009081526020819052604090205490565b34801561031557600080fd5b50610164610875565b34801561032a57600080fd5b5061019a61033936600461127a565b610884565b34801561034a57600080fd5b506b1d14a0219e548224280000006101bb565b34801561036957600080fd5b50610291610378366004611363565b610907565b34801561038957600080fd5b506101bb61039836600461137e565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3480156103cf57600080fd5b506102916103de366004611363565b610999565b3480156103ef57600080fd5b5061019a6103fe366004611363565b610a2e565b34801561040f57600080fd5b5061029161041e36600461137e565b610a4c565b606060038054610432906113b1565b80601f016020809104026020016040519081016040528092919081815260200182805461045e906113b1565b80156104ab5780601f10610480576101008083540402835291602001916104ab565b820191906000526020600020905b81548152906001019060200180831161048e57829003601f168201915b5050505050905090565b60008060055460ff1660028111156104cf576104cf6112e1565b14806104f15750600160055460ff1660028111156104ef576104ef6112e1565b145b15610574573361050081610a2e565b1561052e576040516331483e1360e21b81526001600160a01b03821660048201526024015b60405180910390fd5b8361053881610a2e565b15610561576040516331483e1360e21b81526001600160a01b0382166004820152602401610525565b61056b8585610bab565b9250505061058d565b60405163a999a3b360e01b815260040160405180910390fd5b92915050565b600061059d610bc3565b336105a781610a2e565b156105d0576040516331483e1360e21b81526001600160a01b0382166004820152602401610525565b846105da81610a2e565b15610603576040516331483e1360e21b81526001600160a01b0382166004820152602401610525565b8461060d81610a2e565b15610636576040516331483e1360e21b81526001600160a01b0382166004820152602401610525565b610641878787610c33565b979650505050505050565b600060055460ff166002811115610665576106656112e1565b14806106875750600160055460ff166002811115610685576106856112e1565b145b1561057457337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316146106d557604051631388c17360e31b815260040160405180910390fd5b816106df81610a2e565b15610708576040516331483e1360e21b81526001600160a01b0382166004820152602401610525565b6b1d14a0219e548224280000008261071f60025490565b61072991906113eb565b11156107485760405163ed0f594f60e01b815260040160405180910390fd5b6107528383610c59565b826001600160a01b03167f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968858360405161078d91815260200190565b60405180910390a2505050565b5050565b600060055460ff1660028111156107b7576107b76112e1565b14806107d95750600160055460ff1660028111156107d7576107d76112e1565b145b15610574576107e83382610c8f565b60405181815233907fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59060200160405180910390a250565b50565b337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03161461086c57604051631388c17360e31b815260040160405180910390fd5b61082081610cc5565b606060048054610432906113b1565b600061088e610bc3565b3361089881610a2e565b156108c1576040516331483e1360e21b81526001600160a01b0382166004820152602401610525565b836108cb81610a2e565b156108f4576040516331483e1360e21b81526001600160a01b0382166004820152602401610525565b6108fe8585610d61565b95945050505050565b337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03161461095057604051631388c17360e31b815260040160405180910390fd5b6001600160a01b038116600081815260066020526040808220805460ff19169055517f054de1fc550ea93b62f87d8d9fc55ac4a68cea3d0264707e35bfb5faea7bc1d39190a250565b337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316146109e257604051631388c17360e31b815260040160405180910390fd5b6001600160a01b038116600081815260066020526040808220805460ff19166001179055517f9382afe70dc558089876f00784c8106c35596807473b16828f63bedd0d96e60b9190a250565b6001600160a01b031660009081526006602052604090205460ff1690565b600060055460ff166002811115610a6557610a656112e1565b1480610a875750600160055460ff166002811115610a8557610a856112e1565b145b1561057457337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031614610ad557604051631388c17360e31b815260040160405180910390fd5b6040516370a0823160e01b815230600482015282906000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610b1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b42919061140c565b9050610b586001600160a01b0383168483610d6f565b826001600160a01b0316846001600160a01b03167fa39de3173746e9ac424d99c14913096a8f46975b6ddfa2424e5d78b1423c3c9683604051610b9d91815260200190565b60405180910390a350505050565b600033610bb9818585610dc6565b5060019392505050565b600060055460ff166002811115610bdc57610bdc6112e1565b14610c3157600260055460ff166002811115610bfa57610bfa6112e1565b03610c185760405163d93c066560e01b815260040160405180910390fd5b60405163199fca7360e01b815260040160405180910390fd5b565b600033610c41858285610dd3565b610c4c858585610e51565b60019150505b9392505050565b6001600160a01b038216610c835760405163ec442f0560e01b815260006004820152602401610525565b61079a60008383610eac565b6001600160a01b038216610cb957604051634b637e8f60e11b815260006004820152602401610525565b61079a82600083610eac565b60028160ff161115610cea5760405163a999a3b360e01b815260040160405180910390fd5b8060ff166002811115610cff57610cff6112e1565b6005805460ff19166001836002811115610d1b57610d1b6112e1565b02179055507f13f1e45f22becbad6ea74d5e203d43c1b6c52aab9accb45ad00863aba4063a0a33600554604051610d56929160ff1690611425565b60405180910390a150565b600033610bb9818585610e51565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610dc1908490610fd6565b505050565b610dc18383836001611039565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610e4b5781811015610e3c57604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610525565b610e4b84848484036000611039565b50505050565b6001600160a01b038316610e7b57604051634b637e8f60e11b815260006004820152602401610525565b6001600160a01b038216610ea55760405163ec442f0560e01b815260006004820152602401610525565b610dc18383835b6001600160a01b038316610ed7578060026000828254610ecc91906113eb565b90915550610f499050565b6001600160a01b03831660009081526020819052604090205481811015610f2a5760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610525565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216610f6557600280548290039055610f84565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610fc991815260200190565b60405180910390a3505050565b6000610feb6001600160a01b03841683611100565b9050805160001415801561101057508080602001905181019061100e9190611442565b155b15610dc157604051635274afe760e01b81526001600160a01b0384166004820152602401610525565b6001600160a01b0384166110635760405163e602df0560e01b815260006004820152602401610525565b6001600160a01b03831661108d57604051634a1406b160e11b815260006004820152602401610525565b6001600160a01b0380851660009081526001602090815260408083209387168352929052208290558015610e4b57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610b9d91815260200190565b6060610c528383600084600080856001600160a01b031684866040516111269190611464565b60006040518083038185875af1925050503d8060008114611163576040519150601f19603f3d011682016040523d82523d6000602084013e611168565b606091505b5091509150611178868383611182565b9695505050505050565b60608261119757611192826111de565b610c52565b81511580156111ae57506001600160a01b0384163b155b156111d757604051639996b31560e01b81526001600160a01b0385166004820152602401610525565b5080610c52565b8051156111ee5780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b60005b8381101561122257818101518382015260200161120a565b50506000910152565b602081526000825180602084015261124a816040850160208701611207565b601f01601f19169190910160400192915050565b80356001600160a01b038116811461127557600080fd5b919050565b6000806040838503121561128d57600080fd5b6112968361125e565b946020939093013593505050565b6000806000606084860312156112b957600080fd5b6112c28461125e565b92506112d06020850161125e565b929592945050506040919091013590565b634e487b7160e01b600052602160045260246000fd5b6003811061131557634e487b7160e01b600052602160045260246000fd5b9052565b6020810161058d82846112f7565b60006020828403121561133957600080fd5b5035919050565b60006020828403121561135257600080fd5b813560ff81168114610c5257600080fd5b60006020828403121561137557600080fd5b610c528261125e565b6000806040838503121561139157600080fd5b61139a8361125e565b91506113a86020840161125e565b90509250929050565b600181811c908216806113c557607f821691505b6020821081036113e557634e487b7160e01b600052602260045260246000fd5b50919050565b8082018082111561058d57634e487b7160e01b600052601160045260246000fd5b60006020828403121561141e57600080fd5b5051919050565b6001600160a01b038316815260408101610c5260208301846112f7565b60006020828403121561145457600080fd5b81518015158114610c5257600080fd5b60008251611476818460208701611207565b919091019291505056fea264697066735822122084a6ea8e5a89830df57bc1be6e078485ce27767ee9055854ebcf47541252374c64736f6c634300081c0033000000000000000000000000ce1db3c723619b00c15136eed4ee346699afd3ae
Deployed Bytecode
0x6080604052600436106101185760003560e01c806350f20190116100a0578063c460f1be11610064578063c460f1be1461035d578063dd62ed3e1461037d578063e0644962146103c3578063e47d6060146103e3578063feaea5861461040357610136565b806350f20190146102b357806370a08231146102d357806395d89b4114610309578063a9059cbb1461031e578063bad0c2471461033e57610136565b8063313ce567116100e7578063313ce567146101e957806336e0004a14610205578063378aa7011461025157806340c10f191461027157806342966c681461029357610136565b806306fdde031461014f578063095ea7b31461017a57806318160ddd146101aa57806323b872dd146101c957610136565b3661013657604051631cc6a69960e11b815260040160405180910390fd5b604051631cc6a69960e11b815260040160405180910390fd5b34801561015b57600080fd5b50610164610423565b604051610171919061122b565b60405180910390f35b34801561018657600080fd5b5061019a61019536600461127a565b6104b5565b6040519015158152602001610171565b3480156101b657600080fd5b506002545b604051908152602001610171565b3480156101d557600080fd5b5061019a6101e43660046112a4565b610593565b3480156101f557600080fd5b5060405160128152602001610171565b34801561021157600080fd5b506102397f000000000000000000000000ce1db3c723619b00c15136eed4ee346699afd3ae81565b6040516001600160a01b039091168152602001610171565b34801561025d57600080fd5b5060055460ff166040516101719190611319565b34801561027d57600080fd5b5061029161028c36600461127a565b61064c565b005b34801561029f57600080fd5b506102916102ae366004611327565b61079e565b3480156102bf57600080fd5b506102916102ce366004611340565b610823565b3480156102df57600080fd5b506101bb6102ee366004611363565b6001600160a01b031660009081526020819052604090205490565b34801561031557600080fd5b50610164610875565b34801561032a57600080fd5b5061019a61033936600461127a565b610884565b34801561034a57600080fd5b506b1d14a0219e548224280000006101bb565b34801561036957600080fd5b50610291610378366004611363565b610907565b34801561038957600080fd5b506101bb61039836600461137e565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3480156103cf57600080fd5b506102916103de366004611363565b610999565b3480156103ef57600080fd5b5061019a6103fe366004611363565b610a2e565b34801561040f57600080fd5b5061029161041e36600461137e565b610a4c565b606060038054610432906113b1565b80601f016020809104026020016040519081016040528092919081815260200182805461045e906113b1565b80156104ab5780601f10610480576101008083540402835291602001916104ab565b820191906000526020600020905b81548152906001019060200180831161048e57829003601f168201915b5050505050905090565b60008060055460ff1660028111156104cf576104cf6112e1565b14806104f15750600160055460ff1660028111156104ef576104ef6112e1565b145b15610574573361050081610a2e565b1561052e576040516331483e1360e21b81526001600160a01b03821660048201526024015b60405180910390fd5b8361053881610a2e565b15610561576040516331483e1360e21b81526001600160a01b0382166004820152602401610525565b61056b8585610bab565b9250505061058d565b60405163a999a3b360e01b815260040160405180910390fd5b92915050565b600061059d610bc3565b336105a781610a2e565b156105d0576040516331483e1360e21b81526001600160a01b0382166004820152602401610525565b846105da81610a2e565b15610603576040516331483e1360e21b81526001600160a01b0382166004820152602401610525565b8461060d81610a2e565b15610636576040516331483e1360e21b81526001600160a01b0382166004820152602401610525565b610641878787610c33565b979650505050505050565b600060055460ff166002811115610665576106656112e1565b14806106875750600160055460ff166002811115610685576106856112e1565b145b1561057457337f000000000000000000000000ce1db3c723619b00c15136eed4ee346699afd3ae6001600160a01b0316146106d557604051631388c17360e31b815260040160405180910390fd5b816106df81610a2e565b15610708576040516331483e1360e21b81526001600160a01b0382166004820152602401610525565b6b1d14a0219e548224280000008261071f60025490565b61072991906113eb565b11156107485760405163ed0f594f60e01b815260040160405180910390fd5b6107528383610c59565b826001600160a01b03167f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968858360405161078d91815260200190565b60405180910390a2505050565b5050565b600060055460ff1660028111156107b7576107b76112e1565b14806107d95750600160055460ff1660028111156107d7576107d76112e1565b145b15610574576107e83382610c8f565b60405181815233907fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59060200160405180910390a250565b50565b337f000000000000000000000000ce1db3c723619b00c15136eed4ee346699afd3ae6001600160a01b03161461086c57604051631388c17360e31b815260040160405180910390fd5b61082081610cc5565b606060048054610432906113b1565b600061088e610bc3565b3361089881610a2e565b156108c1576040516331483e1360e21b81526001600160a01b0382166004820152602401610525565b836108cb81610a2e565b156108f4576040516331483e1360e21b81526001600160a01b0382166004820152602401610525565b6108fe8585610d61565b95945050505050565b337f000000000000000000000000ce1db3c723619b00c15136eed4ee346699afd3ae6001600160a01b03161461095057604051631388c17360e31b815260040160405180910390fd5b6001600160a01b038116600081815260066020526040808220805460ff19169055517f054de1fc550ea93b62f87d8d9fc55ac4a68cea3d0264707e35bfb5faea7bc1d39190a250565b337f000000000000000000000000ce1db3c723619b00c15136eed4ee346699afd3ae6001600160a01b0316146109e257604051631388c17360e31b815260040160405180910390fd5b6001600160a01b038116600081815260066020526040808220805460ff19166001179055517f9382afe70dc558089876f00784c8106c35596807473b16828f63bedd0d96e60b9190a250565b6001600160a01b031660009081526006602052604090205460ff1690565b600060055460ff166002811115610a6557610a656112e1565b1480610a875750600160055460ff166002811115610a8557610a856112e1565b145b1561057457337f000000000000000000000000ce1db3c723619b00c15136eed4ee346699afd3ae6001600160a01b031614610ad557604051631388c17360e31b815260040160405180910390fd5b6040516370a0823160e01b815230600482015282906000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610b1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b42919061140c565b9050610b586001600160a01b0383168483610d6f565b826001600160a01b0316846001600160a01b03167fa39de3173746e9ac424d99c14913096a8f46975b6ddfa2424e5d78b1423c3c9683604051610b9d91815260200190565b60405180910390a350505050565b600033610bb9818585610dc6565b5060019392505050565b600060055460ff166002811115610bdc57610bdc6112e1565b14610c3157600260055460ff166002811115610bfa57610bfa6112e1565b03610c185760405163d93c066560e01b815260040160405180910390fd5b60405163199fca7360e01b815260040160405180910390fd5b565b600033610c41858285610dd3565b610c4c858585610e51565b60019150505b9392505050565b6001600160a01b038216610c835760405163ec442f0560e01b815260006004820152602401610525565b61079a60008383610eac565b6001600160a01b038216610cb957604051634b637e8f60e11b815260006004820152602401610525565b61079a82600083610eac565b60028160ff161115610cea5760405163a999a3b360e01b815260040160405180910390fd5b8060ff166002811115610cff57610cff6112e1565b6005805460ff19166001836002811115610d1b57610d1b6112e1565b02179055507f13f1e45f22becbad6ea74d5e203d43c1b6c52aab9accb45ad00863aba4063a0a33600554604051610d56929160ff1690611425565b60405180910390a150565b600033610bb9818585610e51565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610dc1908490610fd6565b505050565b610dc18383836001611039565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610e4b5781811015610e3c57604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610525565b610e4b84848484036000611039565b50505050565b6001600160a01b038316610e7b57604051634b637e8f60e11b815260006004820152602401610525565b6001600160a01b038216610ea55760405163ec442f0560e01b815260006004820152602401610525565b610dc18383835b6001600160a01b038316610ed7578060026000828254610ecc91906113eb565b90915550610f499050565b6001600160a01b03831660009081526020819052604090205481811015610f2a5760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610525565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216610f6557600280548290039055610f84565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610fc991815260200190565b60405180910390a3505050565b6000610feb6001600160a01b03841683611100565b9050805160001415801561101057508080602001905181019061100e9190611442565b155b15610dc157604051635274afe760e01b81526001600160a01b0384166004820152602401610525565b6001600160a01b0384166110635760405163e602df0560e01b815260006004820152602401610525565b6001600160a01b03831661108d57604051634a1406b160e11b815260006004820152602401610525565b6001600160a01b0380851660009081526001602090815260408083209387168352929052208290558015610e4b57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610b9d91815260200190565b6060610c528383600084600080856001600160a01b031684866040516111269190611464565b60006040518083038185875af1925050503d8060008114611163576040519150601f19603f3d011682016040523d82523d6000602084013e611168565b606091505b5091509150611178868383611182565b9695505050505050565b60608261119757611192826111de565b610c52565b81511580156111ae57506001600160a01b0384163b155b156111d757604051639996b31560e01b81526001600160a01b0385166004820152602401610525565b5080610c52565b8051156111ee5780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b60005b8381101561122257818101518382015260200161120a565b50506000910152565b602081526000825180602084015261124a816040850160208701611207565b601f01601f19169190910160400192915050565b80356001600160a01b038116811461127557600080fd5b919050565b6000806040838503121561128d57600080fd5b6112968361125e565b946020939093013593505050565b6000806000606084860312156112b957600080fd5b6112c28461125e565b92506112d06020850161125e565b929592945050506040919091013590565b634e487b7160e01b600052602160045260246000fd5b6003811061131557634e487b7160e01b600052602160045260246000fd5b9052565b6020810161058d82846112f7565b60006020828403121561133957600080fd5b5035919050565b60006020828403121561135257600080fd5b813560ff81168114610c5257600080fd5b60006020828403121561137557600080fd5b610c528261125e565b6000806040838503121561139157600080fd5b61139a8361125e565b91506113a86020840161125e565b90509250929050565b600181811c908216806113c557607f821691505b6020821081036113e557634e487b7160e01b600052602260045260246000fd5b50919050565b8082018082111561058d57634e487b7160e01b600052601160045260246000fd5b60006020828403121561141e57600080fd5b5051919050565b6001600160a01b038316815260408101610c5260208301846112f7565b60006020828403121561145457600080fd5b81518015158114610c5257600080fd5b60008251611476818460208701611207565b919091019291505056fea264697066735822122084a6ea8e5a89830df57bc1be6e078485ce27767ee9055854ebcf47541252374c64736f6c634300081c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000ce1db3c723619b00c15136eed4ee346699afd3ae
-----Decoded View---------------
Arg [0] : _multisig (address): 0xcE1DB3C723619b00C15136eED4ee346699afD3ae
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000ce1db3c723619b00c15136eed4ee346699afd3ae
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.