Overview
S Balance
S Value
$0.00More Info
Private Name Tags
ContractCreator
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
TaxableToken
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)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import "./core/ERC20Taxable.sol"; import "./core/utils/BlackList.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/proxy/utils/Initializable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract TaxableToken is Initializable, ERC20Taxable, Pausable, Ownable, BlackList { constructor() { _disableInitializers(); } function initialize( address _owner, string memory _name, string memory _symbol, uint8 _decimals, uint256 _initialSupply, uint256 _maxSupply, uint256 _taxFeePerMille, address _taxAddress ) external initializer { _transferOwnership(_owner); ERC20.init( _name, _symbol, _decimals, _maxSupply == type(uint256).max ? type(uint256).max : _maxSupply * 10 ** _decimals ); ERC20Taxable.init(_taxFeePerMille, _taxAddress); _mint(_owner, _initialSupply * 10 ** _decimals); } function pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); } function mint(address to, uint256 amount) public onlyOwner { _mint(to, amount); } function blockAccount(address _account) public onlyOwner { _blockAccount(_account); } function unblockAccount(address _account) public onlyOwner { _unblockAccount(_account); } function setTaxRate(uint256 _newTaxFee) public onlyOwner { _setTaxRate(_newTaxFee); } function setTaxAddress(address _newTaxAddress) public onlyOwner { _setTaxAddress(_newTaxAddress); } function setExclusionFromTaxFee(address _account, bool _status) public onlyOwner { _setExclusionFromTaxFee(_account, _status); } function _beforeTokenTransfer(address from, address to, uint256 amount) internal override whenNotPaused { require(!isAccountBlocked(to), "BlackList: Recipient account is blocked"); require(!isAccountBlocked(from), "BlackList: Sender account is blocked"); super._beforeTokenTransfer(from, to, amount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; import "../../utils/Address.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ```solidity * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. * * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a * constructor. * * Emits an {Initialized} event. */ modifier initializer() { bool isTopLevelCall = !_initializing; require( (isTopLevelCall && _initialized < 1) || (!Address.isContract(address(this)) && _initialized == 1), "Initializable: contract is already initialized" ); _initialized = 1; if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * A reinitializer may be used after the original initialization step. This is essential to configure modules that * are added through upgrades and that require initialization. * * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer` * cannot be nested. If one is invoked in the context of another, execution will revert. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. * * WARNING: setting the version to 255 will prevent any future reinitialization. * * Emits an {Initialized} event. */ modifier reinitializer(uint8 version) { require(!_initializing && _initialized < version, "Initializable: contract is already initialized"); _initialized = version; _initializing = true; _; _initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. * * Emits an {Initialized} event the first time it is successfully executed. */ function _disableInitializers() internal virtual { require(!_initializing, "Initializable: contract is initializing"); if (_initialized != type(uint8).max) { _initialized = type(uint8).max; emit Initialized(type(uint8).max); } } /** * @dev Returns the highest version that has been initialized. See {reinitializer}. */ function _getInitializedVersion() internal view returns (uint8) { return _initialized; } /** * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}. */ function _isInitializing() internal view returns (bool) { return _initializing; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://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.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol"; import "@openzeppelin/contracts/proxy/utils/Initializable.sol"; contract ERC20 is Initializable, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; uint256 private _maxSupply; string private _name; string private _symbol; uint8 private _decimals; function init( string memory name_, string memory symbol_, uint8 decimals_, uint256 maxSupply_ ) internal onlyInitializing { _name = name_; _symbol = symbol_; _decimals = decimals_; _maxSupply = maxSupply_; } function name() public view virtual override returns (string memory) { return _name; } function symbol() public view virtual override returns (string memory) { return _symbol; } function decimals() public view virtual override returns (uint8) { return _decimals; } function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } function maxSupply() public view virtual returns (uint256) { return _maxSupply; } function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } function transfer(address to, uint256 amount) public virtual override returns (bool) { _transfer(msg.sender, to, amount); return true; } function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(msg.sender, spender, amount); return true; } function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) { _spendAllowance(from, msg.sender, amount); _transfer(from, to, amount); return true; } function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = msg.sender; _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = msg.sender; uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } function burn(uint256 amount) public virtual { _burn(msg.sender, amount); } function burnFrom(address account, uint256 amount) public virtual { _spendAllowance(account, msg.sender, amount); _burn(account, amount); } function _transfer(address from, address to, uint256 amount) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } function _mint(address account, uint256 amount) internal virtual { require(_totalSupply + amount <= _maxSupply, "ERC20: cap exceeded"); require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } function _spendAllowance(address owner, address spender, uint256 amount) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {} function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ERC20.sol"; import "@openzeppelin/contracts/proxy/utils/Initializable.sol"; /** * @title ERC20Taxable * @dev Extension of {ERC20} that adds a tax rate permille. */ abstract contract ERC20Taxable is Initializable, ERC20 { // the permille rate for taxable mechanism uint256 private _taxRate; // the deposit address for tax address private _taxAddress; mapping(address => bool) private _isExcludedFromTaxFee; /** * @dev Sets the value of the `_taxRate` and the `_taxAddress`. */ function init( uint256 taxFeePerMille_, address taxAddress_ ) internal onlyInitializing { _setTaxRate(taxFeePerMille_); _setTaxAddress(taxAddress_); _setExclusionFromTaxFee(msg.sender, true); _setExclusionFromTaxFee(taxAddress_, true); } /** * @dev Moves `amount` of tokens from `sender` to `recipient` minus the tax fee. * Moves the tax fee to a deposit address. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = msg.sender; if (_taxRate > 0 && !(_isExcludedFromTaxFee[owner] || _isExcludedFromTaxFee[to])) { uint256 taxAmount = (amount * _taxRate) / 1000; if (taxAmount > 0) { _transfer(owner, _taxAddress, taxAmount); unchecked { amount -= taxAmount; } } } _transfer(owner, to, amount); return true; } /** * @dev Moves `amount` tokens from `from` to `to` minus the tax fee using the allowance mechanism. * `amount` is then deducted from the caller's allowance. * Moves the tax fee to a deposit address. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least `amount`. */ function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) { address spender = msg.sender; _spendAllowance(from, spender, amount); if (_taxRate > 0 && !(_isExcludedFromTaxFee[from] || _isExcludedFromTaxFee[to])) { uint256 taxAmount = (amount * _taxRate) / 1000; if (taxAmount > 0) { _transfer(from, _taxAddress, taxAmount); unchecked { amount -= taxAmount; } } } _transfer(from, to, amount); return true; } /** * @dev Returns the permille rate for taxable mechanism. * * For each transfer the permille amount will be calculated and moved to deposit address. */ function taxFeePerMille() external view returns (uint256) { return _taxRate; } /** * @dev Returns the deposit address for tax. */ function taxAddress() external view returns (address) { return _taxAddress; } /** * @dev Returns the status of exclusion from tax fee mechanism for a given account. */ function isExcludedFromTaxFee(address account) external view returns (bool) { return _isExcludedFromTaxFee[account]; } /** * @dev Sets the amount of tax fee permille. * * WARNING: it allows everyone to set the fee. Access controls MUST be defined in derived contracts. * * @param taxFeePerMille_ The amount of tax fee permille */ function _setTaxRate(uint256 taxFeePerMille_) internal virtual { require(taxFeePerMille_ < 1000, "ERC20Taxable: taxFeePerMille_ must be less than 1000"); _taxRate = taxFeePerMille_; } /** * @dev Sets the deposit address for tax. * * WARNING: it allows everyone to set the address. Access controls MUST be defined in derived contracts. * * @param taxAddress_ The deposit address for tax */ function _setTaxAddress(address taxAddress_) internal virtual { require(taxAddress_ != address(0), "ERC20Taxable: taxAddress_ cannot be the zero address"); _taxAddress = taxAddress_; } /** * @dev Sets the exclusion status from tax fee mechanism (both sending and receiving). * * WARNING: it allows everyone to set the status. Access controls MUST be defined in derived contracts. * * @param account_ The address that will be excluded or not * @param status_ The status of exclusion */ function _setExclusionFromTaxFee(address account_, bool status_) internal virtual { _isExcludedFromTaxFee[account_] = status_; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; abstract contract BlackList { mapping (address => bool) private _isBlackListed; /** * @dev Emitted when the `_account` blocked. */ event BlockedAccount(address indexed _account); /** * @dev Emitted when the `_account` unblocked. */ event UnblockedAccount(address indexed _account); function isAccountBlocked(address _account) public view returns (bool) { return _isBlackListed[_account]; } /** * @dev Add account to black list. * * WARNING: it allows everyone to set the address. Access controls MUST be defined in derived contracts. * * @param _account The address to be blocked */ function _blockAccount (address _account) internal virtual { require(!_isBlackListed[_account], "Blacklist: Account is already blocked"); _isBlackListed[_account] = true; emit BlockedAccount(_account); } function _unblockAccount (address _account) internal virtual { require(_isBlackListed[_account], "Blacklist: Account is already unblocked"); _isBlackListed[_account] = false; emit UnblockedAccount(_account); } }
{ "viaIR": true, "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_account","type":"address"}],"name":"BlockedAccount","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_account","type":"address"}],"name":"UnblockedAccount","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","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":"address","name":"_account","type":"address"}],"name":"blockAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint8","name":"_decimals","type":"uint8"},{"internalType":"uint256","name":"_initialSupply","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_taxFeePerMille","type":"uint256"},{"internalType":"address","name":"_taxAddress","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"isAccountBlocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromTaxFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"setExclusionFromTaxFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newTaxAddress","type":"address"}],"name":"setTaxAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newTaxFee","type":"uint256"}],"name":"setTaxRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxFeePerMille","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"unblockAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080806040523461011657600b80546001600160a81b0319811633600881811b610100600160a81b0316929092179093551c6001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a36000549060ff8260081c166100c4575060ff80821603610089575b604051611c19908161011c8239f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a13861007a565b62461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b600080fdfe608080604052600436101561001357600080fd5b60003560e01c90816306fdde031461107557508063095ea7b31461104f57806318160ddd1461103157806323b872dd14610f715780632678999314610f1b578063313ce56714610efa5780633950935114610ea95780633f4ba83a14610e1557806340c10f1914610de857806342966c6814610dcb5780634d78fdc614610cf85780635c975abb14610cd557806370a0823114610c9b578063715018a614610c3a57806379cc679014610c0a5780637c0a893d14610b375780638456cb5914610add5780638da5cb5b14610ab05780638e2d7326146105b457806395d89b41146104e3578063a1883d26146104ba578063a457c2d714610413578063a9059cbb14610360578063b7bda68f14610337578063c283cd12146102f8578063c6d205fa146102da578063c6d69a30146102b6578063ca88bd5b14610277578063d5abeb0114610259578063dd62ed3e146102085763f2fde38b1461017457600080fd5b346102035760203660031901126102035761018d611151565b610195611652565b6001600160a01b038116156101af576101ad906119a7565b005b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b600080fd5b3461020357604036600319011261020357610221611151565b610229611167565b9060018060a01b038091166000526002602052604060002091166000526020526020604060002054604051908152f35b34610203576000366003190112610203576020600454604051908152f35b34610203576020366003190112610203576001600160a01b03610298611151565b16600052600c602052602060ff604060002054166040519015158152f35b34610203576020366003190112610203576102cf611652565b6101ad600435611aee565b34610203576000366003190112610203576020600854604051908152f35b34610203576020366003190112610203576001600160a01b03610319611151565b16600052600a602052602060ff604060002054166040519015158152f35b34610203576000366003190112610203576009546040516001600160a01b039091168152602090f35b346102035760403660031901126102035761039861037c611151565b60243590600854801515806103d6575b6103a3575b5033611411565b602060405160018152f35b6103b06103e89184611230565b0480156103915790916103ce8260018060a01b036009541633611411565b039083610391565b5033600052600a60205260ff6040600020541680156103f6575b1561038c565b506001600160a01b0382166000908152604090205460ff166103f0565b346102035760403660031901126102035761042c611151565b60243590336000526002602052604060002060018060a01b038216600052602052604060002054918083106104675761039892039033611277565b60405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608490fd5b34610203576020366003190112610203576101ad6104d6611151565b6104de611652565b611a63565b34610203576000366003190112610203576040516000600654610505816111f6565b8084529060209060019081811690811561058a5750600114610542575b61053e856105328187038261117d565b60405191829182611108565b0390f35b600660009081529350600080516020611bc48339815191525b838510610577575050505081016020016105328261053e610522565b805486860184015293820193810161055b565b86955061053e9693506020925061053294915060ff191682840152151560051b8201019293610522565b3461020357610100366003190112610203576105ce611151565b60243567ffffffffffffffff8111610203576105ee90369060040161119f565b60443567ffffffffffffffff81116102035761060e90369060040161119f565b9160ff60643516606435036102035760a4359160e4356001600160a01b0381169003610203576000549260ff8460081c161593848095610aa3575b8015610a8c575b15610a305760ff19811660011760005584610a1e575b50610670836119a7565b6000198103610a035750600019905b61069060ff60005460081c16611a03565b80519067ffffffffffffffff82116108f65781906106af6005546111f6565b601f811161098f575b50602090601f83116001146109175760009261090c575b50508160011b916000199060031b1c1916176005555b835167ffffffffffffffff81116108f6576107016006546111f6565b601f811161088d575b506020601f82116001146108145781906107cb9596600092610809575b50508160011b916000199060031b1c1916176006555b60ff6064351660ff19600754161760075560045561076260ff60005460081c16611a03565b61076d60c435611aee565b61077860e435611a63565b33600052600a6020526040600020600160ff1982541617905560018060a01b0360e435166000526040600020600160ff198254161790556107c56107bd606435611266565b608435611230565b906116ad565b6107d157005b61ff0019600054166000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a1005b015190508680610727565b6006600052600080516020611bc48339815191529560005b601f198416811061087557509582916107cb9697600194601f1981161061085c575b505050811b0160065561073d565b015160001960f88460031b161c1916905586808061084e565b8282015188556001909701966020928301920161082c565b6006600052601f820160051c600080516020611bc483398151915201602083106108e1575b601f820160051c600080516020611bc48339815191520181106108d5575061070a565b600081556001016108b2565b50600080516020611bc48339815191526108b2565b634e487b7160e01b600052604160045260246000fd5b0151905086806106cf565b92506005600052600080516020611ba4833981519152906000935b601f1984168510610974576001945083601f1981161061095b575b505050811b016005556106e5565b015160001960f88460031b161c1916905586808061094d565b81810151835560209485019460019093019290910190610932565b9091506005600052601f830160051c600080516020611ba483398151915201602084106109ee575b908392915b601f820160051c600080516020611ba48339815191520181106109df57506106b8565b600081558493506001016109bc565b50600080516020611ba48339815191526109b7565b610a1890610a12606435611266565b90611230565b9061067f565b61ffff19166101011760005585610666565b60405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608490fd5b50303b1580156106505750600160ff821614610650565b50600160ff821610610649565b3461020357600036600319011261020357600b5460405160089190911c6001600160a01b03168152602090f35b3461020357600036600319011261020357610af6611652565b610afe611b5f565b600160ff19600b541617600b557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586020604051338152a1005b3461020357602036600319011261020357610b50611151565b610b58611652565b6001600160a01b03166000818152600c602052604090205460ff16610bb75780600052600c6020526040600020600160ff198254161790557f8632489584ac3cfc9b78cc6c2197c31ca9e3821bfa5ca5c9af28917b92db24d9600080a2005b60405162461bcd60e51b815260206004820152602560248201527f426c61636b6c6973743a204163636f756e7420697320616c726561647920626c6044820152641bd8dad95960da1b6064820152608490fd5b34610203576040366003190112610203576101ad610c26611151565b60243590610c35823383611379565b6117d1565b3461020357600036600319011261020357610c53611652565b600b8054610100600160a81b0319811690915560009060081c6001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b34610203576020366003190112610203576001600160a01b03610cbc611151565b1660005260016020526020604060002054604051908152f35b3461020357600036600319011261020357602060ff600b54166040519015158152f35b3461020357602036600319011261020357610d11611151565b610d19611652565b6001600160a01b03166000818152600c602052604090205460ff1615610d765780600052600c602052604060002060ff1981541690557fa885a62df16bfeabc96ed9b845b30dd4038f039ca1679490125c314222355e3f600080a2005b60405162461bcd60e51b815260206004820152602760248201527f426c61636b6c6973743a204163636f756e7420697320616c726561647920756e604482015266189b1bd8dad95960ca1b6064820152608490fd5b34610203576020366003190112610203576101ad600435336117d1565b34610203576040366003190112610203576101ad610e04611151565b610e0c611652565b602435906116ad565b3461020357600036600319011261020357610e2e611652565b600b5460ff811615610e6d5760ff1916600b557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6020604051338152a1005b60405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606490fd5b3461020357604036600319011261020357610398610ec5611151565b336000526002602052604060002060018060a01b038216600052602052610ef3602435604060002054611259565b9033611277565b3461020357600036600319011261020357602060ff60075416604051908152f35b3461020357604036600319011261020357610f34611151565b6024359081151580920361020357610f4a611652565b60018060a01b0316600052600a60205260406000209060ff80198354169116179055600080f35b3461020357606036600319011261020357610398610f8d611151565b610f95611167565b60443591610fa4833383611379565b60085480151580610fee575b610fbb575b50611411565b610fc86103e89185611230565b048015610fb5579092610fe68260018060a01b036009541686611411565b039184610fb5565b506001600160a01b038281166000908152600a602052604090205460ff1690811561101b575b5015610fb0565b9050831660005260ff6040600020541686611014565b34610203576000366003190112610203576020600354604051908152f35b346102035760403660031901126102035761039861106b611151565b6024359033611277565b34610203576000366003190112610203576000600554611094816111f6565b8084529060209060019081811690811561058a57506001146110c05761053e856105328187038261117d565b600560009081529350600080516020611ba48339815191525b8385106110f5575050505081016020016105328261053e610522565b80548686018401529382019381016110d9565b6020808252825181830181905290939260005b82811061113d57505060409293506000838284010152601f8019910116010190565b81810186015184820160400152850161111b565b600435906001600160a01b038216820361020357565b602435906001600160a01b038216820361020357565b90601f8019910116810190811067ffffffffffffffff8211176108f657604052565b81601f820112156102035780359067ffffffffffffffff82116108f657604051926111d4601f8401601f19166020018561117d565b8284526020838301011161020357816000926020809301838601378301015290565b90600182811c92168015611226575b602083101461121057565b634e487b7160e01b600052602260045260246000fd5b91607f1691611205565b8181029291811591840414171561124357565b634e487b7160e01b600052601160045260246000fd5b9190820180921161124357565b60ff16604d811161124357600a0a90565b6001600160a01b0390811691821561132857169182156112d85760207f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925918360005260028252604060002085600052825280604060002055604051908152a3565b60405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608490fd5b60405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608490fd5b9060018060a01b03808316600052600260205260406000209082166000526020526040600020549260001984036113b1575b50505050565b8084106113cc576113c3930391611277565b388080806113ab565b60405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606490fd5b6001600160a01b039081169182156115ff57169182156115ae57611433611b5f565b600090838252602091600c835260409060ff828220541661155a57848152600c845260ff828220541661150a5784815260018452818120548381106114b7579181847fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef969594888495526001875203828220558781522082815401905551908152a3565b825162461bcd60e51b815260048101869052602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608490fd5b815162461bcd60e51b8152600481018590526024808201527f426c61636b4c6973743a2053656e646572206163636f756e7420697320626c6f60448201526318dad95960e21b6064820152608490fd5b815162461bcd60e51b815260048101859052602760248201527f426c61636b4c6973743a20526563697069656e74206163636f756e7420697320604482015266189b1bd8dad95960ca1b6064820152608490fd5b60405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608490fd5b60405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b600b5460081c6001600160a01b0316330361166957565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b90600354916116bc8284611259565b60045410611796576001600160a01b0316918215611751576116dc611b5f565b600091838352602091600c835260409060ff828620541661155a57848052600c845260ff828620541661150a5790611737837fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef959493611259565b6003558585526001835280852082815401905551908152a3565b60405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606490fd5b60405162461bcd60e51b8152602060048201526013602482015272115490cc8c0e8818d85c08195e18d959591959606a1b6044820152606490fd5b6001600160a01b03168015611958576117e8611b5f565b600091828052602090600c8252604060ff818620541661190557838552600c835260ff81862054166118b65783855260018352808520548281106118675790827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef949392868852600185520381872055816003540360035551908152a3565b815162461bcd60e51b815260048101859052602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608490fd5b5162461bcd60e51b8152600481018390526024808201527f426c61636b4c6973743a2053656e646572206163636f756e7420697320626c6f60448201526318dad95960e21b6064820152608490fd5b5162461bcd60e51b815260048101839052602760248201527f426c61636b4c6973743a20526563697069656e74206163636f756e7420697320604482015266189b1bd8dad95960ca1b6064820152608490fd5b60405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b600b8054610100600160a81b03198116600884811b610100600160a81b0316919091179092556001600160a01b0392831692911c167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3565b15611a0a57565b60405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608490fd5b6001600160a01b03168015611a8c576bffffffffffffffffffffffff60a01b6009541617600955565b60405162461bcd60e51b815260206004820152603460248201527f455243323054617861626c653a20746178416464726573735f2063616e6e6f7460448201527320626520746865207a65726f206164647265737360601b6064820152608490fd5b6103e8811015611afd57600855565b60405162461bcd60e51b815260206004820152603460248201527f455243323054617861626c653a207461784665655065724d696c6c655f206d7560448201527307374206265206c657373207468616e20313030360641b6064820152608490fd5b60ff600b5416611b6b57565b60405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606490fdfe036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db0f652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3fa264697066735822122065b7b34d830487625f97910fea6d2981f86c2b2277c01b7197250438fa87120c64736f6c63430008180033
Deployed Bytecode
0x608080604052600436101561001357600080fd5b60003560e01c90816306fdde031461107557508063095ea7b31461104f57806318160ddd1461103157806323b872dd14610f715780632678999314610f1b578063313ce56714610efa5780633950935114610ea95780633f4ba83a14610e1557806340c10f1914610de857806342966c6814610dcb5780634d78fdc614610cf85780635c975abb14610cd557806370a0823114610c9b578063715018a614610c3a57806379cc679014610c0a5780637c0a893d14610b375780638456cb5914610add5780638da5cb5b14610ab05780638e2d7326146105b457806395d89b41146104e3578063a1883d26146104ba578063a457c2d714610413578063a9059cbb14610360578063b7bda68f14610337578063c283cd12146102f8578063c6d205fa146102da578063c6d69a30146102b6578063ca88bd5b14610277578063d5abeb0114610259578063dd62ed3e146102085763f2fde38b1461017457600080fd5b346102035760203660031901126102035761018d611151565b610195611652565b6001600160a01b038116156101af576101ad906119a7565b005b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b600080fd5b3461020357604036600319011261020357610221611151565b610229611167565b9060018060a01b038091166000526002602052604060002091166000526020526020604060002054604051908152f35b34610203576000366003190112610203576020600454604051908152f35b34610203576020366003190112610203576001600160a01b03610298611151565b16600052600c602052602060ff604060002054166040519015158152f35b34610203576020366003190112610203576102cf611652565b6101ad600435611aee565b34610203576000366003190112610203576020600854604051908152f35b34610203576020366003190112610203576001600160a01b03610319611151565b16600052600a602052602060ff604060002054166040519015158152f35b34610203576000366003190112610203576009546040516001600160a01b039091168152602090f35b346102035760403660031901126102035761039861037c611151565b60243590600854801515806103d6575b6103a3575b5033611411565b602060405160018152f35b6103b06103e89184611230565b0480156103915790916103ce8260018060a01b036009541633611411565b039083610391565b5033600052600a60205260ff6040600020541680156103f6575b1561038c565b506001600160a01b0382166000908152604090205460ff166103f0565b346102035760403660031901126102035761042c611151565b60243590336000526002602052604060002060018060a01b038216600052602052604060002054918083106104675761039892039033611277565b60405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608490fd5b34610203576020366003190112610203576101ad6104d6611151565b6104de611652565b611a63565b34610203576000366003190112610203576040516000600654610505816111f6565b8084529060209060019081811690811561058a5750600114610542575b61053e856105328187038261117d565b60405191829182611108565b0390f35b600660009081529350600080516020611bc48339815191525b838510610577575050505081016020016105328261053e610522565b805486860184015293820193810161055b565b86955061053e9693506020925061053294915060ff191682840152151560051b8201019293610522565b3461020357610100366003190112610203576105ce611151565b60243567ffffffffffffffff8111610203576105ee90369060040161119f565b60443567ffffffffffffffff81116102035761060e90369060040161119f565b9160ff60643516606435036102035760a4359160e4356001600160a01b0381169003610203576000549260ff8460081c161593848095610aa3575b8015610a8c575b15610a305760ff19811660011760005584610a1e575b50610670836119a7565b6000198103610a035750600019905b61069060ff60005460081c16611a03565b80519067ffffffffffffffff82116108f65781906106af6005546111f6565b601f811161098f575b50602090601f83116001146109175760009261090c575b50508160011b916000199060031b1c1916176005555b835167ffffffffffffffff81116108f6576107016006546111f6565b601f811161088d575b506020601f82116001146108145781906107cb9596600092610809575b50508160011b916000199060031b1c1916176006555b60ff6064351660ff19600754161760075560045561076260ff60005460081c16611a03565b61076d60c435611aee565b61077860e435611a63565b33600052600a6020526040600020600160ff1982541617905560018060a01b0360e435166000526040600020600160ff198254161790556107c56107bd606435611266565b608435611230565b906116ad565b6107d157005b61ff0019600054166000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a1005b015190508680610727565b6006600052600080516020611bc48339815191529560005b601f198416811061087557509582916107cb9697600194601f1981161061085c575b505050811b0160065561073d565b015160001960f88460031b161c1916905586808061084e565b8282015188556001909701966020928301920161082c565b6006600052601f820160051c600080516020611bc483398151915201602083106108e1575b601f820160051c600080516020611bc48339815191520181106108d5575061070a565b600081556001016108b2565b50600080516020611bc48339815191526108b2565b634e487b7160e01b600052604160045260246000fd5b0151905086806106cf565b92506005600052600080516020611ba4833981519152906000935b601f1984168510610974576001945083601f1981161061095b575b505050811b016005556106e5565b015160001960f88460031b161c1916905586808061094d565b81810151835560209485019460019093019290910190610932565b9091506005600052601f830160051c600080516020611ba483398151915201602084106109ee575b908392915b601f820160051c600080516020611ba48339815191520181106109df57506106b8565b600081558493506001016109bc565b50600080516020611ba48339815191526109b7565b610a1890610a12606435611266565b90611230565b9061067f565b61ffff19166101011760005585610666565b60405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608490fd5b50303b1580156106505750600160ff821614610650565b50600160ff821610610649565b3461020357600036600319011261020357600b5460405160089190911c6001600160a01b03168152602090f35b3461020357600036600319011261020357610af6611652565b610afe611b5f565b600160ff19600b541617600b557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586020604051338152a1005b3461020357602036600319011261020357610b50611151565b610b58611652565b6001600160a01b03166000818152600c602052604090205460ff16610bb75780600052600c6020526040600020600160ff198254161790557f8632489584ac3cfc9b78cc6c2197c31ca9e3821bfa5ca5c9af28917b92db24d9600080a2005b60405162461bcd60e51b815260206004820152602560248201527f426c61636b6c6973743a204163636f756e7420697320616c726561647920626c6044820152641bd8dad95960da1b6064820152608490fd5b34610203576040366003190112610203576101ad610c26611151565b60243590610c35823383611379565b6117d1565b3461020357600036600319011261020357610c53611652565b600b8054610100600160a81b0319811690915560009060081c6001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b34610203576020366003190112610203576001600160a01b03610cbc611151565b1660005260016020526020604060002054604051908152f35b3461020357600036600319011261020357602060ff600b54166040519015158152f35b3461020357602036600319011261020357610d11611151565b610d19611652565b6001600160a01b03166000818152600c602052604090205460ff1615610d765780600052600c602052604060002060ff1981541690557fa885a62df16bfeabc96ed9b845b30dd4038f039ca1679490125c314222355e3f600080a2005b60405162461bcd60e51b815260206004820152602760248201527f426c61636b6c6973743a204163636f756e7420697320616c726561647920756e604482015266189b1bd8dad95960ca1b6064820152608490fd5b34610203576020366003190112610203576101ad600435336117d1565b34610203576040366003190112610203576101ad610e04611151565b610e0c611652565b602435906116ad565b3461020357600036600319011261020357610e2e611652565b600b5460ff811615610e6d5760ff1916600b557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6020604051338152a1005b60405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606490fd5b3461020357604036600319011261020357610398610ec5611151565b336000526002602052604060002060018060a01b038216600052602052610ef3602435604060002054611259565b9033611277565b3461020357600036600319011261020357602060ff60075416604051908152f35b3461020357604036600319011261020357610f34611151565b6024359081151580920361020357610f4a611652565b60018060a01b0316600052600a60205260406000209060ff80198354169116179055600080f35b3461020357606036600319011261020357610398610f8d611151565b610f95611167565b60443591610fa4833383611379565b60085480151580610fee575b610fbb575b50611411565b610fc86103e89185611230565b048015610fb5579092610fe68260018060a01b036009541686611411565b039184610fb5565b506001600160a01b038281166000908152600a602052604090205460ff1690811561101b575b5015610fb0565b9050831660005260ff6040600020541686611014565b34610203576000366003190112610203576020600354604051908152f35b346102035760403660031901126102035761039861106b611151565b6024359033611277565b34610203576000366003190112610203576000600554611094816111f6565b8084529060209060019081811690811561058a57506001146110c05761053e856105328187038261117d565b600560009081529350600080516020611ba48339815191525b8385106110f5575050505081016020016105328261053e610522565b80548686018401529382019381016110d9565b6020808252825181830181905290939260005b82811061113d57505060409293506000838284010152601f8019910116010190565b81810186015184820160400152850161111b565b600435906001600160a01b038216820361020357565b602435906001600160a01b038216820361020357565b90601f8019910116810190811067ffffffffffffffff8211176108f657604052565b81601f820112156102035780359067ffffffffffffffff82116108f657604051926111d4601f8401601f19166020018561117d565b8284526020838301011161020357816000926020809301838601378301015290565b90600182811c92168015611226575b602083101461121057565b634e487b7160e01b600052602260045260246000fd5b91607f1691611205565b8181029291811591840414171561124357565b634e487b7160e01b600052601160045260246000fd5b9190820180921161124357565b60ff16604d811161124357600a0a90565b6001600160a01b0390811691821561132857169182156112d85760207f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925918360005260028252604060002085600052825280604060002055604051908152a3565b60405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608490fd5b60405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608490fd5b9060018060a01b03808316600052600260205260406000209082166000526020526040600020549260001984036113b1575b50505050565b8084106113cc576113c3930391611277565b388080806113ab565b60405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606490fd5b6001600160a01b039081169182156115ff57169182156115ae57611433611b5f565b600090838252602091600c835260409060ff828220541661155a57848152600c845260ff828220541661150a5784815260018452818120548381106114b7579181847fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef969594888495526001875203828220558781522082815401905551908152a3565b825162461bcd60e51b815260048101869052602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608490fd5b815162461bcd60e51b8152600481018590526024808201527f426c61636b4c6973743a2053656e646572206163636f756e7420697320626c6f60448201526318dad95960e21b6064820152608490fd5b815162461bcd60e51b815260048101859052602760248201527f426c61636b4c6973743a20526563697069656e74206163636f756e7420697320604482015266189b1bd8dad95960ca1b6064820152608490fd5b60405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608490fd5b60405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b600b5460081c6001600160a01b0316330361166957565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b90600354916116bc8284611259565b60045410611796576001600160a01b0316918215611751576116dc611b5f565b600091838352602091600c835260409060ff828620541661155a57848052600c845260ff828620541661150a5790611737837fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef959493611259565b6003558585526001835280852082815401905551908152a3565b60405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606490fd5b60405162461bcd60e51b8152602060048201526013602482015272115490cc8c0e8818d85c08195e18d959591959606a1b6044820152606490fd5b6001600160a01b03168015611958576117e8611b5f565b600091828052602090600c8252604060ff818620541661190557838552600c835260ff81862054166118b65783855260018352808520548281106118675790827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef949392868852600185520381872055816003540360035551908152a3565b815162461bcd60e51b815260048101859052602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608490fd5b5162461bcd60e51b8152600481018390526024808201527f426c61636b4c6973743a2053656e646572206163636f756e7420697320626c6f60448201526318dad95960e21b6064820152608490fd5b5162461bcd60e51b815260048101839052602760248201527f426c61636b4c6973743a20526563697069656e74206163636f756e7420697320604482015266189b1bd8dad95960ca1b6064820152608490fd5b60405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b600b8054610100600160a81b03198116600884811b610100600160a81b0316919091179092556001600160a01b0392831692911c167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3565b15611a0a57565b60405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608490fd5b6001600160a01b03168015611a8c576bffffffffffffffffffffffff60a01b6009541617600955565b60405162461bcd60e51b815260206004820152603460248201527f455243323054617861626c653a20746178416464726573735f2063616e6e6f7460448201527320626520746865207a65726f206164647265737360601b6064820152608490fd5b6103e8811015611afd57600855565b60405162461bcd60e51b815260206004820152603460248201527f455243323054617861626c653a207461784665655065724d696c6c655f206d7560448201527307374206265206c657373207468616e20313030360641b6064820152608490fd5b60ff600b5416611b6b57565b60405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606490fdfe036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db0f652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3fa264697066735822122065b7b34d830487625f97910fea6d2981f86c2b2277c01b7197250438fa87120c64736f6c63430008180033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.