Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
9,998,630.555555555555549156 fbet
Holders
497
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
0 fbetValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
This contract contains unverified libraries: Logarithm
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:
Inscription
Compiler Version
v0.8.18+commit.87f61d96
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "./libs/Logarithm.sol"; import "./libs/TransferHelper.sol"; import "./interfaces/IWhitelist.sol"; import "./interfaces/IInitialFairOffering.sol"; import "./interfaces/IInscription.sol"; import "./interfaces/ICustomizedCondition.sol"; import "./interfaces/ICustomizedVesting.sol"; // This is common token interface, get balance of owner's token by ERC20/ERC721/ERC1155. interface ICommonToken { function balanceOf(address owner) external returns(uint256); } // This contract is extended from ERC20 contract Inscription is ERC20 { using Logarithm for int256; IInscription.FERC20 private ferc20; mapping(address => uint256) private lastMintTimestamp; // record the last mint timestamp of account mapping(address => uint256) private lastMintFee; // record the last mint fee uint96 public totalRollups; event Mint(address sender, address to, uint amount, bool isVesting); event Burn(address sender, address to, uint amount); constructor( string memory _name, // token name string memory _tick, // token tick, same as symbol. must be 4 characters. uint128 _cap, // Max amount uint128 _limitPerMint, // Limitaion of each mint uint64 _inscriptionId, // Inscription Id uint32 _maxMintSize, // max mint size, that means the max mint quantity is: maxMintSize * limitPerMint. This is only availabe for non-frozen time token. uint40 _freezeTime, // The frozen time (interval) between two mints is a fixed number of seconds. You can mint, but you will need to pay an additional mint fee, and this fee will be double for each mint. address _onlyContractAddress, // Only addresses that hold these assets can mint uint128 _onlyMinQuantity, // Only addresses that the quantity of assets hold more than this amount can mint uint96 _baseFee, // base fee of the second mint after frozen interval. The first mint after frozen time is free. uint16 _fundingCommission, // commission rate of fund raising, 100 means 1% uint128 _crowdFundingRate, // rate of crowdfunding address _whitelist, // whitelist contract bool _isIFOMode, // receiving fee of crowdfunding uint16 _liquidityTokenPercent, address payable _ifoContractAddress, address payable _inscriptionFactory, uint96 _maxRollups, address _customizedConditionContractAddress, address _customizedVestingContractAddress ) ERC20(_name, _tick) { require(_cap >= _limitPerMint, "Limit per mint exceed cap"); ferc20.cap = _cap; ferc20.limitPerMint = _limitPerMint; ferc20.inscriptionId = _inscriptionId; ferc20.maxMintSize = _maxMintSize; ferc20.freezeTime = _freezeTime; ferc20.onlyContractAddress = _onlyContractAddress; ferc20.onlyMinQuantity = _onlyMinQuantity; ferc20.baseFee = _baseFee; ferc20.fundingCommission = _fundingCommission; ferc20.crowdFundingRate = _crowdFundingRate; ferc20.whitelist = _whitelist; ferc20.isIFOMode = _isIFOMode; ferc20.ifoContractAddress = _ifoContractAddress; ferc20.inscriptionFactory = _inscriptionFactory; ferc20.liquidityTokenPercent = _liquidityTokenPercent; ferc20.maxRollups = _maxRollups; ferc20.customizedConditionContractAddress = ICustomizedCondition(_customizedConditionContractAddress); ferc20.customizedVestingContractAddress = ICustomizedVesting(_customizedVestingContractAddress); } function mint(address _to) payable public { // Check if the quantity after mint will exceed the cap require(totalRollups + 1 <= ferc20.maxRollups, "Touched cap"); // Check if the assets in the msg.sender is satisfied require(ferc20.onlyContractAddress == address(0x0) || ICommonToken(ferc20.onlyContractAddress).balanceOf(msg.sender) >= ferc20.onlyMinQuantity, "You don't have required assets"); require(ferc20.whitelist == address(0x0) || IWhitelist(ferc20.whitelist).getStatus(address(this), msg.sender), "You are not in whitelist"); require(address(ferc20.customizedConditionContractAddress) == address(0x0) || ferc20.customizedConditionContractAddress.getStatus(address(this), msg.sender), "Customized condition not satisfied"); require(lastMintTimestamp[msg.sender] < block.timestamp, "Timestamp fail"); // The only line added on V2 uint256 tokenForInitialLiquidity = ferc20.isIFOMode ? ferc20.limitPerMint * ferc20.liquidityTokenPercent / (10000 - ferc20.liquidityTokenPercent) : 0; if(lastMintTimestamp[msg.sender] + ferc20.freezeTime > block.timestamp) { // The min extra tip is double of last mint fee lastMintFee[msg.sender] = lastMintFee[msg.sender] == 0 ? ferc20.baseFee : lastMintFee[msg.sender] * 2; // Check if the tip is high than the min extra fee require(msg.value >= ferc20.crowdFundingRate + lastMintFee[msg.sender], "Send ETH as fee and crowdfunding"); // Transfer the fee to the crowdfunding address if(ferc20.crowdFundingRate > 0) _dispatchFunding(_to, ferc20.crowdFundingRate, ferc20.limitPerMint, tokenForInitialLiquidity); // Transfer the tip to InscriptionFactory smart contract if(msg.value - ferc20.crowdFundingRate > 0) TransferHelper.safeTransferETH(ferc20.inscriptionFactory, msg.value - ferc20.crowdFundingRate); } else { // Transfer the fee to the crowdfunding address if(ferc20.crowdFundingRate > 0) { require(msg.value >= ferc20.crowdFundingRate, "Send ETH as crowdfunding"); if(msg.value - ferc20.crowdFundingRate > 0) TransferHelper.safeTransferETH(ferc20.inscriptionFactory, msg.value - ferc20.crowdFundingRate); _dispatchFunding(_to, ferc20.crowdFundingRate, ferc20.limitPerMint, tokenForInitialLiquidity); } // Out of frozen time, free mint. Reset the timestamp and mint times. lastMintFee[msg.sender] = 0; lastMintTimestamp[msg.sender] = block.timestamp; } // Do mint for the participant if(address(ferc20.customizedVestingContractAddress) == address(0x0)) { _mint(_to, ferc20.limitPerMint); emit Mint(msg.sender, _to, ferc20.limitPerMint, false); } else { _mint(address(ferc20.customizedVestingContractAddress), ferc20.limitPerMint); emit Mint(msg.sender, address(ferc20.customizedVestingContractAddress), ferc20.limitPerMint, true); ferc20.customizedVestingContractAddress.addAllocation(_to, ferc20.limitPerMint); } // Mint for initial liquidity if(tokenForInitialLiquidity > 0) _mint(ferc20.ifoContractAddress, tokenForInitialLiquidity); totalRollups++; } // batch mint is only available for non-frozen-time tokens function batchMint(address _to, uint32 _num) payable public { require(_num <= ferc20.maxMintSize, "exceed max mint size"); require(totalRollups + _num <= ferc20.maxRollups, "Touch cap"); require(ferc20.freezeTime == 0, "Batch mint only for non-frozen token"); require(ferc20.onlyContractAddress == address(0x0) || ICommonToken(ferc20.onlyContractAddress).balanceOf(msg.sender) >= ferc20.onlyMinQuantity, "You don't have required assets"); require(ferc20.whitelist == address(0x0) || IWhitelist(ferc20.whitelist).getStatus(address(this), msg.sender), "You are not in whitelist"); require(address(ferc20.customizedConditionContractAddress) == address(0x0) || ferc20.customizedConditionContractAddress.getStatus(address(this), msg.sender), "Customized condition not satisfied"); uint256 tokenForInitialLiquidity = ferc20.isIFOMode ? ferc20.limitPerMint * ferc20.liquidityTokenPercent / (10000 - ferc20.liquidityTokenPercent) : 0; if(ferc20.crowdFundingRate > 0) { require(msg.value >= ferc20.crowdFundingRate * _num, "Crowdfunding ETH not enough"); if(msg.value - ferc20.crowdFundingRate * _num > 0) TransferHelper.safeTransferETH(ferc20.inscriptionFactory, msg.value - ferc20.crowdFundingRate * _num); _dispatchFunding(_to, ferc20.crowdFundingRate * _num , ferc20.limitPerMint * _num, tokenForInitialLiquidity * _num); } for(uint256 i = 0; i < _num; i++) { // The reason for using for and repeat the operation is to let the average gas cost of batch mint same as single mint if(address(ferc20.customizedVestingContractAddress) == address(0x0)) { _mint(_to, ferc20.limitPerMint); emit Mint(msg.sender, _to, ferc20.limitPerMint, false); } else { _mint(address(ferc20.customizedVestingContractAddress), ferc20.limitPerMint); emit Mint(msg.sender, address(ferc20.customizedVestingContractAddress), ferc20.limitPerMint, true); ferc20.customizedVestingContractAddress.addAllocation(_to, ferc20.limitPerMint); } // Mint for initial liquidity if(tokenForInitialLiquidity > 0) { _mint(ferc20.ifoContractAddress, tokenForInitialLiquidity); } } totalRollups = totalRollups + _num; } function getMintFee(address _addr) public view returns(uint256 mintedTimes, uint256 nextMintFee) { if(lastMintTimestamp[_addr] + ferc20.freezeTime > block.timestamp) { int256 scale = 1e18; int256 halfScale = 5e17; // times = log_2(lastMintFee / baseFee) + 1 (if lastMintFee > 0) nextMintFee = lastMintFee[_addr] == 0 ? ferc20.baseFee : lastMintFee[_addr] * 2; mintedTimes = uint256((Logarithm.log2(int256(nextMintFee / ferc20.baseFee) * scale, scale, halfScale) + 1) / scale) + 1; } } function getFerc20Data() public view returns(IInscription.FERC20 memory) { return ferc20; } function getLastMintTimestamp(address _addr) public view returns(uint256) { return lastMintTimestamp[_addr]; } function getLastMintFee(address _addr) public view returns(uint256) { return lastMintFee[_addr]; } function transfer(address to, uint256 amount) public virtual override returns (bool) { require(!ferc20.isIFOMode || IInitialFairOffering(ferc20.ifoContractAddress).liquidityAdded(), "Only workable after public liquidity added"); address owner = _msgSender(); _transfer(owner, to, amount); return true; } function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { require(!ferc20.isIFOMode || IInitialFairOffering(ferc20.ifoContractAddress).liquidityAdded(), "Only workable after public liquidity added"); address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } function burn(address account, uint256 amount) public { require(account == msg.sender, "only owner can burn"); require(balanceOf(account) >= amount, "balance not enough"); _burn(account, amount); emit Burn(msg.sender, account, amount); } function burnFrom(address account, uint256 amount) public { uint256 currentAllowance = allowance(account, msg.sender); require(currentAllowance != type(uint256).max, "allowance exceed max"); require(currentAllowance >= amount, "allowance less than amount"); _approve(account, msg.sender, currentAllowance - amount); _burn(account, amount); emit Burn(msg.sender, account, amount); } function _dispatchFunding(address _to, uint256 _ethAmount, uint256 _tokenAmount, uint256 _tokenForLiquidity) private { require(ferc20.ifoContractAddress > address(0x0), "ifo address zero"); uint256 commission = _ethAmount * ferc20.fundingCommission / 10000; TransferHelper.safeTransferETH(ferc20.ifoContractAddress, _ethAmount - commission); if(commission > 0) TransferHelper.safeTransferETH(ferc20.inscriptionFactory, commission); IInitialFairOffering(ferc20.ifoContractAddress).setMintData( _to, uint128(_ethAmount - commission), uint128(_tokenAmount), uint128(_tokenForLiquidity) ); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `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 = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `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); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { 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); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ 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); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ 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); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ 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); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {} }
// 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 v4.4.1 (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; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface ICustomizedCondition { function getStatus(address _tokenAddress, address _sender) external view returns(bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface ICustomizedVesting { function addAllocation(address recipient, uint amount) external; function removeAllocation(address recipient, uint amount) external; function claim() external; function available(address address_) external view returns (uint); function released(address address_) external view returns (uint); function outstanding(address address_) external view returns (uint); function setTokenAddress(address _tokenAddress) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IInscriptionFactory.sol"; interface IInitialFairOffering { function initialize(IInscriptionFactory.Token memory _token) external; function setMintData(address _addr, uint128 _ethAmount, uint128 _tokenAmount, uint128 _tokenLiquidity) external; function liquidityAdded() external view returns(bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ICustomizedCondition.sol"; import "./ICustomizedVesting.sol"; interface IInscription { struct FERC20 { uint128 cap; // Max amount uint128 limitPerMint; // Limitaion of each mint address onlyContractAddress; // Only addresses that hold these assets can mint uint32 maxMintSize; // max mint size, that means the max mint quantity is: maxMintSize * limitPerMint uint64 inscriptionId; // Inscription Id uint128 onlyMinQuantity; // Only addresses that the quantity of assets hold more than this amount can mint uint128 crowdFundingRate; // rate of crowdfunding address whitelist; // whitelist contract uint40 freezeTime; // The frozen time (interval) between two mints is a fixed number of seconds. You can mint, but you will need to pay an additional mint fee, and this fee will be double for each mint. uint16 fundingCommission; // commission rate of fund raising, 1000 means 10% uint16 liquidityTokenPercent; bool isIFOMode; // receiving fee of crowdfunding address payable inscriptionFactory; // Inscription factory contract address uint128 baseFee; // base fee of the second mint after frozen interval. The first mint after frozen time is free. address payable ifoContractAddress; // Initial fair offering contract uint96 maxRollups; // Max rollups ICustomizedCondition customizedConditionContractAddress;// Customized condition for mint ICustomizedVesting customizedVestingContractAddress; // Customized vesting contract } function mint(address _to) payable external; function getFerc20Data() external view returns(FERC20 memory); function balanceOf(address owner) external view returns(uint256); function totalSupply() external view returns(uint256); function allowance(address owner, address spender) external view returns(uint256); function totalRollups() external view returns(uint256); function burn(address account, uint256 amount) external; function burnFrom(address account, uint256 amount) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IInscriptionFactory { struct Token { uint128 cap; // Hard cap of token uint128 limitPerMint; // Limitation per mint address onlyContractAddress; uint32 maxMintSize; // max mint size, that means the max mint quantity is: maxMintSize * limitPerMint uint64 inscriptionId; // Inscription id uint128 onlyMinQuantity; uint128 crowdFundingRate; address addr; // Contract address of inscribed token uint40 freezeTime; uint40 timestamp; // Inscribe timestamp uint16 liquidityTokenPercent; // 10000 is 100% address ifoContractAddress; // Initial fair offerting contract uint16 refundFee; // To avoid the refund attack, deploy sets this fee rate uint40 startTime; uint40 duration; address customizedConditionContractAddress; // Customized condition for mint uint96 maxRollups; // max rollups address deployer; // Deployer string tick; // same as symbol in ERC20, max 5 chars, 10 bytes(80) uint16 liquidityEtherPercent; string name; // full name of token, max 16 chars, 32 bytes(256) address customizedVestingContractAddress; // Customized contract for token vesting bool isIFOMode; // is ifo mode bool isWhitelist; // is whitelst condition bool isVesting; bool isVoted; string logoUrl; // logo url, ifpfs cid, 64 chars, 128 bytes, 4 slots, ex.QmPK1s3pNYLi9ERiq3BDxKa4XosgWwFRQUydHUtz4YgpqB } function deploy( string memory _name, string memory _tick, uint256 _cap, uint256 _limitPerMint, uint256 _maxMintSize, // The max lots of each mint uint256 _freezeTime, // Freeze seconds between two mint, during this freezing period, the mint fee will be increased address _onlyContractAddress, // Only the holder of this asset can mint, optional uint256 _onlyMinQuantity, // The min quantity of asset for mint, optional uint256 _crowdFundingRate, address _crowdFundingAddress ) external returns (address _inscriptionAddress); function updateStockTick(string memory _tick, bool _status) external; function transferOwnership(address newOwner) external; function getIncriptionIdByAddress(address _addr) external view returns(uint256); function getIncriptionByAddress(address _addr) external view returns(Token memory tokens, uint256 totalSupplies, uint256 totalRollups); function fundingCommission() external view returns(uint16); function isExisting(string memory _tick) external view returns(bool); function isLiquidityAdded(address _addr) external view returns(bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IWhitelist { function getStatus(address _tokenAddress, address _participant) external view returns(bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; library Logarithm { /// @notice Finds the zero-based index of the first one in the binary representation of x. /// @dev See the note on msb in the "Find First Set" Wikipedia article https://en.wikipedia.org/wiki/Find_first_set /// @param x The uint256 number for which to find the index of the most significant bit. /// @return msb The index of the most significant bit as an uint256. function mostSignificantBit(uint256 x) public pure returns (uint256 msb) { if (x >= 2**128) { x >>= 128; msb += 128; } if (x >= 2**64) { x >>= 64; msb += 64; } if (x >= 2**32) { x >>= 32; msb += 32; } if (x >= 2**16) { x >>= 16; msb += 16; } if (x >= 2**8) { x >>= 8; msb += 8; } if (x >= 2**4) { x >>= 4; msb += 4; } if (x >= 2**2) { x >>= 2; msb += 2; } if (x >= 2**1) { // No need to shift x any more. msb += 1; } } /// @notice Calculates the binary logarithm of x. /// /// @dev Based on the iterative approximation algorithm. /// https://en.wikipedia.org/wiki/Binary_logarithm#Iterative_approximation /// /// Requirements: /// - x must be greater than zero. /// /// Caveats: /// - The results are nor perfectly accurate to the last digit, due to the lossy precision of the iterative approximation. /// /// @param x The signed 59.18-decimal fixed-point number for which to calculate the binary logarithm. /// @return result The binary logarithm as a signed 59.18-decimal fixed-point number. function log2(int256 x, int256 scale, int256 halfScale) public pure returns (int256 result) { require(x > 0); unchecked { // This works because log2(x) = -log2(1/x). int256 sign; if (x >= scale) { sign = 1; } else { sign = -1; // Do the fixed-point inversion inline to save gas. The numerator is SCALE * SCALE. assembly { x := div(1000000000000000000000000000000000000, x) } } // Calculate the integer part of the logarithm and add it to the result and finally calculate y = x * 2^(-n). uint256 n = mostSignificantBit(uint256(x / scale)); // The integer part of the logarithm as a signed 59.18-decimal fixed-point number. The operation can't overflow // because n is maximum 255, SCALE is 1e18 and sign is either 1 or -1. result = int256(n) * scale; // This is y = x * 2^(-n). int256 y = x >> n; // If y = 1, the fractional part is zero. if (y == scale) { return result * sign; } // Calculate the fractional part via the iterative approximation. // The "delta >>= 1" part is equivalent to "delta /= 2", but shifting bits is faster. for (int256 delta = int256(halfScale); delta > 0; delta >>= 1) { y = (y * y) / scale; // Is y^2 > 2 and so in the range [2,4)? if (y >= 2 * scale) { // Add the 2^(-m) factor to the logarithm. result += delta; // Corresponds to z/2 on Wikipedia. y >>= 1; } } result *= sign; } } }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity >=0.6.0; // helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false library TransferHelper { function safeApprove( address token, address to, uint256 value ) internal { // bytes4(keccak256(bytes('approve(address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value)); require( success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper::safeApprove: approve failed' ); } function safeTransfer( address token, address to, uint256 value ) internal { // bytes4(keccak256(bytes('transfer(address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value)); require( success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper::safeTransfer: transfer failed' ); } function safeTransferFrom( address token, address from, address to, uint256 value ) internal { // bytes4(keccak256(bytes('transferFrom(address,address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value)); require( success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper::transferFrom: transferFrom failed' ); } function safeTransferETH(address to, uint256 value) internal { (bool success, ) = to.call{value: value}(new bytes(0)); require(success, 'TransferHelper::safeTransferETH: ETH transfer failed'); } }
{ "viaIR": true, "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": { "contracts/libs/Logarithm.sol": { "Logarithm": "0x16882fd345b2ed4e6578f538d7141af5702e6d4a" } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_tick","type":"string"},{"internalType":"uint128","name":"_cap","type":"uint128"},{"internalType":"uint128","name":"_limitPerMint","type":"uint128"},{"internalType":"uint64","name":"_inscriptionId","type":"uint64"},{"internalType":"uint32","name":"_maxMintSize","type":"uint32"},{"internalType":"uint40","name":"_freezeTime","type":"uint40"},{"internalType":"address","name":"_onlyContractAddress","type":"address"},{"internalType":"uint128","name":"_onlyMinQuantity","type":"uint128"},{"internalType":"uint96","name":"_baseFee","type":"uint96"},{"internalType":"uint16","name":"_fundingCommission","type":"uint16"},{"internalType":"uint128","name":"_crowdFundingRate","type":"uint128"},{"internalType":"address","name":"_whitelist","type":"address"},{"internalType":"bool","name":"_isIFOMode","type":"bool"},{"internalType":"uint16","name":"_liquidityTokenPercent","type":"uint16"},{"internalType":"address payable","name":"_ifoContractAddress","type":"address"},{"internalType":"address payable","name":"_inscriptionFactory","type":"address"},{"internalType":"uint96","name":"_maxRollups","type":"uint96"},{"internalType":"address","name":"_customizedConditionContractAddress","type":"address"},{"internalType":"address","name":"_customizedVestingContractAddress","type":"address"}],"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":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bool","name":"isVesting","type":"bool"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint32","name":"_num","type":"uint32"}],"name":"batchMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"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":[],"name":"getFerc20Data","outputs":[{"components":[{"internalType":"uint128","name":"cap","type":"uint128"},{"internalType":"uint128","name":"limitPerMint","type":"uint128"},{"internalType":"address","name":"onlyContractAddress","type":"address"},{"internalType":"uint32","name":"maxMintSize","type":"uint32"},{"internalType":"uint64","name":"inscriptionId","type":"uint64"},{"internalType":"uint128","name":"onlyMinQuantity","type":"uint128"},{"internalType":"uint128","name":"crowdFundingRate","type":"uint128"},{"internalType":"address","name":"whitelist","type":"address"},{"internalType":"uint40","name":"freezeTime","type":"uint40"},{"internalType":"uint16","name":"fundingCommission","type":"uint16"},{"internalType":"uint16","name":"liquidityTokenPercent","type":"uint16"},{"internalType":"bool","name":"isIFOMode","type":"bool"},{"internalType":"address payable","name":"inscriptionFactory","type":"address"},{"internalType":"uint128","name":"baseFee","type":"uint128"},{"internalType":"address payable","name":"ifoContractAddress","type":"address"},{"internalType":"uint96","name":"maxRollups","type":"uint96"},{"internalType":"contract ICustomizedCondition","name":"customizedConditionContractAddress","type":"address"},{"internalType":"contract ICustomizedVesting","name":"customizedVestingContractAddress","type":"address"}],"internalType":"struct IInscription.FERC20","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"getLastMintFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"getLastMintTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"getMintFee","outputs":[{"internalType":"uint256","name":"mintedTimes","type":"uint256"},{"internalType":"uint256","name":"nextMintFee","type":"uint256"}],"stateMutability":"view","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":"_to","type":"address"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalRollups","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
61010060405234620005fc5762002a6e80380380916200001f8262000601565b8060c0523960c0519081019061028081830312620005fc578051906001600160401b038211620005fc57620000579183910162000627565b60805260c05160208101519091906001600160401b038111620005fc5762000080920162000627565b60c05190620000926040830162000699565b91620000a16060820162000699565b60808201519091906001600160401b0381168103620005fc5760a082015163ffffffff81168103620005fc5760c08301519164ffffffffff83168303620005fc57620000f060e08501620006ae565b620000ff610100860162000699565b906200010f6101208701620006c3565b916200011f6101408801620006d8565b926200012f610160890162000699565b906200013f6101808a01620006ae565b956101a08a0151978815158903620005fc57620001606101c08c01620006d8565b9d620001706101e08d01620006ae565b60e052620001826102008d01620006ae565b9c620001926102208e01620006c3565b9c620001a26102408201620006ae565b60a05261026001620001b490620006ae565b9e6080518051600160401b600190038111620004f75760038054916001938484811c94168015620005f1575b6020851014620005db578190601f9485811162000583575b506020908583116001146200051b57506000916200050d575b5060001982841b1c191690841b1781555b8351916001600160401b038311620004f75760049485548581811c91168015620004ec575b6020821014620004d7578281116200048a575b5060209184116001146200041e5793839491849260009562000412575b50501b92600019911b1c19161781555b6001600160801b0382811690841610620003ce57506001600160801b03918216608091821b6001600160801b0319908116919091176005556008805460a095861b63ffffffff60a01b1660c09790971b6001600160c01b031916969096176001600160a01b039a8b1617600655600a805483166001600160601b0398909816979097179096559690911694901b90941692909217600755600980546001600160a01b03199081169b86169b909b17905595151560e81b60ff60e81b1694831660c89490941b61ffff60c81b166001600160f01b031990911696821b64ffffffffff60a01b169690961795909517919091179190911760d89790971b61ffff60d81b1696909617905560e051851691811b831691909117600b5551600c80548316918516919091179055600d8054909116919092161790556040516123859081620006e98239f35b60649060206040519162461bcd60e51b8352820152601960248201527f4c696d697420706572206d696e742065786365656420636170000000000000006044820152fd5b01519350388062000277565b9190601f19841692866000528460206000209460005b88828210620004705750501062000455575b50505050811b01815562000287565b01519060f884600019921b161c191690553880808062000446565b848601518855909601956020948501948893500162000434565b8660005260206000208380870160051c82019260208810620004cd575b0160051c019086905b828110620004c05750506200025a565b60008155018690620004b0565b92508192620004a7565b602287634e487b7160e01b6000525260246000fd5b90607f169062000247565b634e487b7160e01b600052604160045260246000fd5b905060805101513862000211565b90869350601f198316918560005260206000209260005b8181106200056a5750841162000551575b505050811b01815562000222565b015160001983861b60f8161c1916905538808062000543565b8284015185558996909401936020938401930162000532565b9091508360005260206000208580850160051c82019260208610620005d1575b918891869594930160051c01915b828110620005c1575050620001f8565b60008155859450889101620005b1565b92508192620005a3565b634e487b7160e01b600052602260045260246000fd5b93607f1693620001e0565b600080fd5b6040519190601f01601f191682016001600160401b03811183821017620004f757604052565b919080601f84011215620005fc5782516001600160401b038111620004f7576020906200065d601f8201601f1916830162000601565b92818452828287010111620005fc5760005b8181106200068557508260009394955001015290565b85810183015184820184015282016200066f565b51906001600160801b0382168203620005fc57565b51906001600160a01b0382168203620005fc57565b51906001600160601b0382168203620005fc57565b519061ffff82168203620005fc5756fe6080806040526004908136101561001557600080fd5b600091823560e01c918263032ae97f146119f25750816306fdde03146118fe578163095ea7b3146118d757816318160ddd146118b957816323b872dd14611771578163313ce5671461175557816339509351146117055781634c3d323d146116de5781636a627842146110df57816370a08231146110a757816379cc679014610f9757816379f24a08146109c15781638f81537b146107f357816395d89b41146106ef5781639dc29fac146105ea578163a457c2d714610545578163a9059cbb1461047b57508063c9392aaa1461018a578063dd62ed3e1461013b5763e5617bba1461010057600080fd5b34610138576020366003190112610138576020906040906001600160a01b03610127611a28565b168152600e83522054604051908152f35b80fd5b503461013857604036600319011261013857610155611a28565b604061015f611a3e565b9260018060a01b03809316815260016020522091166000526020526020604060002054604051908152f35b50346101385780600319360112610138576102206040516101aa81611ac7565b8281528260208201528260408201528260608201528260808201528260a08201528260c08201528260e08201528261010082015282610120820152826101408201528261016082015282610180820152826101a0820152826101c0820152826101e082015282610200820152015261024060405161022781611ac7565b600554906001600160801b03821681528160801c602082015260065460018060a01b038116604083015263ffffffff8160a01c16606083015260c01c60808201526007546001600160801b03811660a083015260801c60c082015260ff60085460018060a01b03811660e084015264ffffffffff8160a01c1661010084015261ffff8160c81c1661012084015261ffff8160d81c1661014084015260e81c16151561016082015260018060a01b03600954166101808201526001600160801b03600a54166101a0820152600b5460018060a01b0381166101c083015260a01c6101e082015260018060a01b03600c541661020082015260018060a01b03600d54166102208201526001600160801b03604051921682526001600160801b03602082015116602083015260018060a01b03604082015116604083015263ffffffff606082015116606083015267ffffffffffffffff60808201511660808301526001600160801b0360a08201511660a08301526001600160801b0360c08201511660c083015260018060a01b0360e08201511660e083015264ffffffffff6101008201511661010083015261ffff6101208201511661012083015261ffff61014082015116610140830152610160810151151561016083015260018060a01b03610180820151166101808301526001600160801b036101a0820151166101a083015260018060a01b036101c0820151166101c08301526001600160601b036101e0820151166101e083015260018060a01b036102008201511661020083015261022060018060a01b0391015116610220820152f35b823461013857604036600319011261013857610495611a28565b9060ff60085460e81c16159283156104ca575b6104bf836104b586611e70565b6024359033611ecf565b602060405160018152f35b600b5460405163d944392360e01b8152929450602091839182906001600160a01b03165afa90811561053a57906104b5916104bf949161050c575b50926104a8565b61052d915060203d8111610533575b6105258183611ae4565b810190611c92565b84610505565b503d61051b565b6040513d85823e3d90fd5b82346101385760403660031901126101385761055f611a28565b9060406024359133815260016020522060018060a01b038316600052602052604060002054818110610598576104bf9350039033611b29565b60405162461bcd60e51b8152602081860152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608490fd5b823461013857604036600319011261013857610604611a28565b602435906001600160a01b0381163381036106b5578352826020528160408420541061067c579081610657827fbac40739b0d4ca32fa2d82fc91630465ba3eddd1598da6fca393b26fb63b94539461203d565b604080513381526001600160a01b03929092166020830152810191909152606090a180f35b60405162461bcd60e51b815260208186015260126024820152710c4c2d8c2dcc6ca40dcdee840cadcdeeaced60731b6044820152606490fd5b60405162461bcd60e51b8152602081870152601360248201527237b7363c9037bbb732b91031b0b710313ab93760691b6044820152606490fd5b823461013857806003193601126101385760405190809280549160019083821c928285169485156107e9575b60209586861081146107d6578588529081156107b2575060011461075a575b6107568661074a818a0382611ae4565b60405191829182611a54565b0390f35b81529294507f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b82841061079f57505050816107569361074a9282010193858061073a565b8054858501870152928501928101610781565b60ff19168787015250505050151560051b820101915061074a81610756858061073a565b634e487b7160e01b845260228352602484fd5b93607f169361071b565b8234610138576020806003193601126109bd5761080e611a28565b9082809260018060a01b0316808252600e835261083c604083205464ffffffffff60085460a01c1690611b06565b4210610853575b5050604080945051928352820152f35b8152600f8252604081205491935091508061099657506001600160801b03600a5416905b600a546001600160801b03168281156109815704670de0b6b3a7640000908181029080820583149015171561093d5760405190635e2112d560e11b8252868201528160248201526706f05b59d3b20000604482015284816064817316882fd345b2ed4e6578f538d7141af5702e6d4a5af490811561053a578391610950575b5060018101908360018312911290801582169115161761093d5705906001820180921161092a575060409350918480610843565b634e487b7160e01b815260118552602490fd5b634e487b7160e01b835260118652602483fd5b90508481813d831161097a575b6109678183611ae4565b810103126109765751866108f6565b8280fd5b503d61095d565b601286634e487b7160e01b6000525260246000fd5b8060011b9081046002036109aa5790610877565b634e487b7160e01b825260118452602482fd5b5080fd5b905060403660031901126109bd576109d7611a28565b602480359263ffffffff90818516809503610f9357600654918260a01c168511610f59576001600160601b0393610a12868660105416611c2b565b90600b9186835460a01c911611610f2a5764ffffffffff60085460a01c16610eda576001600160a01b0393889085168015908115610e54575b50610a569150611c46565b60085484811680158015610def575b610a6f9150611caa565b84600c541680158015610d7f575b610a879150611cf6565b60ff8160e81c16600014610d7757610ac39060055460801c90610abc610ab661ffff809360d81c168094611d4d565b92611d6b565b1690611d7f565b935b6001600160801b038095169160075495608096871c80610ca4575b5050948990831515915b8a8110610b16578b8b8b610b0360105492828416611c2b565b16906001600160601b0319161760105580f35b600d8c8580835416928315600014610bc4575050505082600080516020612330833981519152610b866005610b4e8154871c8d611dcd565b54604080513381526001600160a01b038e16602082015291871c6001600160801b031690820152600060608201529081906080820190565b0390a15b610bb2575b6000198114610ba057600101610aea565b634e487b7160e01b8c5260118752888cfd5b610bbf8585885416611dcd565b610b8f565b610bd46005948554881c90611dcd565b549254604080513381526001600160a01b039390951692831660208601526001600160801b0391871c91821690850152600160608501529260008051602061233083398151915290608090a1803b156109bd5760408051634cc9e27560e01b81526001600160a01b038d16818d019081526001600160801b039095166020860152938392859290918391859183910103925af1918215610c97578592610c7c575b5050610b8a565b610c87919250611a9d565b610c9357828c38610c75565b8b80fd5b50604051903d90823e3d90fd5b81610caf8c83611d4d565b163410610d34578181610cd1610d0a94610cca8f8096611d4d565b1634611dad565b610d11575b50610ce5826007548b1c611d4d565b9080610d00610cf9858d600554901c611d4d565b9489611dba565b9316911684612144565b3880610ae0565b610d2e90610d2883610cca868a6009541694611d4d565b9061224e565b38610cd6565b60405162461bcd60e51b8152602081890152601b818b01527f43726f776466756e64696e6720455448206e6f7420656e6f75676800000000006044820152606490fd5b508793610ac5565b506040805163889e507360e01b8152308782019081523360208281019190915291939192849291839182910103915afa8015610de457610a87918b91610dc6575b50610a7d565b610dde915060203d8111610533576105258183611ae4565b38610dc0565b6040513d8c823e3d90fd5b506040805163889e507360e01b8152308782019081523360208281019190915291939192849291839182910103915afa8015610de457610a6f918b91610e36575b50610a65565b610e4e915060203d8111610533576105258183611ae4565b38610e30565b6020915087604051809481936370a0823160e01b8352338a8401525af18015610ecf578990610e97575b6007548a92506001600160801b03161115610a56610a4b565b506020813d8211610ec7575b81610eb060209383611ae4565b81010312610ec257610a569051610e7e565b600080fd5b3d9150610ea3565b6040513d8b823e3d90fd5b60405162461bcd60e51b81526020818501528086018690527f4261746368206d696e74206f6e6c7920666f72206e6f6e2d66726f7a656e207460448201526337b5b2b760e11b6064820152608490fd5b60405162461bcd60e51b8152602081850152600981870152680546f756368206361760bc1b6044820152606490fd5b60649060148460206040519362461bcd60e51b855284015282015273657863656564206d6178206d696e742073697a6560601b6044820152fd5b8580fd5b823461013857604036600319011261013857610fb1611a28565b6024359060018060a01b03811683526001602052604083203360005260205260406000205493600019851461106c57828510611028575061101e611017837fbac40739b0d4ca32fa2d82fc91630465ba3eddd1598da6fca393b26fb63b94539596611dad565b3383611b29565b610657828261203d565b60649060206040519162461bcd60e51b8352820152601a60248201527f616c6c6f77616e6365206c657373207468616e20616d6f756e740000000000006044820152fd5b60649060206040519162461bcd60e51b835282015260146024820152730c2d8d8deeec2dcc6ca40caf0c6cacac840dac2f60631b6044820152fd5b8234610138576020366003190112610138576020906040906001600160a01b036110cf611a28565b1681528083522054604051908152f35b9050602080600319360112610976576110f6611a28565b6001600160601b039160018360105416018381116116cb5783600b5460a01c91161161169a576006546001600160a01b039290869084168015908490821561161a575b50506111459150611c46565b60085491838316801580156115bb575b61115f9150611caa565b83600c541680158015611551575b6111779150611cf6565b338752600e8152604087205442111561151d5760ff8360e81c16600014611517576111b760055460801c61ffff610abc610ab6828860d81c168094611d4d565b6001600160801b0380911693338952600e83526111e460408a205464ffffffffff429360a01c1690611b06565b111561145857338852600f825260408820548061142f5750600a5416905b338852600f815281604089205561121f60075460801c9283611b06565b34106113ed575082816113d5575b505060075460801c61123f8134611dad565b6113bc575b505b600d548316806112f357506000805160206123308339815191529061127060055460801c82611dcd565b600554604080513381526001600160a01b03939093166020840152608091821c908301526000606083015290a15b806112df575b505060105491818316908282146112cc575060010116906001600160601b0319161760105580f35b634e487b7160e01b855260119052602484fd5b6112ec91600b5416611dcd565b38806112a4565b6113039060055460801c90611dcd565b600d54600554604080513381526001600160a01b039387169384166020820152608092831c918101829052600160608201528993919260008051602061233083398151915291a1803b156109765760408051634cc9e27560e01b81526001600160a01b039095168986019081526001600160801b03909316602084015284928391859183910103925af180156113b15761139e575b5061129e565b6113aa90959195611a9d565b9338611398565b6040513d88823e3d90fd5b6113cf90610d2885600954169134611dad565b38611244565b6113e69160055460801c9084612144565b388261122d565b86816064926040519262461bcd60e51b845283015260248201527f53656e64204554482061732066656520616e642063726f776466756e64696e676044820152fd5b80915060011b9081046002036114455790611202565b634e487b7160e01b885260118752602488fd5b5060075460801c80611482575b50600e90338852600f815287604081205552426040872055611246565b8034106114d3579081611497600e9334611dad565b6114ba575b506114b48460075460801c60055460801c9086612144565b90611465565b6114cd90610d2887600954169134611dad565b3861149c565b60405162461bcd60e51b8152808801839052601860248201527f53656e64204554482061732063726f776466756e64696e6700000000000000006044820152606490fd5b866111b7565b856064916040519162461bcd60e51b8352820152600e60248201526d151a5b595cdd185b5c0819985a5b60921b6044820152fd5b506040805163889e507360e01b815230898201908152336020820152909284928492839182910103915afa80156115b057611177918991611593575b5061116d565b6115aa9150833d8511610533576105258183611ae4565b3861158d565b6040513d8a823e3d90fd5b506040805163889e507360e01b815230898201908152336020820152909284928492839182910103915afa80156115b05761115f9189916115fd575b50611155565b6116149150833d8511610533576105258183611ae4565b386115f7565b9091506024604051809481936370a0823160e01b8352338c8401525af1801561168f57879061165c575b6007548892506001600160801b031611158338611139565b508281813d8311611688575b6116728183611ae4565b81010312611684576111459051611644565b8680fd5b503d611668565b6040513d89823e3d90fd5b836064916040519162461bcd60e51b8352820152600b60248201526a0546f7563686564206361760ac1b6044820152fd5b634e487b7160e01b865260118552602486fd5b823461013857806003193601126101385760206001600160601b0360105416604051908152f35b8234610138576040366003190112610138576104bf9061174e611726611a28565b9133815260016020526040812060018060a01b03841682526020526040602435912054611b06565b9033611b29565b8234610138578060031936011261013857602060405160128152f35b82346101385760603660031901126101385761178b611a28565b611793611a3e565b906044359260ff60085460e81c1615801561184a575b906117b5604092611e70565b6001600160a01b038316815260016020818152838320338452905291902054949085016117e8575b506104bf9350611ecf565b8385106118065750611800836104bf95033383611b29565b846117dd565b60649060206040519162461bcd60e51b8352820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152fd5b50600b5460405163d944392360e01b8152906020908290889082906001600160a01b03165afa9081156118ae5782916117b59160409491611890575b50919250506117a9565b6118a8915060203d8111610533576105258183611ae4565b88611886565b6040513d84823e3d90fd5b82346101385780600319360112610138576020600254604051908152f35b8234610138576040366003190112610138576104bf6118f4611a28565b6024359033611b29565b9050346109bd57816003193601126109bd5760405190826003549060019082821c9282811680156119e8575b60209586861082146119d557508487529081156119b3575060011461195a575b6107568561074a81890382611ae4565b929450600383527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b8284106119a057505050816107569361074a92820101933861194a565b8054858501870152928501928101611983565b60ff191686860152505050151560051b820101915061074a816107563861194a565b634e487b7160e01b845260229052602483fd5b93607f169361192a565b8390346109bd5760203660031901126109bd576020916040906001600160a01b03611a1b611a28565b168152600f845220548152f35b600435906001600160a01b0382168203610ec257565b602435906001600160a01b0382168203610ec257565b6020808252825181830181905290939260005b828110611a8957505060409293506000838284010152601f8019910116010190565b818101860151848201604001528501611a67565b67ffffffffffffffff8111611ab157604052565b634e487b7160e01b600052604160045260246000fd5b610240810190811067ffffffffffffffff821117611ab157604052565b90601f8019910116810190811067ffffffffffffffff821117611ab157604052565b91908201809211611b1357565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03908116918215611bda5716918215611b8a5760207f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925918360005260018252604060002085600052825280604060002055604051908152a3565b60405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608490fd5b60405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608490fd5b9190916001600160601b0380809416911601918211611b1357565b15611c4d57565b60405162461bcd60e51b815260206004820152601e60248201527f596f7520646f6e277420686176652072657175697265642061737365747300006044820152606490fd5b90816020910312610ec257518015158103610ec25790565b15611cb157565b60405162461bcd60e51b815260206004820152601860248201527f596f7520617265206e6f7420696e2077686974656c69737400000000000000006044820152606490fd5b15611cfd57565b60405162461bcd60e51b815260206004820152602260248201527f437573746f6d697a656420636f6e646974696f6e206e6f742073617469736669604482015261195960f21b6064820152608490fd5b9190916001600160801b0380809416911602918216918203611b1357565b9061ffff80921661271003918211611b1357565b906001600160801b03809116918215611d9757160490565b634e487b7160e01b600052601260045260246000fd5b91908203918211611b1357565b81810292918115918404141715611b1357565b6001600160a01b0316908115611e2b577fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602082611e0f600094600254611b06565b60025584845283825260408420818154019055604051908152a3565b60405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606490fd5b15611e7757565b60405162461bcd60e51b815260206004820152602a60248201527f4f6e6c7920776f726b61626c65206166746572207075626c6963206c69717569604482015269191a5d1e48185919195960b21b6064820152608490fd5b6001600160a01b03908116918215611fea5716918215611f9957600082815280602052604081205491808310611f4557604082827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef958760209652828652038282205586815220818154019055604051908152a3565b60405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608490fd5b60405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608490fd5b60405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b6001600160a01b031680156120f5576000918183528260205260408320548181106120a557817fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef926020928587528684520360408620558060025403600255604051908152a3565b60405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608490fd5b60405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b600b5491936001600160a01b039283169390919084156122165761218361271061217761ffff60085460c81c1689611dba565b0495610d288789611dad565b84612203575b83600b5416956121a26001600160801b03968792611dad565b1695803b15610ec2578560849460009788946040519a8b998a9863174f3e1160e31b8a5216600489015260248801521660448601521660648401525af180156121f7576121ec5750565b6121f590611a9d565b565b6040513d6000823e3d90fd5b61221185856009541661224e565b612189565b60405162461bcd60e51b815260206004820152601060248201526f69666f2061646472657373207a65726f60801b6044820152606490fd5b60405167ffffffffffffffff91906020810183811182821017611ab15760405260008080958194828095525af1913d15612328573d91821161231457604051916122a2601f8201601f191660200184611ae4565b825260203d92013e5b156122b257565b60405162461bcd60e51b815260206004820152603460248201527f5472616e7366657248656c7065723a3a736166655472616e736665724554483a60448201527308115512081d1c985b9cd9995c8819985a5b195960621b6064820152608490fd5b634e487b7160e01b81526041600452602490fd5b50506122ab56fe882c2950e02e4a232f7f02939d424cf049fd373433c7b16bed75f842ebe25839a26469706673582212204d12f6c0065d3851ecd079c4972a8b6f277ed6af665863ff6766e542066f5f9664736f6c63430008120033000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000002c0000000000000000000000000000000000000000000084595161401484a00000000000000000000000000000000000000000000000000003635c9adc5dea0000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001c6bf5263400000000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000011c37937e08000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000af000000000000000000000000062700ea68b3df1bff05c596734f976f0ad901a4e00000000000000000000000017fe21fab4784ecae27c7bb43d3d3cf3b73e7aa70000000000000000000000000000000000000000000000000000000000001c20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007466169724265740000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000046662657400000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080806040526004908136101561001557600080fd5b600091823560e01c918263032ae97f146119f25750816306fdde03146118fe578163095ea7b3146118d757816318160ddd146118b957816323b872dd14611771578163313ce5671461175557816339509351146117055781634c3d323d146116de5781636a627842146110df57816370a08231146110a757816379cc679014610f9757816379f24a08146109c15781638f81537b146107f357816395d89b41146106ef5781639dc29fac146105ea578163a457c2d714610545578163a9059cbb1461047b57508063c9392aaa1461018a578063dd62ed3e1461013b5763e5617bba1461010057600080fd5b34610138576020366003190112610138576020906040906001600160a01b03610127611a28565b168152600e83522054604051908152f35b80fd5b503461013857604036600319011261013857610155611a28565b604061015f611a3e565b9260018060a01b03809316815260016020522091166000526020526020604060002054604051908152f35b50346101385780600319360112610138576102206040516101aa81611ac7565b8281528260208201528260408201528260608201528260808201528260a08201528260c08201528260e08201528261010082015282610120820152826101408201528261016082015282610180820152826101a0820152826101c0820152826101e082015282610200820152015261024060405161022781611ac7565b600554906001600160801b03821681528160801c602082015260065460018060a01b038116604083015263ffffffff8160a01c16606083015260c01c60808201526007546001600160801b03811660a083015260801c60c082015260ff60085460018060a01b03811660e084015264ffffffffff8160a01c1661010084015261ffff8160c81c1661012084015261ffff8160d81c1661014084015260e81c16151561016082015260018060a01b03600954166101808201526001600160801b03600a54166101a0820152600b5460018060a01b0381166101c083015260a01c6101e082015260018060a01b03600c541661020082015260018060a01b03600d54166102208201526001600160801b03604051921682526001600160801b03602082015116602083015260018060a01b03604082015116604083015263ffffffff606082015116606083015267ffffffffffffffff60808201511660808301526001600160801b0360a08201511660a08301526001600160801b0360c08201511660c083015260018060a01b0360e08201511660e083015264ffffffffff6101008201511661010083015261ffff6101208201511661012083015261ffff61014082015116610140830152610160810151151561016083015260018060a01b03610180820151166101808301526001600160801b036101a0820151166101a083015260018060a01b036101c0820151166101c08301526001600160601b036101e0820151166101e083015260018060a01b036102008201511661020083015261022060018060a01b0391015116610220820152f35b823461013857604036600319011261013857610495611a28565b9060ff60085460e81c16159283156104ca575b6104bf836104b586611e70565b6024359033611ecf565b602060405160018152f35b600b5460405163d944392360e01b8152929450602091839182906001600160a01b03165afa90811561053a57906104b5916104bf949161050c575b50926104a8565b61052d915060203d8111610533575b6105258183611ae4565b810190611c92565b84610505565b503d61051b565b6040513d85823e3d90fd5b82346101385760403660031901126101385761055f611a28565b9060406024359133815260016020522060018060a01b038316600052602052604060002054818110610598576104bf9350039033611b29565b60405162461bcd60e51b8152602081860152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608490fd5b823461013857604036600319011261013857610604611a28565b602435906001600160a01b0381163381036106b5578352826020528160408420541061067c579081610657827fbac40739b0d4ca32fa2d82fc91630465ba3eddd1598da6fca393b26fb63b94539461203d565b604080513381526001600160a01b03929092166020830152810191909152606090a180f35b60405162461bcd60e51b815260208186015260126024820152710c4c2d8c2dcc6ca40dcdee840cadcdeeaced60731b6044820152606490fd5b60405162461bcd60e51b8152602081870152601360248201527237b7363c9037bbb732b91031b0b710313ab93760691b6044820152606490fd5b823461013857806003193601126101385760405190809280549160019083821c928285169485156107e9575b60209586861081146107d6578588529081156107b2575060011461075a575b6107568661074a818a0382611ae4565b60405191829182611a54565b0390f35b81529294507f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b82841061079f57505050816107569361074a9282010193858061073a565b8054858501870152928501928101610781565b60ff19168787015250505050151560051b820101915061074a81610756858061073a565b634e487b7160e01b845260228352602484fd5b93607f169361071b565b8234610138576020806003193601126109bd5761080e611a28565b9082809260018060a01b0316808252600e835261083c604083205464ffffffffff60085460a01c1690611b06565b4210610853575b5050604080945051928352820152f35b8152600f8252604081205491935091508061099657506001600160801b03600a5416905b600a546001600160801b03168281156109815704670de0b6b3a7640000908181029080820583149015171561093d5760405190635e2112d560e11b8252868201528160248201526706f05b59d3b20000604482015284816064817316882fd345b2ed4e6578f538d7141af5702e6d4a5af490811561053a578391610950575b5060018101908360018312911290801582169115161761093d5705906001820180921161092a575060409350918480610843565b634e487b7160e01b815260118552602490fd5b634e487b7160e01b835260118652602483fd5b90508481813d831161097a575b6109678183611ae4565b810103126109765751866108f6565b8280fd5b503d61095d565b601286634e487b7160e01b6000525260246000fd5b8060011b9081046002036109aa5790610877565b634e487b7160e01b825260118452602482fd5b5080fd5b905060403660031901126109bd576109d7611a28565b602480359263ffffffff90818516809503610f9357600654918260a01c168511610f59576001600160601b0393610a12868660105416611c2b565b90600b9186835460a01c911611610f2a5764ffffffffff60085460a01c16610eda576001600160a01b0393889085168015908115610e54575b50610a569150611c46565b60085484811680158015610def575b610a6f9150611caa565b84600c541680158015610d7f575b610a879150611cf6565b60ff8160e81c16600014610d7757610ac39060055460801c90610abc610ab661ffff809360d81c168094611d4d565b92611d6b565b1690611d7f565b935b6001600160801b038095169160075495608096871c80610ca4575b5050948990831515915b8a8110610b16578b8b8b610b0360105492828416611c2b565b16906001600160601b0319161760105580f35b600d8c8580835416928315600014610bc4575050505082600080516020612330833981519152610b866005610b4e8154871c8d611dcd565b54604080513381526001600160a01b038e16602082015291871c6001600160801b031690820152600060608201529081906080820190565b0390a15b610bb2575b6000198114610ba057600101610aea565b634e487b7160e01b8c5260118752888cfd5b610bbf8585885416611dcd565b610b8f565b610bd46005948554881c90611dcd565b549254604080513381526001600160a01b039390951692831660208601526001600160801b0391871c91821690850152600160608501529260008051602061233083398151915290608090a1803b156109bd5760408051634cc9e27560e01b81526001600160a01b038d16818d019081526001600160801b039095166020860152938392859290918391859183910103925af1918215610c97578592610c7c575b5050610b8a565b610c87919250611a9d565b610c9357828c38610c75565b8b80fd5b50604051903d90823e3d90fd5b81610caf8c83611d4d565b163410610d34578181610cd1610d0a94610cca8f8096611d4d565b1634611dad565b610d11575b50610ce5826007548b1c611d4d565b9080610d00610cf9858d600554901c611d4d565b9489611dba565b9316911684612144565b3880610ae0565b610d2e90610d2883610cca868a6009541694611d4d565b9061224e565b38610cd6565b60405162461bcd60e51b8152602081890152601b818b01527f43726f776466756e64696e6720455448206e6f7420656e6f75676800000000006044820152606490fd5b508793610ac5565b506040805163889e507360e01b8152308782019081523360208281019190915291939192849291839182910103915afa8015610de457610a87918b91610dc6575b50610a7d565b610dde915060203d8111610533576105258183611ae4565b38610dc0565b6040513d8c823e3d90fd5b506040805163889e507360e01b8152308782019081523360208281019190915291939192849291839182910103915afa8015610de457610a6f918b91610e36575b50610a65565b610e4e915060203d8111610533576105258183611ae4565b38610e30565b6020915087604051809481936370a0823160e01b8352338a8401525af18015610ecf578990610e97575b6007548a92506001600160801b03161115610a56610a4b565b506020813d8211610ec7575b81610eb060209383611ae4565b81010312610ec257610a569051610e7e565b600080fd5b3d9150610ea3565b6040513d8b823e3d90fd5b60405162461bcd60e51b81526020818501528086018690527f4261746368206d696e74206f6e6c7920666f72206e6f6e2d66726f7a656e207460448201526337b5b2b760e11b6064820152608490fd5b60405162461bcd60e51b8152602081850152600981870152680546f756368206361760bc1b6044820152606490fd5b60649060148460206040519362461bcd60e51b855284015282015273657863656564206d6178206d696e742073697a6560601b6044820152fd5b8580fd5b823461013857604036600319011261013857610fb1611a28565b6024359060018060a01b03811683526001602052604083203360005260205260406000205493600019851461106c57828510611028575061101e611017837fbac40739b0d4ca32fa2d82fc91630465ba3eddd1598da6fca393b26fb63b94539596611dad565b3383611b29565b610657828261203d565b60649060206040519162461bcd60e51b8352820152601a60248201527f616c6c6f77616e6365206c657373207468616e20616d6f756e740000000000006044820152fd5b60649060206040519162461bcd60e51b835282015260146024820152730c2d8d8deeec2dcc6ca40caf0c6cacac840dac2f60631b6044820152fd5b8234610138576020366003190112610138576020906040906001600160a01b036110cf611a28565b1681528083522054604051908152f35b9050602080600319360112610976576110f6611a28565b6001600160601b039160018360105416018381116116cb5783600b5460a01c91161161169a576006546001600160a01b039290869084168015908490821561161a575b50506111459150611c46565b60085491838316801580156115bb575b61115f9150611caa565b83600c541680158015611551575b6111779150611cf6565b338752600e8152604087205442111561151d5760ff8360e81c16600014611517576111b760055460801c61ffff610abc610ab6828860d81c168094611d4d565b6001600160801b0380911693338952600e83526111e460408a205464ffffffffff429360a01c1690611b06565b111561145857338852600f825260408820548061142f5750600a5416905b338852600f815281604089205561121f60075460801c9283611b06565b34106113ed575082816113d5575b505060075460801c61123f8134611dad565b6113bc575b505b600d548316806112f357506000805160206123308339815191529061127060055460801c82611dcd565b600554604080513381526001600160a01b03939093166020840152608091821c908301526000606083015290a15b806112df575b505060105491818316908282146112cc575060010116906001600160601b0319161760105580f35b634e487b7160e01b855260119052602484fd5b6112ec91600b5416611dcd565b38806112a4565b6113039060055460801c90611dcd565b600d54600554604080513381526001600160a01b039387169384166020820152608092831c918101829052600160608201528993919260008051602061233083398151915291a1803b156109765760408051634cc9e27560e01b81526001600160a01b039095168986019081526001600160801b03909316602084015284928391859183910103925af180156113b15761139e575b5061129e565b6113aa90959195611a9d565b9338611398565b6040513d88823e3d90fd5b6113cf90610d2885600954169134611dad565b38611244565b6113e69160055460801c9084612144565b388261122d565b86816064926040519262461bcd60e51b845283015260248201527f53656e64204554482061732066656520616e642063726f776466756e64696e676044820152fd5b80915060011b9081046002036114455790611202565b634e487b7160e01b885260118752602488fd5b5060075460801c80611482575b50600e90338852600f815287604081205552426040872055611246565b8034106114d3579081611497600e9334611dad565b6114ba575b506114b48460075460801c60055460801c9086612144565b90611465565b6114cd90610d2887600954169134611dad565b3861149c565b60405162461bcd60e51b8152808801839052601860248201527f53656e64204554482061732063726f776466756e64696e6700000000000000006044820152606490fd5b866111b7565b856064916040519162461bcd60e51b8352820152600e60248201526d151a5b595cdd185b5c0819985a5b60921b6044820152fd5b506040805163889e507360e01b815230898201908152336020820152909284928492839182910103915afa80156115b057611177918991611593575b5061116d565b6115aa9150833d8511610533576105258183611ae4565b3861158d565b6040513d8a823e3d90fd5b506040805163889e507360e01b815230898201908152336020820152909284928492839182910103915afa80156115b05761115f9189916115fd575b50611155565b6116149150833d8511610533576105258183611ae4565b386115f7565b9091506024604051809481936370a0823160e01b8352338c8401525af1801561168f57879061165c575b6007548892506001600160801b031611158338611139565b508281813d8311611688575b6116728183611ae4565b81010312611684576111459051611644565b8680fd5b503d611668565b6040513d89823e3d90fd5b836064916040519162461bcd60e51b8352820152600b60248201526a0546f7563686564206361760ac1b6044820152fd5b634e487b7160e01b865260118552602486fd5b823461013857806003193601126101385760206001600160601b0360105416604051908152f35b8234610138576040366003190112610138576104bf9061174e611726611a28565b9133815260016020526040812060018060a01b03841682526020526040602435912054611b06565b9033611b29565b8234610138578060031936011261013857602060405160128152f35b82346101385760603660031901126101385761178b611a28565b611793611a3e565b906044359260ff60085460e81c1615801561184a575b906117b5604092611e70565b6001600160a01b038316815260016020818152838320338452905291902054949085016117e8575b506104bf9350611ecf565b8385106118065750611800836104bf95033383611b29565b846117dd565b60649060206040519162461bcd60e51b8352820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152fd5b50600b5460405163d944392360e01b8152906020908290889082906001600160a01b03165afa9081156118ae5782916117b59160409491611890575b50919250506117a9565b6118a8915060203d8111610533576105258183611ae4565b88611886565b6040513d84823e3d90fd5b82346101385780600319360112610138576020600254604051908152f35b8234610138576040366003190112610138576104bf6118f4611a28565b6024359033611b29565b9050346109bd57816003193601126109bd5760405190826003549060019082821c9282811680156119e8575b60209586861082146119d557508487529081156119b3575060011461195a575b6107568561074a81890382611ae4565b929450600383527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b8284106119a057505050816107569361074a92820101933861194a565b8054858501870152928501928101611983565b60ff191686860152505050151560051b820101915061074a816107563861194a565b634e487b7160e01b845260229052602483fd5b93607f169361192a565b8390346109bd5760203660031901126109bd576020916040906001600160a01b03611a1b611a28565b168152600f845220548152f35b600435906001600160a01b0382168203610ec257565b602435906001600160a01b0382168203610ec257565b6020808252825181830181905290939260005b828110611a8957505060409293506000838284010152601f8019910116010190565b818101860151848201604001528501611a67565b67ffffffffffffffff8111611ab157604052565b634e487b7160e01b600052604160045260246000fd5b610240810190811067ffffffffffffffff821117611ab157604052565b90601f8019910116810190811067ffffffffffffffff821117611ab157604052565b91908201809211611b1357565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03908116918215611bda5716918215611b8a5760207f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925918360005260018252604060002085600052825280604060002055604051908152a3565b60405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608490fd5b60405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608490fd5b9190916001600160601b0380809416911601918211611b1357565b15611c4d57565b60405162461bcd60e51b815260206004820152601e60248201527f596f7520646f6e277420686176652072657175697265642061737365747300006044820152606490fd5b90816020910312610ec257518015158103610ec25790565b15611cb157565b60405162461bcd60e51b815260206004820152601860248201527f596f7520617265206e6f7420696e2077686974656c69737400000000000000006044820152606490fd5b15611cfd57565b60405162461bcd60e51b815260206004820152602260248201527f437573746f6d697a656420636f6e646974696f6e206e6f742073617469736669604482015261195960f21b6064820152608490fd5b9190916001600160801b0380809416911602918216918203611b1357565b9061ffff80921661271003918211611b1357565b906001600160801b03809116918215611d9757160490565b634e487b7160e01b600052601260045260246000fd5b91908203918211611b1357565b81810292918115918404141715611b1357565b6001600160a01b0316908115611e2b577fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602082611e0f600094600254611b06565b60025584845283825260408420818154019055604051908152a3565b60405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606490fd5b15611e7757565b60405162461bcd60e51b815260206004820152602a60248201527f4f6e6c7920776f726b61626c65206166746572207075626c6963206c69717569604482015269191a5d1e48185919195960b21b6064820152608490fd5b6001600160a01b03908116918215611fea5716918215611f9957600082815280602052604081205491808310611f4557604082827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef958760209652828652038282205586815220818154019055604051908152a3565b60405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608490fd5b60405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608490fd5b60405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b6001600160a01b031680156120f5576000918183528260205260408320548181106120a557817fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef926020928587528684520360408620558060025403600255604051908152a3565b60405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608490fd5b60405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b600b5491936001600160a01b039283169390919084156122165761218361271061217761ffff60085460c81c1689611dba565b0495610d288789611dad565b84612203575b83600b5416956121a26001600160801b03968792611dad565b1695803b15610ec2578560849460009788946040519a8b998a9863174f3e1160e31b8a5216600489015260248801521660448601521660648401525af180156121f7576121ec5750565b6121f590611a9d565b565b6040513d6000823e3d90fd5b61221185856009541661224e565b612189565b60405162461bcd60e51b815260206004820152601060248201526f69666f2061646472657373207a65726f60801b6044820152606490fd5b60405167ffffffffffffffff91906020810183811182821017611ab15760405260008080958194828095525af1913d15612328573d91821161231457604051916122a2601f8201601f191660200184611ae4565b825260203d92013e5b156122b257565b60405162461bcd60e51b815260206004820152603460248201527f5472616e7366657248656c7065723a3a736166655472616e736665724554483a60448201527308115512081d1c985b9cd9995c8819985a5b195960621b6064820152608490fd5b634e487b7160e01b81526041600452602490fd5b50506122ab56fe882c2950e02e4a232f7f02939d424cf049fd373433c7b16bed75f842ebe25839a26469706673582212204d12f6c0065d3851ecd079c4972a8b6f277ed6af665863ff6766e542066f5f9664736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000002c0000000000000000000000000000000000000000000084595161401484a00000000000000000000000000000000000000000000000000003635c9adc5dea0000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001c6bf5263400000000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000011c37937e08000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000af000000000000000000000000062700ea68b3df1bff05c596734f976f0ad901a4e00000000000000000000000017fe21fab4784ecae27c7bb43d3d3cf3b73e7aa70000000000000000000000000000000000000000000000000000000000001c20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007466169724265740000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000046662657400000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): FairBet
Arg [1] : _tick (string): fbet
Arg [2] : _cap (uint128): 10000000000000000000000000
Arg [3] : _limitPerMint (uint128): 1000000000000000000000
Arg [4] : _inscriptionId (uint64): 1
Arg [5] : _maxMintSize (uint32): 1
Arg [6] : _freezeTime (uint40): 10
Arg [7] : _onlyContractAddress (address): 0x0000000000000000000000000000000000000000
Arg [8] : _onlyMinQuantity (uint128): 0
Arg [9] : _baseFee (uint96): 500000000000000
Arg [10] : _fundingCommission (uint16): 100
Arg [11] : _crowdFundingRate (uint128): 5000000000000000
Arg [12] : _whitelist (address): 0x0000000000000000000000000000000000000000
Arg [13] : _isIFOMode (bool): True
Arg [14] : _liquidityTokenPercent (uint16): 2800
Arg [15] : _ifoContractAddress (address): 0x62700eA68B3DF1Bff05c596734f976f0AD901A4E
Arg [16] : _inscriptionFactory (address): 0x17fe21fAB4784eCaE27c7bB43d3d3cf3b73e7aA7
Arg [17] : _maxRollups (uint96): 7200
Arg [18] : _customizedConditionContractAddress (address): 0x0000000000000000000000000000000000000000
Arg [19] : _customizedVestingContractAddress (address): 0x0000000000000000000000000000000000000000
-----Encoded View---------------
24 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000280
Arg [1] : 00000000000000000000000000000000000000000000000000000000000002c0
Arg [2] : 000000000000000000000000000000000000000000084595161401484a000000
Arg [3] : 00000000000000000000000000000000000000000000003635c9adc5dea00000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [6] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000001c6bf52634000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [11] : 0000000000000000000000000000000000000000000000000011c37937e08000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000af0
Arg [15] : 00000000000000000000000062700ea68b3df1bff05c596734f976f0ad901a4e
Arg [16] : 00000000000000000000000017fe21fab4784ecae27c7bb43d3d3cf3b73e7aa7
Arg [17] : 0000000000000000000000000000000000000000000000000000000000001c20
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [19] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [20] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [21] : 4661697242657400000000000000000000000000000000000000000000000000
Arg [22] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [23] : 6662657400000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.