Feature Tip: Add private address tag to any address under My Name Tag !
Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 8 from a total of 8 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Create | 24547987 | 22 days ago | IN | 0.03 ETH | 0.00047026 | ||||
| Create | 23002658 | 239 days ago | IN | 0.03 ETH | 0.0008949 | ||||
| Create | 22662233 | 286 days ago | IN | 0.03 ETH | 0.00055397 | ||||
| Create | 22561474 | 300 days ago | IN | 0.03 ETH | 0.00054177 | ||||
| Create | 22561420 | 300 days ago | IN | 0.03 ETH | 0.00072112 | ||||
| Create | 22395767 | 323 days ago | IN | 0.03 ETH | 0.00039439 | ||||
| Create | 22257798 | 343 days ago | IN | 0.03 ETH | 0.00058006 | ||||
| Set Flat Fee | 22087448 | 367 days ago | IN | 0 ETH | 0.00002989 |
Latest 14 internal transactions
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| 0x3d602d80 | 24547987 | 22 days ago | Contract Creation | 0 ETH | |||
| Transfer | 24547987 | 22 days ago | 0.03 ETH | ||||
| 0x3d602d80 | 23002658 | 239 days ago | Contract Creation | 0 ETH | |||
| Transfer | 23002658 | 239 days ago | 0.03 ETH | ||||
| 0x3d602d80 | 22662233 | 286 days ago | Contract Creation | 0 ETH | |||
| Transfer | 22662233 | 286 days ago | 0.03 ETH | ||||
| 0x3d602d80 | 22561474 | 300 days ago | Contract Creation | 0 ETH | |||
| Transfer | 22561474 | 300 days ago | 0.03 ETH | ||||
| 0x3d602d80 | 22561420 | 300 days ago | Contract Creation | 0 ETH | |||
| Transfer | 22561420 | 300 days ago | 0.03 ETH | ||||
| 0x3d602d80 | 22395767 | 323 days ago | Contract Creation | 0 ETH | |||
| Transfer | 22395767 | 323 days ago | 0.03 ETH | ||||
| 0x3d602d80 | 22257798 | 343 days ago | Contract Creation | 0 ETH | |||
| Transfer | 22257798 | 343 days ago | 0.03 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
BurnTokenFactory
Compiler Version
v0.8.20+commit.a1b79de6
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
/**
* ____ _______ _______ _
* | _ \| ____\ \/ /_ _|__ ___ | |___
* | | | | _| \ / | |/ _ \ / _ \| / __|
* | |_| | |___ / \ | | (_) | (_) | \__ \
* |____/|_____/_/\_\ |_|\___/ \___/|_|___/
*
* This smart contract was created effortlessly using the DEXTools Token Creator.
*
* 🌐 Website: https://www.dextools.io/
* 🐦 Twitter: https://twitter.com/DEXToolsApp
* 💬 Telegram: https://t.me/DEXToolsCommunity
*
* 🚀 Unleash the power of decentralized finances and tokenization with DEXTools Token Creator. Customize your token seamlessly. Manage your created tokens conveniently from your user panel - start creating your dream token today!
*/
import { Clones } from "@openzeppelin/contracts/proxy/Clones.sol";
import { Address } from "@openzeppelin/contracts/utils/Address.sol";
import { TokenFactoryBase } from "./TokenFactoryBase.sol";
import { IStandardBurnERC20 } from "../interfaces/IStandardBurnERC20.sol";
contract BurnTokenFactory is TokenFactoryBase {
using Address for address payable;
constructor(
address factoryManager_,
address implementation_,
address feeTo_,
uint256 flatFee_,
uint256 maxFee_
)
TokenFactoryBase(
factoryManager_,
implementation_,
feeTo_,
flatFee_,
maxFee_
)
{}
function create(
string memory name,
string memory symbol,
uint8 decimals,
uint256 totalSupply,
uint16 burnFeeBps
) external payable enoughFee nonReentrant returns (address token) {
refundExcessiveFee();
payable(feeTo).sendValue(flatFee);
token = Clones.cloneDeterministic(implementation, keccak256(abi.encodePacked(msg.sender, name, symbol, decimals, totalSupply, burnFeeBps)));
IStandardBurnERC20(token).initialize(
msg.sender,
name,
symbol,
decimals,
totalSupply,
burnFeeBps
);
assignTokenToOwner(msg.sender, token, 4);
emit TokenCreated(msg.sender, token, 4, implementationVersion);
}
}// 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/Clones.sol)
pragma solidity ^0.8.0;
/**
* @dev https://eips.ethereum.org/EIPS/eip-1167[EIP 1167] is a standard for
* deploying minimal proxy contracts, also known as "clones".
*
* > To simply and cheaply clone contract functionality in an immutable way, this standard specifies
* > a minimal bytecode implementation that delegates all calls to a known, fixed address.
*
* The library includes functions to deploy a proxy using either `create` (traditional deployment) or `create2`
* (salted deterministic deployment). It also includes functions to predict the addresses of clones deployed using the
* deterministic method.
*
* _Available since v3.4._
*/
library Clones {
/**
* @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`.
*
* This function uses the create opcode, which should never revert.
*/
function clone(address implementation) internal returns (address instance) {
/// @solidity memory-safe-assembly
assembly {
// Cleans the upper 96 bits of the `implementation` word, then packs the first 3 bytes
// of the `implementation` address with the bytecode before the address.
mstore(0x00, or(shr(0xe8, shl(0x60, implementation)), 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000))
// Packs the remaining 17 bytes of `implementation` with the bytecode after the address.
mstore(0x20, or(shl(0x78, implementation), 0x5af43d82803e903d91602b57fd5bf3))
instance := create(0, 0x09, 0x37)
}
require(instance != address(0), "ERC1167: create failed");
}
/**
* @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`.
*
* This function uses the create2 opcode and a `salt` to deterministically deploy
* the clone. Using the same `implementation` and `salt` multiple time will revert, since
* the clones cannot be deployed twice at the same address.
*/
function cloneDeterministic(address implementation, bytes32 salt) internal returns (address instance) {
/// @solidity memory-safe-assembly
assembly {
// Cleans the upper 96 bits of the `implementation` word, then packs the first 3 bytes
// of the `implementation` address with the bytecode before the address.
mstore(0x00, or(shr(0xe8, shl(0x60, implementation)), 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000))
// Packs the remaining 17 bytes of `implementation` with the bytecode after the address.
mstore(0x20, or(shl(0x78, implementation), 0x5af43d82803e903d91602b57fd5bf3))
instance := create2(0, 0x09, 0x37, salt)
}
require(instance != address(0), "ERC1167: create2 failed");
}
/**
* @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.
*/
function predictDeterministicAddress(
address implementation,
bytes32 salt,
address deployer
) internal pure returns (address predicted) {
/// @solidity memory-safe-assembly
assembly {
let ptr := mload(0x40)
mstore(add(ptr, 0x38), deployer)
mstore(add(ptr, 0x24), 0x5af43d82803e903d91602b57fd5bf3ff)
mstore(add(ptr, 0x14), implementation)
mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73)
mstore(add(ptr, 0x58), salt)
mstore(add(ptr, 0x78), keccak256(add(ptr, 0x0c), 0x37))
predicted := keccak256(add(ptr, 0x43), 0x55)
}
}
/**
* @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.
*/
function predictDeterministicAddress(
address implementation,
bytes32 salt
) internal view returns (address predicted) {
return predictDeterministicAddress(implementation, salt, address(this));
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be _NOT_ENTERED
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == _ENTERED;
}
}// 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: UNLICENSED
pragma solidity ^0.8.0;
/**
* ____ _______ _______ _
* | _ \| ____\ \/ /_ _|__ ___ | |___
* | | | | _| \ / | |/ _ \ / _ \| / __|
* | |_| | |___ / \ | | (_) | (_) | \__ \
* |____/|_____/_/\_\ |_|\___/ \___/|_|___/
*
* This smart contract was created effortlessly using the DEXTools Token Creator.
*
* 🌐 Website: https://www.dextools.io/
* 🐦 Twitter: https://twitter.com/DEXToolsApp
* 💬 Telegram: https://t.me/DEXToolsCommunity
*
* 🚀 Unleash the power of decentralized finances and tokenization with DEXTools Token Creator. Customize your token seamlessly. Manage your created tokens conveniently from your user panel - start creating your dream token today!
*/
import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
import { Address } from "@openzeppelin/contracts/utils/Address.sol";
import { ReentrancyGuard } from "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import { IFactoryManager } from "../interfaces/IFactoryManager.sol";
contract TokenFactoryBase is Ownable, ReentrancyGuard {
using Address for address payable;
address public immutable FACTORY_MANAGER;
address public implementation;
uint96 public implementationVersion; // Max value: 79228162514264337593543950335
address public feeTo;
uint256 public flatFee;
uint256 public immutable MAX_FEE;
event TokenCreated(
address indexed owner,
address indexed token,
uint8 tokenType,
uint96 tokenVersion
);
error InvalidFactoryManager(address implementation);
error InvalidImplementation(address factoryManager);
error InvalidFeeReceiver(address receiver);
error InvalidFee(uint256 fee);
error InvalidMaxFee(uint256 maxFee);
error InsufficientFee(uint256 fee);
modifier enoughFee() {
if (msg.value < flatFee) revert InsufficientFee(msg.value);
_;
}
constructor(
address factoryManager_,
address implementation_,
address feeTo_,
uint256 flatFee_,
uint256 maxFee_
) {
if (factoryManager_ == address(0))
revert InvalidFactoryManager(factoryManager_);
if (implementation_ == address(0))
revert InvalidImplementation(implementation_);
if (feeTo_ == address(0)) revert InvalidFeeReceiver(feeTo_);
if (flatFee_ >= maxFee_) revert InvalidFee(flatFee_);
if (flatFee_ == 0) revert InvalidMaxFee(maxFee_);
FACTORY_MANAGER = factoryManager_;
implementation = implementation_;
implementationVersion = 1;
feeTo = feeTo_;
flatFee = flatFee_;
MAX_FEE = maxFee_;
}
function setImplementation(address implementation_) external onlyOwner {
if (implementation_ == address(0) || implementation_ == address(this))
revert InvalidImplementation(implementation_);
implementation = implementation_;
++implementationVersion;
}
function setFeeTo(address feeReceivingAddress) external onlyOwner {
if (
feeReceivingAddress == address(0) ||
feeReceivingAddress == address(this)
) revert InvalidFeeReceiver(feeReceivingAddress);
feeTo = feeReceivingAddress;
}
function setFlatFee(uint256 fee) external onlyOwner {
if (fee >= MAX_FEE) revert InvalidFee(fee);
flatFee = fee;
}
function assignTokenToOwner(
address owner,
address token,
uint8 tokenType
) internal {
IFactoryManager(FACTORY_MANAGER).assignTokensToOwner(
owner,
token,
tokenType
);
}
function refundExcessiveFee() internal {
uint256 refund = msg.value - flatFee;
if (refund > 0) {
payable(msg.sender).sendValue(refund);
}
}
}// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
/**
* ____ _______ _______ _
* | _ \| ____\ \/ /_ _|__ ___ | |___
* | | | | _| \ / | |/ _ \ / _ \| / __|
* | |_| | |___ / \ | | (_) | (_) | \__ \
* |____/|_____/_/\_\ |_|\___/ \___/|_|___/
*
* This smart contract was created effortlessly using the DEXTools Token Creator.
*
* 🌐 Website: https://www.dextools.io/
* 🐦 Twitter: https://twitter.com/DEXToolsApp
* 💬 Telegram: https://t.me/DEXToolsCommunity
*
* 🚀 Unleash the power of decentralized finances and tokenization with DEXTools Token Creator. Customize your token seamlessly. Manage your created tokens conveniently from your user panel - start creating your dream token today!
*/
interface IFactoryManager {
function assignTokensToOwner(
address owner,
address token,
uint8 tokenType
) external;
}// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
/**
* ____ _______ _______ _
* | _ \| ____\ \/ /_ _|__ ___ | |___
* | | | | _| \ / | |/ _ \ / _ \| / __|
* | |_| | |___ / \ | | (_) | (_) | \__ \
* |____/|_____/_/\_\ |_|\___/ \___/|_|___/
*
* This smart contract was created effortlessly using the DEXTools Token Creator.
*
* 🌐 Website: https://www.dextools.io/
* 🐦 Twitter: https://twitter.com/DEXToolsApp
* 💬 Telegram: https://t.me/DEXToolsCommunity
*
* 🚀 Unleash the power of decentralized finances and tokenization with DEXTools Token Creator. Customize your token seamlessly. Manage your created tokens conveniently from your user panel - start creating your dream token today!
*/
interface IStandardBurnERC20 {
function initialize(
address owner_,
string memory name_,
string memory symbol_,
uint8 decimals_,
uint256 totalSupply_,
uint16 burnFee_
) external;
}{
"evmVersion": "paris",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs",
"useLiteralContent": true
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": [],
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"factoryManager_","type":"address"},{"internalType":"address","name":"implementation_","type":"address"},{"internalType":"address","name":"feeTo_","type":"address"},{"internalType":"uint256","name":"flatFee_","type":"uint256"},{"internalType":"uint256","name":"maxFee_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"fee","type":"uint256"}],"name":"InsufficientFee","type":"error"},{"inputs":[{"internalType":"address","name":"implementation","type":"address"}],"name":"InvalidFactoryManager","type":"error"},{"inputs":[{"internalType":"uint256","name":"fee","type":"uint256"}],"name":"InvalidFee","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"InvalidFeeReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"factoryManager","type":"address"}],"name":"InvalidImplementation","type":"error"},{"inputs":[{"internalType":"uint256","name":"maxFee","type":"uint256"}],"name":"InvalidMaxFee","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint8","name":"tokenType","type":"uint8"},{"indexed":false,"internalType":"uint96","name":"tokenVersion","type":"uint96"}],"name":"TokenCreated","type":"event"},{"inputs":[],"name":"FACTORY_MANAGER","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint8","name":"decimals","type":"uint8"},{"internalType":"uint256","name":"totalSupply","type":"uint256"},{"internalType":"uint16","name":"burnFeeBps","type":"uint16"}],"name":"create","outputs":[{"internalType":"address","name":"token","type":"address"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"feeTo","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flatFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"implementationVersion","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"feeReceivingAddress","type":"address"}],"name":"setFeeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"fee","type":"uint256"}],"name":"setFlatFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"implementation_","type":"address"}],"name":"setImplementation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60c06040523480156200001157600080fd5b5060405162000f5d38038062000f5d8339810160408190526200003491620001e8565b848484848462000044336200017b565b600180556001600160a01b0385166200008057604051631571790160e01b81526001600160a01b03861660048201526024015b60405180910390fd5b6001600160a01b038416620000b457604051630c76093760e01b81526001600160a01b038516600482015260240162000077565b6001600160a01b038316620000e85760405163cb9339d560e01b81526001600160a01b038416600482015260240162000077565b8082106200010d5760405163179c637760e11b81526004810183905260240162000077565b8160000362000133576040516317aa8ae760e11b81526004810182905260240162000077565b6001600160a01b03948516608052928416600160a01b17600255600380546001600160a01b031916929094169190911790925560049190915560a05250620002459350505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b0381168114620001e357600080fd5b919050565b600080600080600060a086880312156200020157600080fd5b6200020c86620001cb565b94506200021c60208701620001cb565b93506200022c60408701620001cb565b6060870151608090970151959894975095949392505050565b60805160a051610ce462000279600039600081816101fe01526102c101526000818161017701526109450152610ce46000f3fe6080604052600436106100c25760003560e01c80638da5cb5b1161007f578063d784d42611610059578063d784d42614610241578063d9eb594714610261578063f2fde38b14610277578063f46901ed1461029757600080fd5b80638da5cb5b146101ce578063bc063e1a146101ec578063c1d346a61461022e57600080fd5b8063017e7e58146100c757806306bfcec61461010457806323fa495a1461014357806342246a57146101655780635c60da1b14610199578063715018a6146101b9575b600080fd5b3480156100d357600080fd5b506003546100e7906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561011057600080fd5b5060025461012b90600160a01b90046001600160601b031681565b6040516001600160601b0390911681526020016100fb565b34801561014f57600080fd5b5061016361015e3660046109a6565b6102b7565b005b34801561017157600080fd5b506100e77f000000000000000000000000000000000000000000000000000000000000000081565b3480156101a557600080fd5b506002546100e7906001600160a01b031681565b3480156101c557600080fd5b5061016361030c565b3480156101da57600080fd5b506000546001600160a01b03166100e7565b3480156101f857600080fd5b506102207f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020016100fb565b6100e761023c366004610a62565b610320565b34801561024d57600080fd5b5061016361025c366004610b04565b61049b565b34801561026d57600080fd5b5061022060045481565b34801561028357600080fd5b50610163610292366004610b04565b610549565b3480156102a357600080fd5b506101636102b2366004610b04565b6105c2565b6102bf610633565b7f000000000000000000000000000000000000000000000000000000000000000081106103075760405163179c637760e11b8152600481018290526024015b60405180910390fd5b600455565b610314610633565b61031e600061068d565b565b60006004543410156103475760405163131398d760e21b81523460048201526024016102fe565b61034f6106dd565b610357610736565b600454600354610372916001600160a01b0390911690610754565b6002546040516103b9916001600160a01b03169061039e9033908a908a908a908a908a90602001610b58565b60405160208183030381529060405280519060200120610872565b604051631e3bca0d60e01b81529091506001600160a01b03821690631e3bca0d906103f29033908a908a908a908a908a90600401610c03565b600060405180830381600087803b15801561040c57600080fd5b505af1158015610420573d6000803e3d6000fd5b5050505061043033826004610915565b6002546040805160048152600160a01b9092046001600160601b031660208301526001600160a01b0383169133917f2395b95c14d87a016c2bfcac5b35c32cd39f2127399d3ccc77e145d0a3099d41910160405180910390a361049260018055565b95945050505050565b6104a3610633565b6001600160a01b03811615806104c157506001600160a01b03811630145b156104ea57604051630c76093760e01b81526001600160a01b03821660048201526024016102fe565b600280546001600160a01b0319166001600160a01b0383161780825560149061052290600160a01b90046001600160601b0316610c75565b91906101000a8154816001600160601b0302191690836001600160601b0316021790555050565b610551610633565b6001600160a01b0381166105b65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102fe565b6105bf8161068d565b50565b6105ca610633565b6001600160a01b03811615806105e857506001600160a01b03811630145b156106115760405163cb9339d560e01b81526001600160a01b03821660048201526024016102fe565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461031e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102fe565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60026001540361072f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102fe565b6002600155565b6000600454346107469190610c9b565b905080156105bf576105bf33825b804710156107a45760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016102fe565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146107f1576040519150601f19603f3d011682016040523d82523d6000602084013e6107f6565b606091505b505090508061086d5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016102fe565b505050565b6000763d602d80600a3d3981f3363d3d373d3d3d363d730000008360601b60e81c176000526e5af43d82803e903d91602b57fd5bf38360781b1760205281603760096000f590506001600160a01b03811661090f5760405162461bcd60e51b815260206004820152601760248201527f455243313136373a2063726561746532206661696c656400000000000000000060448201526064016102fe565b92915050565b60405163141106f560e11b81526001600160a01b038481166004830152838116602483015260ff831660448301527f000000000000000000000000000000000000000000000000000000000000000016906328220dea90606401600060405180830381600087803b15801561098957600080fd5b505af115801561099d573d6000803e3d6000fd5b50505050505050565b6000602082840312156109b857600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126109e657600080fd5b813567ffffffffffffffff80821115610a0157610a016109bf565b604051601f8301601f19908116603f01168101908282118183101715610a2957610a296109bf565b81604052838152866020858801011115610a4257600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600060a08688031215610a7a57600080fd5b853567ffffffffffffffff80821115610a9257600080fd5b610a9e89838a016109d5565b96506020880135915080821115610ab457600080fd5b50610ac1888289016109d5565b945050604086013560ff81168114610ad857600080fd5b925060608601359150608086013561ffff81168114610af657600080fd5b809150509295509295909350565b600060208284031215610b1657600080fd5b81356001600160a01b0381168114610b2d57600080fd5b9392505050565b60005b83811015610b4f578181015183820152602001610b37565b50506000910152565b6001600160601b03198760601b16815260008651610b7d816014850160208b01610b34565b865190830190610b94816014840160208b01610b34565b60f89690961b6001600160f81b031916601491909601908101959095525050601583019190915260f01b6001600160f01b03191660358201526037019392505050565b60008151808452610bef816020860160208601610b34565b601f01601f19169290920160200192915050565b6001600160a01b038716815260c060208201819052600090610c2790830188610bd7565b8281036040840152610c398188610bd7565b60ff9690961660608401525050608081019290925261ffff1660a0909101529392505050565b634e487b7160e01b600052601160045260246000fd5b60006001600160601b03808316818103610c9157610c91610c5f565b6001019392505050565b8181038181111561090f5761090f610c5f56fea2646970667358221220924a71bd42c289acb57a32d5676d3d5b5d1dbf75464d251412538cd0ea8e081e64736f6c63430008140033000000000000000000000000b7dbf735460e64430ab5e686edad637e09a259bb00000000000000000000000058cb5a172995f2e5ac3d1de1b3558154df280f23000000000000000000000000deb2fd0a2870df5ebdc1462e1725b0a30fbb49a3000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000052b7d2dcc80cd2e4000000
Deployed Bytecode
0x6080604052600436106100c25760003560e01c80638da5cb5b1161007f578063d784d42611610059578063d784d42614610241578063d9eb594714610261578063f2fde38b14610277578063f46901ed1461029757600080fd5b80638da5cb5b146101ce578063bc063e1a146101ec578063c1d346a61461022e57600080fd5b8063017e7e58146100c757806306bfcec61461010457806323fa495a1461014357806342246a57146101655780635c60da1b14610199578063715018a6146101b9575b600080fd5b3480156100d357600080fd5b506003546100e7906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561011057600080fd5b5060025461012b90600160a01b90046001600160601b031681565b6040516001600160601b0390911681526020016100fb565b34801561014f57600080fd5b5061016361015e3660046109a6565b6102b7565b005b34801561017157600080fd5b506100e77f000000000000000000000000b7dbf735460e64430ab5e686edad637e09a259bb81565b3480156101a557600080fd5b506002546100e7906001600160a01b031681565b3480156101c557600080fd5b5061016361030c565b3480156101da57600080fd5b506000546001600160a01b03166100e7565b3480156101f857600080fd5b506102207f00000000000000000000000000000000000000000052b7d2dcc80cd2e400000081565b6040519081526020016100fb565b6100e761023c366004610a62565b610320565b34801561024d57600080fd5b5061016361025c366004610b04565b61049b565b34801561026d57600080fd5b5061022060045481565b34801561028357600080fd5b50610163610292366004610b04565b610549565b3480156102a357600080fd5b506101636102b2366004610b04565b6105c2565b6102bf610633565b7f00000000000000000000000000000000000000000052b7d2dcc80cd2e400000081106103075760405163179c637760e11b8152600481018290526024015b60405180910390fd5b600455565b610314610633565b61031e600061068d565b565b60006004543410156103475760405163131398d760e21b81523460048201526024016102fe565b61034f6106dd565b610357610736565b600454600354610372916001600160a01b0390911690610754565b6002546040516103b9916001600160a01b03169061039e9033908a908a908a908a908a90602001610b58565b60405160208183030381529060405280519060200120610872565b604051631e3bca0d60e01b81529091506001600160a01b03821690631e3bca0d906103f29033908a908a908a908a908a90600401610c03565b600060405180830381600087803b15801561040c57600080fd5b505af1158015610420573d6000803e3d6000fd5b5050505061043033826004610915565b6002546040805160048152600160a01b9092046001600160601b031660208301526001600160a01b0383169133917f2395b95c14d87a016c2bfcac5b35c32cd39f2127399d3ccc77e145d0a3099d41910160405180910390a361049260018055565b95945050505050565b6104a3610633565b6001600160a01b03811615806104c157506001600160a01b03811630145b156104ea57604051630c76093760e01b81526001600160a01b03821660048201526024016102fe565b600280546001600160a01b0319166001600160a01b0383161780825560149061052290600160a01b90046001600160601b0316610c75565b91906101000a8154816001600160601b0302191690836001600160601b0316021790555050565b610551610633565b6001600160a01b0381166105b65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102fe565b6105bf8161068d565b50565b6105ca610633565b6001600160a01b03811615806105e857506001600160a01b03811630145b156106115760405163cb9339d560e01b81526001600160a01b03821660048201526024016102fe565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461031e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102fe565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60026001540361072f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102fe565b6002600155565b6000600454346107469190610c9b565b905080156105bf576105bf33825b804710156107a45760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016102fe565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146107f1576040519150601f19603f3d011682016040523d82523d6000602084013e6107f6565b606091505b505090508061086d5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016102fe565b505050565b6000763d602d80600a3d3981f3363d3d373d3d3d363d730000008360601b60e81c176000526e5af43d82803e903d91602b57fd5bf38360781b1760205281603760096000f590506001600160a01b03811661090f5760405162461bcd60e51b815260206004820152601760248201527f455243313136373a2063726561746532206661696c656400000000000000000060448201526064016102fe565b92915050565b60405163141106f560e11b81526001600160a01b038481166004830152838116602483015260ff831660448301527f000000000000000000000000b7dbf735460e64430ab5e686edad637e09a259bb16906328220dea90606401600060405180830381600087803b15801561098957600080fd5b505af115801561099d573d6000803e3d6000fd5b50505050505050565b6000602082840312156109b857600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126109e657600080fd5b813567ffffffffffffffff80821115610a0157610a016109bf565b604051601f8301601f19908116603f01168101908282118183101715610a2957610a296109bf565b81604052838152866020858801011115610a4257600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600060a08688031215610a7a57600080fd5b853567ffffffffffffffff80821115610a9257600080fd5b610a9e89838a016109d5565b96506020880135915080821115610ab457600080fd5b50610ac1888289016109d5565b945050604086013560ff81168114610ad857600080fd5b925060608601359150608086013561ffff81168114610af657600080fd5b809150509295509295909350565b600060208284031215610b1657600080fd5b81356001600160a01b0381168114610b2d57600080fd5b9392505050565b60005b83811015610b4f578181015183820152602001610b37565b50506000910152565b6001600160601b03198760601b16815260008651610b7d816014850160208b01610b34565b865190830190610b94816014840160208b01610b34565b60f89690961b6001600160f81b031916601491909601908101959095525050601583019190915260f01b6001600160f01b03191660358201526037019392505050565b60008151808452610bef816020860160208601610b34565b601f01601f19169290920160200192915050565b6001600160a01b038716815260c060208201819052600090610c2790830188610bd7565b8281036040840152610c398188610bd7565b60ff9690961660608401525050608081019290925261ffff1660a0909101529392505050565b634e487b7160e01b600052601160045260246000fd5b60006001600160601b03808316818103610c9157610c91610c5f565b6001019392505050565b8181038181111561090f5761090f610c5f56fea2646970667358221220924a71bd42c289acb57a32d5676d3d5b5d1dbf75464d251412538cd0ea8e081e64736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000b7dbf735460e64430ab5e686edad637e09a259bb00000000000000000000000058cb5a172995f2e5ac3d1de1b3558154df280f23000000000000000000000000deb2fd0a2870df5ebdc1462e1725b0a30fbb49a3000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000052b7d2dcc80cd2e4000000
-----Decoded View---------------
Arg [0] : factoryManager_ (address): 0xB7DbF735460E64430Ab5e686EdAD637e09a259bb
Arg [1] : implementation_ (address): 0x58cb5A172995f2e5ac3D1dE1b3558154DF280f23
Arg [2] : feeTo_ (address): 0xDeb2FD0a2870Df5eBDC1462E1725B0a30FbB49A3
Arg [3] : flatFee_ (uint256): 1
Arg [4] : maxFee_ (uint256): 100000000000000000000000000
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000b7dbf735460e64430ab5e686edad637e09a259bb
Arg [1] : 00000000000000000000000058cb5a172995f2e5ac3d1de1b3558154df280f23
Arg [2] : 000000000000000000000000deb2fd0a2870df5ebdc1462e1725b0a30fbb49a3
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [4] : 00000000000000000000000000000000000000000052b7d2dcc80cd2e4000000
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
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.