ETH Price: $3,350.59 (-3.38%)

Contract

0xe596cbCE6482e76F39D1667cCd898D589AaCDA96
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Approve211007302024-11-02 15:03:4754 days ago1730559827IN
0xe596cbCE...89AaCDA96
0 ETH0.000151766.31109101
Approve210842722024-10-31 7:58:3556 days ago1730361515IN
0xe596cbCE...89AaCDA96
0 ETH0.00019698.18841236
Approve178463272023-08-05 4:16:35509 days ago1691208995IN
0xe596cbCE...89AaCDA96
0 ETH0.0005764412.52632174
Approve174642542023-06-12 13:24:23563 days ago1686576263IN
0xe596cbCE...89AaCDA96
0 ETH0.0005949120.59728772
Approve174642512023-06-12 13:23:47563 days ago1686576227IN
0xe596cbCE...89AaCDA96
0 ETH0.0009547520.76315835
Approve174552202023-06-11 6:53:59564 days ago1686466439IN
0xe596cbCE...89AaCDA96
0 ETH0.0007309915.89702472
Approve174193872023-06-06 5:38:11569 days ago1686029891IN
0xe596cbCE...89AaCDA96
0 ETH0.001086523.58525066
Approve174115952023-06-05 3:13:11570 days ago1685934791IN
0xe596cbCE...89AaCDA96
0 ETH0.000922719.91559066
Approve174096292023-06-04 20:33:23570 days ago1685910803IN
0xe596cbCE...89AaCDA96
0 ETH0.0009125219.80866354
Approve174089662023-06-04 18:19:35570 days ago1685902775IN
0xe596cbCE...89AaCDA96
0 ETH0.0011411124.62968805
Approve174089252023-06-04 18:11:23570 days ago1685902283IN
0xe596cbCE...89AaCDA96
0 ETH0.0014206630.66348215
Approve174084102023-06-04 16:25:59571 days ago1685895959IN
0xe596cbCE...89AaCDA96
0 ETH0.0021930147.59243126
Approve174081362023-06-04 15:30:35571 days ago1685892635IN
0xe596cbCE...89AaCDA96
0 ETH0.0012866827.80748814
Approve173992212023-06-03 9:18:47572 days ago1685783927IN
0xe596cbCE...89AaCDA96
0 ETH0.0007282725.16248251
Approve173990332023-06-03 8:40:35572 days ago1685781635IN
0xe596cbCE...89AaCDA96
0 ETH0.0034869575.2618984
Approve173981122023-06-03 5:35:23572 days ago1685770523IN
0xe596cbCE...89AaCDA96
0 ETH0.0009287720.17180118
Approve173980992023-06-03 5:32:47572 days ago1685770367IN
0xe596cbCE...89AaCDA96
0 ETH0.0010398722.5849066
Approve173980802023-06-03 5:28:47572 days ago1685770127IN
0xe596cbCE...89AaCDA96
0 ETH0.0009264520.13198238
Approve173980512023-06-03 5:22:59572 days ago1685769779IN
0xe596cbCE...89AaCDA96
0 ETH0.0005310822.14034152
Approve173980312023-06-03 5:18:59572 days ago1685769539IN
0xe596cbCE...89AaCDA96
0 ETH0.0010214122.22456973
Approve173979282023-06-03 4:57:35572 days ago1685768255IN
0xe596cbCE...89AaCDA96
0 ETH0.0010398322.58407116
Mint173979172023-06-03 4:55:23572 days ago1685768123IN
0xe596cbCE...89AaCDA96
0.0015 ETH0.0022990121.94614373
Mint173979092023-06-03 4:53:47572 days ago1685768027IN
0xe596cbCE...89AaCDA96
0.001 ETH0.0018620824.45761644
Mint173978972023-06-03 4:51:23572 days ago1685767883IN
0xe596cbCE...89AaCDA96
0.001 ETH0.002017425.81951059
Mint173978792023-06-03 4:47:47572 days ago1685767667IN
0xe596cbCE...89AaCDA96
0.0015 ETH0.002512821.05284896
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
173979172023-06-03 4:55:23572 days ago1685768123
0xe596cbCE...89AaCDA96
0.0005 ETH
173979172023-06-03 4:55:23572 days ago1685768123
0xe596cbCE...89AaCDA96
0.00001 ETH
173979172023-06-03 4:55:23572 days ago1685768123
0xe596cbCE...89AaCDA96
0.00099 ETH
173979092023-06-03 4:53:47572 days ago1685768027
0xe596cbCE...89AaCDA96
0.00001 ETH
173979092023-06-03 4:53:47572 days ago1685768027
0xe596cbCE...89AaCDA96
0.00099 ETH
173978972023-06-03 4:51:23572 days ago1685767883
0xe596cbCE...89AaCDA96
0.00001 ETH
173978972023-06-03 4:51:23572 days ago1685767883
0xe596cbCE...89AaCDA96
0.00099 ETH
173978792023-06-03 4:47:47572 days ago1685767667
0xe596cbCE...89AaCDA96
0.0005 ETH
173978792023-06-03 4:47:47572 days ago1685767667
0xe596cbCE...89AaCDA96
0.00001 ETH
173978792023-06-03 4:47:47572 days ago1685767667
0xe596cbCE...89AaCDA96
0.00099 ETH
173978742023-06-03 4:46:47572 days ago1685767607
0xe596cbCE...89AaCDA96
0.00001 ETH
173978742023-06-03 4:46:47572 days ago1685767607
0xe596cbCE...89AaCDA96
0.00099 ETH
173978622023-06-03 4:44:23572 days ago1685767463
0xe596cbCE...89AaCDA96
0.00001 ETH
173978622023-06-03 4:44:23572 days ago1685767463
0xe596cbCE...89AaCDA96
0.00099 ETH
173978522023-06-03 4:42:23572 days ago1685767343
0xe596cbCE...89AaCDA96
0.00001 ETH
173978522023-06-03 4:42:23572 days ago1685767343
0xe596cbCE...89AaCDA96
0.00099 ETH
173978482023-06-03 4:41:35572 days ago1685767295
0xe596cbCE...89AaCDA96
0.004 ETH
173978482023-06-03 4:41:35572 days ago1685767295
0xe596cbCE...89AaCDA96
0.00001 ETH
173978482023-06-03 4:41:35572 days ago1685767295
0xe596cbCE...89AaCDA96
0.00099 ETH
173978472023-06-03 4:41:23572 days ago1685767283
0xe596cbCE...89AaCDA96
0.00001 ETH
173978472023-06-03 4:41:23572 days ago1685767283
0xe596cbCE...89AaCDA96
0.00099 ETH
173978442023-06-03 4:40:47572 days ago1685767247
0xe596cbCE...89AaCDA96
0.002 ETH
173978442023-06-03 4:40:47572 days ago1685767247
0xe596cbCE...89AaCDA96
0.00001 ETH
173978442023-06-03 4:40:47572 days ago1685767247
0xe596cbCE...89AaCDA96
0.00099 ETH
173978402023-06-03 4:39:59572 days ago1685767199
0xe596cbCE...89AaCDA96
0.001 ETH
View All Internal Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x37BAb2BE...435C90627
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
Inscription

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 7 : InscriptionV2.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "./Logarithm.sol";
import "./TransferHelper.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;
    uint256 public cap;                 // Max amount
    uint256 public limitPerMint;        // Limitaion of each mint
    uint256 public inscriptionId;       // Inscription Id
    uint256 public maxMintSize;         // max mint size, that means the max mint quantity is: maxMintSize * limitPerMint
    uint256 public 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 public onlyContractAddress; // Only addresses that hold these assets can mint
    uint256 public onlyMinQuantity;     // Only addresses that the quantity of assets hold more than this amount can mint
    uint256 public baseFee;             // base fee of the second mint after frozen interval. The first mint after frozen time is free.
    uint256 public fundingCommission;   // commission rate of fund raising, 100 means 1%
    uint256 public crowdFundingRate;    // rate of crowdfunding
    address payable public crowdfundingAddress; // receiving fee of crowdfunding
    address payable public inscriptionFactory;

    mapping(address => uint256) public lastMintTimestamp;   // record the last mint timestamp of account
    mapping(address => uint256) public lastMintFee;           // record the last mint fee

    constructor(
        string memory _name,            // token name
        string memory _tick,            // token tick, same as symbol. must be 4 characters.
        uint256 _cap,                   // Max amount
        uint256 _limitPerMint,          // Limitaion of each mint
        uint256 _inscriptionId,         // Inscription Id
        uint256 _maxMintSize,           // max mint size, that means the max mint quantity is: maxMintSize * limitPerMint. This is only availabe for non-frozen time token.
        uint256 _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
        uint256 _onlyMinQuantity,       // Only addresses that the quantity of assets hold more than this amount can mint
        uint256 _baseFee,               // base fee of the second mint after frozen interval. The first mint after frozen time is free.
        uint256 _fundingCommission,     // commission rate of fund raising, 100 means 1%
        uint256 _crowdFundingRate,      // rate of crowdfunding
        address payable _crowdFundingAddress,   // receiving fee of crowdfunding
        address payable _inscriptionFactory
    ) ERC20(_name, _tick) {
        require(_cap >= _limitPerMint, "Limit per mint exceed cap");
        cap = _cap;
        limitPerMint = _limitPerMint;
        inscriptionId = _inscriptionId;
        maxMintSize = _maxMintSize;
        freezeTime = _freezeTime;
        onlyContractAddress = _onlyContractAddress;
        onlyMinQuantity = _onlyMinQuantity;
        baseFee = _baseFee;
        fundingCommission = _fundingCommission;
        crowdFundingRate = _crowdFundingRate;
        crowdfundingAddress = _crowdFundingAddress;
        inscriptionFactory = _inscriptionFactory;
    }

    function mint(address _to) payable public {
        // Check if the quantity after mint will exceed the cap
        require(totalSupply() + limitPerMint <= cap, "Touched cap");
        // Check if the assets in the msg.sender is satisfied
        require(onlyContractAddress == address(0x0) || ICommonToken(onlyContractAddress).balanceOf(msg.sender) >= onlyMinQuantity, "You don't have required assets");
        require(lastMintTimestamp[msg.sender] < block.timestamp, "Timestamp fail");
        
        if(lastMintTimestamp[msg.sender] + freezeTime > block.timestamp) {
            // The min extra tip is double of last mint fee
            lastMintFee[msg.sender] = lastMintFee[msg.sender] == 0 ? baseFee : lastMintFee[msg.sender] * 2;
            // Transfer the fee to the crowdfunding address
            if(crowdFundingRate > 0) {
                // Check if the tip is high than the min extra fee
                require(msg.value >= crowdFundingRate + lastMintFee[msg.sender], "Send some ETH as fee and crowdfunding");
                _dispatchFunding(crowdFundingRate);
            }
            // Transfer the tip to InscriptionFactory smart contract
            if(msg.value - crowdFundingRate > 0) TransferHelper.safeTransferETH(inscriptionFactory, msg.value - crowdFundingRate);
            // Do mint
            _mint(_to, limitPerMint);
        } else {
            // Transfer the fee to the crowdfunding address
            if(crowdFundingRate > 0) {
                require(msg.value >= crowdFundingRate, "Send some ETH as crowdfunding");
                _dispatchFunding(msg.value);
            }
            // Out of frozen time, free mint. Reset the timestamp and mint times.
            lastMintFee[msg.sender] = 0;
            lastMintTimestamp[msg.sender] = block.timestamp;
            // Do mint
            _mint(_to, limitPerMint);
        }
    }

    // batch mint is only available for non-frozen-time tokens
    function batchMint(address _to, uint256 _num) payable public {
        require(_num <= maxMintSize, "exceed max mint size");
        require(totalSupply() + _num * limitPerMint <= cap, "Touch cap");
        require(freezeTime == 0, "Batch mint only for non-frozen token");
        require(onlyContractAddress == address(0x0) || ICommonToken(onlyContractAddress).balanceOf(msg.sender) >= onlyMinQuantity, "You don't have required assets");
        if(crowdFundingRate > 0) {
            require(msg.value >= crowdFundingRate * _num, "Crowdfunding ETH not enough");
            _dispatchFunding(msg.value);
        }
        for(uint256 i = 0; i < _num; i++) _mint(_to, limitPerMint);
    }

    function getMintFee(address _addr) public view returns(uint256 mintedTimes, uint256 nextMintFee) {
        if(lastMintTimestamp[_addr] + freezeTime > block.timestamp) {
            int256 scale = 1e18;
            int256 halfScale = 5e17;
            // times = log_2(lastMintFee / baseFee) + 1 (if lastMintFee > 0)
            nextMintFee = lastMintFee[_addr] == 0 ? baseFee : lastMintFee[_addr] * 2;
            mintedTimes = uint256((Logarithm.log2(int256(nextMintFee / baseFee) * scale, scale, halfScale) + 1) / scale) + 1;
        }
    }

    function _dispatchFunding(uint256 _amount) private {
        uint256 commission = _amount * fundingCommission / 10000;
        TransferHelper.safeTransferETH(crowdfundingAddress, _amount - commission);
        if(commission > 0) TransferHelper.safeTransferETH(inscriptionFactory, commission);
    }
}

File 2 of 7 : TransferHelper.sol
// 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');
    }
}

File 3 of 7 : Logarithm.sol
// 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) internal 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) internal 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;
        }
    }
}

File 4 of 7 : ERC20.sol
// 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 {}
}

File 5 of 7 : Context.sol
// 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;
    }
}

File 6 of 7 : IERC20Metadata.sol
// 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);
}

File 7 of 7 : IERC20.sol
// 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);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "viaIR": true
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_tick","type":"string"},{"internalType":"uint256","name":"_cap","type":"uint256"},{"internalType":"uint256","name":"_limitPerMint","type":"uint256"},{"internalType":"uint256","name":"_inscriptionId","type":"uint256"},{"internalType":"uint256","name":"_maxMintSize","type":"uint256"},{"internalType":"uint256","name":"_freezeTime","type":"uint256"},{"internalType":"address","name":"_onlyContractAddress","type":"address"},{"internalType":"uint256","name":"_onlyMinQuantity","type":"uint256"},{"internalType":"uint256","name":"_baseFee","type":"uint256"},{"internalType":"uint256","name":"_fundingCommission","type":"uint256"},{"internalType":"uint256","name":"_crowdFundingRate","type":"uint256"},{"internalType":"address payable","name":"_crowdFundingAddress","type":"address"},{"internalType":"address payable","name":"_inscriptionFactory","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":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":[],"name":"baseFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_num","type":"uint256"}],"name":"batchMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"crowdFundingRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"crowdfundingAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","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":"freezeTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fundingCommission","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":[],"name":"inscriptionFactory","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"inscriptionId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastMintFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastMintTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"limitPerMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"onlyContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"onlyMinQuantity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"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"}]

Deployed Bytecode

0x608060408181526004918236101561001657600080fd5b600092833560e01c91826306fdde0314610db657508163095ea7b314610d8c57816316b8060c14610d6d57816318160ddd14610d4e5781631c4cd1a514610d1657816323b872dd14610c4c5781632ca9160414610c2d578163313ce56714610c11578163355274ea14610bf25781633950935114610ba257816343508b05146109585781635c4caf951461092f5781636a627842146106265781636ef25c3a1461060757816370a08231146105d05781638f81537b1461049e57816395d89b411461039b5781639f805924146103725781639fc6a1dc14610349578163a457c2d7146102a157508063a9059cbb14610271578063bde593c614610253578063be13197b1461021c578063cb06bfdb146101fe578063dd62ed3e146101b6578063def504bb14610198578063e2ce9f511461017a5763fd7e1bee1461015957600080fd5b346101765781600319360112610176576020906009549051908152f35b5080fd5b50346101765781600319360112610176576020906006549051908152f35b5034610176578160031936011261017657602090600b549051908152f35b5034610176578060031936011261017657806020926101d3610ef4565b6101db610f0f565b6001600160a01b0391821683526001865283832091168252845220549051908152f35b5034610176578160031936011261017657602090600d549051908152f35b50346101765760203660031901126101765760209181906001600160a01b03610243610ef4565b1681526011845220549051908152f35b50346101765781600319360112610176576020906007549051908152f35b503461017657806003193601126101765760209061029a610290610ef4565b6024359033610f80565b5160018152f35b905082346103465782600319360112610346576102bc610ef4565b918360243592338152600160205281812060018060a01b03861682526020522054908282106102f55760208561029a85850387336110ee565b608490602086519162461bcd60e51b8352820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152fd5b80fd5b50503461017657816003193601126101765760105490516001600160a01b039091168152602090f35b505034610176578160031936011261017657600a5490516001600160a01b039091168152602090f35b838334610176578160031936011261017657805191809380549160019083821c92828516948515610494575b60209586861081146104815785895290811561045d5750600114610405575b61040187876103f7828c0383610f25565b5191829182610eab565b0390f35b81529295507f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b82841061044a5750505082610401946103f7928201019486806103e6565b805486850188015292860192810161042c565b60ff19168887015250505050151560051b83010192506103f78261040186806103e6565b634e487b7160e01b845260228352602484fd5b93607f16936103c7565b90508234610346576020366003190112610346576104ba610ef4565b908092819260018060a01b031680835260116020526104df8684205460095490610f5d565b42106104f5575b50505082519182526020820152f35b82526012602052848220549193509150806105a95750600c54915b600c548381156105965704670de0b6b3a764000090818102908082058314901517156105835761053f90611341565b60018101908360018312911290801582169115161761058357059160018301809311610570575050908380806104e6565b634e487b7160e01b825260119052602490fd5b634e487b7160e01b835260118452602483fd5b634e487b7160e01b835260128452602483fd5b8060011b9081046002036105bd5791610510565b634e487b7160e01b835260118252602483fd5b5050346101765760203660031901126101765760209181906001600160a01b036105f8610ef4565b16815280845220549051908152f35b505034610176578160031936011261017657602090600c549051908152f35b83915060208060031936011261092b5761063e610ef4565b9161064e60025460065490610f5d565b600554106108fc57600a546001600160a01b0392908590841680159083908215610887575b505061067f91506111f0565b33855260118152858520544211156108545733855260118152858520546106aa429160095490610f5d565b11156107c55733855260128152858520548061079e5750600c54955b338652601282528681872055600e549687610725575b50505050610703929350600e546106f3813461124f565b610706575b50506006549061125c565b80f35b61071861071e9260105416913461124f565b90611503565b83806106f8565b61072f9088610f5d565b341061074f5750505061074561070393946112ff565b83928580806106dc565b5162461bcd60e51b815291820152602560248201527f53656e6420736f6d65204554482061732066656520616e642063726f776466756044820152646e64696e6760d81b606482015260849150fd5b8060011b9081046002036107b257956106c6565b634e487b7160e01b865260118352602486fd5b949150600e54806107f5575b5050601161070393943386526012815285838120555242908420556006549061125c565b341061081357506011610703939461080c346112ff565b94936107d1565b84606492519162461bcd60e51b8352820152601d60248201527f53656e6420736f6d65204554482061732063726f776466756e64696e670000006044820152fd5b855162461bcd60e51b815291820152600e60248201526d151a5b595cdd185b5c0819985a5b60921b604482015260649150fd5b90915060248951809481936370a0823160e01b835233898401525af180156108f25786906108bf575b600b5487925011158289610673565b508181813d83116108eb575b6108d58183610f25565b810103126108e75761067f90516108b0565b8580fd5b503d6108cb565b87513d88823e3d90fd5b60649185519162461bcd60e51b8352820152600b60248201526a0546f7563686564206361760ac1b6044820152fd5b8280fd5b505034610176578160031936011261017657600f5490516001600160a01b039091168152602090f35b9180915060031936011261092b5761096e610ef4565b916024928335926008548411610b6a576002549061099960069261099384548861123c565b90610f5d565b60055410610b3d57600954610aef57600a5487906001600160a01b03168015908115610a75575b506109cb91506111f0565b600e548581610a13575b505050855b8481106109e5578680f35b6109f082548461125c565b6000198114610a01576001016109da565b634e487b7160e01b8752601184528587fd5b610a1c9161123c565b3410610a345750610a2c346112ff565b3880856109d5565b5162461bcd60e51b8152602081850152601b818701527f43726f776466756e64696e6720455448206e6f7420656e6f75676800000000006044820152606490fd5b60209150888451809481936370a0823160e01b8352338b8401525af18015610ae5578890610aae575b600b5489925011156109cb6109c0565b506020813d8211610add575b81610ac760209383610f25565b81010312610ad9576109cb9051610a9e565b8780fd5b3d9150610aba565b82513d8a823e3d90fd5b5162461bcd60e51b81526020818501528086018690527f4261746368206d696e74206f6e6c7920666f72206e6f6e2d66726f7a656e207460448201526337b5b2b760e11b6064820152608490fd5b5162461bcd60e51b8152602081850152600981870152680546f756368206361760bc1b6044820152606490fd5b5162461bcd60e51b815260208184015260148186015273657863656564206d6178206d696e742073697a6560601b6044820152606490fd5b50503461017657806003193601126101765761029a602092610beb610bc5610ef4565b338352600186528483206001600160a01b03821684528652918490205460243590610f5d565b90336110ee565b5050346101765781600319360112610176576020906005549051908152f35b5050346101765781600319360112610176576020905160128152f35b505034610176578160031936011261017657602090600e549051908152f35b8391503461017657606036600319011261017657610c68610ef4565b610c70610f0f565b91846044359460018060a01b038416815260016020528181203382526020522054906000198203610caa575b60208661029a878787610f80565b848210610cd35750918391610cc86020969561029a950333836110ee565b919394819350610c9c565b606490602087519162461bcd60e51b8352820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152fd5b5050346101765760203660031901126101765760209181906001600160a01b03610d3e610ef4565b1681526012845220549051908152f35b5050346101765781600319360112610176576020906002549051908152f35b5050346101765781600319360112610176576020906008549051908152f35b50503461017657806003193601126101765760209061029a610dac610ef4565b60243590336110ee565b92915034610ea75783600319360112610ea757600354600181811c9186908281168015610e9d575b6020958686108214610e8a5750848852908115610e685750600114610e0f575b61040186866103f7828b0383610f25565b929550600383527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b828410610e555750505082610401946103f7928201019438610dfe565b8054868501880152928601928101610e38565b60ff191687860152505050151560051b83010192506103f78261040138610dfe565b634e487b7160e01b845260229052602483fd5b93607f1693610dde565b8380fd5b6020808252825181830181905290939260005b828110610ee057505060409293506000838284010152601f8019910116010190565b818101860151848201604001528501610ebe565b600435906001600160a01b0382168203610f0a57565b600080fd5b602435906001600160a01b0382168203610f0a57565b90601f8019910116810190811067ffffffffffffffff821117610f4757604052565b634e487b7160e01b600052604160045260246000fd5b91908201809211610f6a57565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0390811691821561109b571691821561104a57600082815280602052604081205491808310610ff657604082827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef958760209652828652038282205586815220818154019055604051908152a3565b60405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608490fd5b60405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608490fd5b60405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b6001600160a01b0390811691821561119f571691821561114f5760207f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925918360005260018252604060002085600052825280604060002055604051908152a3565b60405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608490fd5b60405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608490fd5b156111f757565b60405162461bcd60e51b815260206004820152601e60248201527f596f7520646f6e277420686176652072657175697265642061737365747300006044820152606490fd5b81810292918115918404141715610f6a57565b91908203918211610f6a57565b6001600160a01b03169081156112ba577fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60208261129e600094600254610f5d565b60025584845283825260408420818154019055604051908152a3565b60405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606490fd5b61271061130e600d548361123c565b0461132960018060a01b03926107188385600f54169261124f565b80611332575050565b61133f9160105416611503565b565b6000908181131561017657670de0b6b3a7640000918282126114e5576001925b81818405600160801b8110156114da575b680100000000000000008110156114c5575b6401000000008110156114b0575b6201000081101561149b575b610100811015611486575b6010811015611471575b6004811015611448575b60021115611428575b81810293811d9082821461141d57506706f05b59d3b20000905b8382136113ef57505050500290565b808391020590671bc16d674ec8000082121561140f575b60011d906113e0565b809194019360011d90611406565b925050929150020290565b60018101809111156113c657634e487b7160e01b83526011600452602483fd5b60021c906002810180911161145d57906113bd565b634e487b7160e01b84526011600452602484fd5b60041c906004810180911161145d57906113b3565b60081c906008810180911161145d57906113a9565b60101c906010810180911161145d579061139e565b60201c906020810180911161145d5790611392565b60401c906040810180911161145d5790611384565b60809150811c611372565b600019926ec097ce7bc90715b34b9f10000000009290920491611361565b60405167ffffffffffffffff91906020810183811182821017610f475760405260008080958194828095525af1913d156115dd573d9182116115c95760405191611557601f8201601f191660200184610f25565b825260203d92013e5b1561156757565b60405162461bcd60e51b815260206004820152603460248201527f5472616e7366657248656c7065723a3a736166655472616e736665724554483a60448201527308115512081d1c985b9cd9995c8819985a5b195960621b6064820152608490fd5b634e487b7160e01b81526041600452602490fd5b505061156056fea2646970667358221220cac9a4b804f7492f76ed40e8e1d0bdd7608244db59460f2b5d93032e9759f3f064736f6c63430008120033

Deployed Bytecode Sourcemap

393:6867:4:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;761:25;393:6867;;;;;;;;;;;;;;;;;;;;;;;;;;515:27;393:6867;;;;;;;;;;;;;;;;;;;;;;1075:30;393:6867;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::i;:::-;-1:-1:-1;;;;;393:6867:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1333:32;393:6867;;;;;;;;;;;;;;-1:-1:-1;;393:6867:4;;;;;;;;-1:-1:-1;;;;;393:6867:4;;:::i;:::-;;;;1615:52;393:6867;;;;;;;;;;;;;;;;;;;;;;;;;581:28;393:6867;;;;;;;;;;;;;;;;;;;;;;3894:6:0;393:6867:4;;:::i;:::-;;;719:10:3;;3894:6:0;:::i;:::-;393:6867:4;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;719:10:3;;393:6867:4;;;;;;;;;;;;;;;;;;;;;6792:35:0;;;;393:6867:4;;;;6928:34:0;393:6867:4;;;;719:10:3;6928:34:0;:::i;393:6867:4:-;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;393:6867:4;;;;;;;;;;;;;;;;;;;;;;1567:41;393:6867;;;-1:-1:-1;;;;;393:6867:4;;;;;;;;;;;;;;;;;;;;;;985:34;393:6867;;;-1:-1:-1;;;;;393:6867:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;;-1:-1:-1;393:6867:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;393:6867:4;;;;;-1:-1:-1;;;;393:6867:4;;;;;;;;-1:-1:-1;393:6867:4;;;;;;;;-1:-1:-1;;;393:6867:4;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;393:6867:4;;;;;;:::i;:::-;;6466:19;6487;;393:6867;;;;;;;;;;6521:17;393:6867;;6521:37;393:6867;;;;6548:10;393:6867;6521:37;;:::i;:::-;6561:15;-1:-1:-1;6518:430:4;;393:6867;;;;;;;;;;;;;;6518:430;393:6867;;6753:11;393:6867;;;;;;;;-1:-1:-1;393:6867:4;-1:-1:-1;6753:23:4;;;393:6867;6779:7;393:6867;6753:58;;6884:7;393:6867;6739:72;393:6867;;;;;6607:4;393:6867;;;;;;;;;;;;;;;;6848:71;;;:::i;:::-;393:6867;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6825:112;;6518:430;;;;;;393:6867;-1:-1:-1;;;393:6867:4;;6521:17;393:6867;;;;;;-1:-1:-1;;;393:6867:4;;6521:17;393:6867;;;;;;-1:-1:-1;;;393:6867:4;;6753:11;393:6867;;;;;6753:58;393:6867;;;;;;6810:1;393:6867;;;6753:58;;;393:6867;-1:-1:-1;;;393:6867:4;;6521:17;393:6867;;;;;;;;;;;;;-1:-1:-1;;393:6867:4;;;;;;;;-1:-1:-1;;;;;393:6867:4;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1197:22;393:6867;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;3891:28;3342:12:0;393:6867:4;3907:12;393:6867;3891:28;;:::i;:::-;3923:3;393:6867;-1:-1:-1;393:6867:4;;4022:19;393:6867;-1:-1:-1;;;;;393:6867:4;;;;;;4022:35;;;393:6867;;4022:113;;;;393:6867;4014:156;;;;;;:::i;:::-;4206:10;393:6867;;4188:17;393:6867;;;;;;4220:15;-1:-1:-1;393:6867:4;;;4206:10;393:6867;;4188:17;393:6867;;;;;;4276:42;4220:15;393:6867;4308:10;393:6867;4276:42;;:::i;:::-;:60;4220:15;;;4206:10;393:6867;;4438:11;393:6867;;;;;;4438:28;;;393:6867;4469:7;393:6867;4438:68;;4206:10;393:6867;;4438:11;393:6867;;;;;;;4583:16;393:6867;4583:20;;4580:282;;4438:68;393:6867;;;;5109:12;393:6867;;;4583:16;393:6867;4947:28;:9;;:28;:::i;:::-;4944:117;;4438:68;393:6867;;3907:12;393:6867;5109:12;;:::i;:::-;393:6867;;4944:117;5032:28;4981:80;393:6867;5012:18;393:6867;;4947:9;;5032:28;:::i;:::-;4981:80;;:::i;:::-;4944:117;;;;4580:282;4711:42;;;;:::i;:::-;4698:9;:55;393:6867;;4830:16;;;;5109:12;4830:16;;;:::i;:::-;4580:282;;;;;;;393:6867;;-1:-1:-1;;;393:6867:4;;;;;;;;;;;;;;;;-1:-1:-1;;;393:6867:4;;;;;;-1:-1:-1;393:6867:4;4438:68;393:6867;;;;;;3342:12:0;393:6867:4;;;4438:68;;;393:6867;-1:-1:-1;;;393:6867:4;;4188:17;393:6867;;;;;4273:1369;393:6867;;;5216:16;393:6867;5216:20;5213:174;;4273:1369;4206:10;;4188:17;5618:12;4206:10;;;393:6867;;5482:11;393:6867;;;;;;;;4220:15;393:6867;;;;3907:12;393:6867;5618:12;;:::i;5213:174::-;5264:9;:29;393:6867;;5264:9;4188:17;5618:12;5264:9;;5362;5264;5362;:::i;:::-;5213:174;;;;393:6867;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;393:6867:4;;;;;;;;;;;-1:-1:-1;;;393:6867:4;;;;;;-1:-1:-1;393:6867:4;4022:113;393:6867;;;;;;;;;;;;;4061:55;;4105:10;4061:55;;;393:6867;4061:55;;;;;;;;;;4022:113;4120:15;393:6867;4022:113;;-1:-1:-1;;4061:74:4;4022:113;;;;4061:55;;;;;;;;;;;;;;;:::i;:::-;;;393:6867;;;;4014:156;393:6867;;4061:55;;393:6867;;;;4061:55;;;;;;393:6867;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;393:6867:4;;;;;;;;;;;;;;;;;;;;;;;1486:42;393:6867;;;-1:-1:-1;;;;;393:6867:4;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;5804:11;393:6867;5796:19;;393:6867;;3342:12:0;393:6867:4;5881:12;5858:35;5881:12;393:6867;5874:19;393:6867;;5874:19;;:::i;:::-;5858:35;;:::i;:::-;5897:3;393:6867;-1:-1:-1;393:6867:4;;5932:10;393:6867;;;6006:19;393:6867;;;-1:-1:-1;;;;;393:6867:4;6006:35;;;:113;;;;393:6867;5998:156;;;;;:::i;:::-;6167:16;393:6867;6167:20;;6164:167;;393:6867;6344:13;;;;6359:8;;;;;;393:6867;;;6369:3;6385:12;393:6867;;6385:12;;:::i;:::-;-1:-1:-1;;393:6867:4;;;;;;6344:13;;393:6867;-1:-1:-1;;;393:6867:4;;;;;;;;6164:167;6224:23;;;:::i;:::-;6211:9;:36;393:6867;;6211:9;6310;6211;6310;:::i;:::-;6164:167;;;;;393:6867;;-1:-1:-1;;;393:6867:4;;;;;;;;;;;;;;;;;;;;6006:113;393:6867;;;;;;;;;;;;;6045:55;;6089:10;6045:55;;;393:6867;6045:55;;;;;;;;;;6006:113;6104:15;393:6867;6006:113;;-1:-1:-1;;6045:74:4;5998:156;6006:113;;6045:55;;393:6867;6045:55;;;;;;;;;393:6867;6045:55;;;:::i;:::-;;;393:6867;;;;5998:156;393:6867;;6045:55;;393:6867;;;;6045:55;;;-1:-1:-1;6045:55:4;;;393:6867;;;;;;;;;;;-1:-1:-1;;;393:6867:4;;;;;;;;;;;;;;;;;;-1:-1:-1;;;393:6867:4;;;;;;;;;-1:-1:-1;;;393:6867:4;;;;;;;;;;;;-1:-1:-1;;;393:6867:4;;;;;;;;;-1:-1:-1;;;393:6867:4;;;;;;;;;;;;-1:-1:-1;;;393:6867:4;;;;;;;;;;;;;;;;;;;;;6021:38:0;393:6867:4;;6021:38:0;393:6867:4;;:::i;:::-;719:10:3;393:6867:4;;;;;;;;-1:-1:-1;;;;;393:6867:4;;;;;;;;;;;;;;6021:38:0;:::i;:::-;719:10:3;;6021:38:0;:::i;393:6867:4:-;;;;;;;;;;;;;;;;461:18;393:6867;;;;;;;;;;;;;;;;;;;;;;;;3186:2:0;393:6867:4;;;;;;;;;;;;;;;;;;;1422:31;393:6867;;;;;;;;;;;;;;;;-1:-1:-1;;393:6867:4;;;;;;:::i;:::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;719:10:3;393:6867:4;;;;;;11264:17:0;;;11244:37;;11240:243;;393:6867:4;;5424:6:0;;;;;;:::i;11240:243::-;11305:26;;;393:6867:4;;;;;;11432:25:0;393:6867:4;;;5424:6:0;393:6867:4;;719:10:3;11432:25:0;;:::i;:::-;11240:243;;;;;;;;393:6867:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;393:6867:4;;;;;;;;-1:-1:-1;;;;;393:6867:4;;:::i;:::-;;;;1720:46;393:6867;;;;;;;;;;;;;;;;;;;;;;;;;;3342:12:0;393:6867:4;;;;;;;;;;;;;;;;;;;;;;;639:26;393:6867;;;;;;;;;;;;;;;;;;;;;;;4606:6:0;393:6867:4;;:::i;:::-;;;719:10:3;;4606:6:0;:::i;393:6867:4:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;393:6867:4;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;393:6867:4;;;;;-1:-1:-1;;;393:6867:4;;;;;;;;-1:-1:-1;393:6867:4;;;;;;;-1:-1:-1;;;393:6867:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;393:6867:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;393:6867:4;;;;;;:::o;:::-;;;;;;;;-1:-1:-1;;;;;393:6867:4;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;7456:788:0;-1:-1:-1;;;;;393:6867:4;;;;7552:18:0;;393:6867:4;;;7630:16:0;;;393:6867:4;;7568:1:0;393:6867:4;;;;;;;;;;7801:21:0;;;;393:6867:4;;;;;8163:26:0;393:6867:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;8163:26:0;7456:788::o;393:6867:4:-;;;-1:-1:-1;;;393:6867:4;;;;;;;;;;;;;;;;;-1:-1:-1;;;393:6867:4;;;;;;;;;;-1:-1:-1;;;393:6867:4;;;;;;;;;;;;;;;;;-1:-1:-1;;;393:6867:4;;;;;;;;;;-1:-1:-1;;;393:6867:4;;;;;;;;;;;;;;;;;-1:-1:-1;;;393:6867:4;;;;;;;10457:340:0;-1:-1:-1;;;;;393:6867:4;;;;10558:19:0;;393:6867:4;;;10636:21:0;;;393:6867:4;;;10758:32:0;393:6867:4;;10575:1:0;393:6867:4;;;;;10575:1:0;393:6867:4;;10575:1:0;393:6867:4;;;;;10575:1:0;393:6867:4;;;;;;;10758:32:0;10457:340::o;393:6867:4:-;;;-1:-1:-1;;;393:6867:4;;;;;;;;;;;;;;;;;-1:-1:-1;;;393:6867:4;;;;;;;;;;-1:-1:-1;;;393:6867:4;;;;;;;;;;;;;;;;;-1:-1:-1;;;393:6867:4;;;;;;;;;;;:::o;:::-;;;-1:-1:-1;;;393:6867:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;:::o;8520:535:0:-;-1:-1:-1;;;;;393:6867:4;;8603:21:0;;393:6867:4;;8952:37:0;393:6867:4;;8731:22:0;8622:1;393:6867:4;8731:22:0;393:6867:4;8731:22:0;:::i;:::-;;393:6867:4;;;;;;;;;;;;;;;;;;;;;8952:37:0;8520:535::o;393:6867:4:-;;;-1:-1:-1;;;393:6867:4;;;;;;;;;;;;;;;;;;;;6960:298;7072:5;7042:27;7052:17;393:6867;7042:27;;:::i;:::-;393:6867;7087:73;393:6867;;;;;;7139:20;393:6867;;7118:19;393:6867;;7139:20;;:::i;7087:73::-;7173:14;7170:81;;6960:298;;:::o;7170:81::-;7189:62;393:6867;7220:18;393:6867;;7189:62;:::i;:::-;6960:298::o;1838:1846:5:-;1954:1;1950:5;;;;393:6867:4;;;6607:4;;2075:10:5;;;6607:4:4;;2112:1:5;2071:321;;2540:38;393:6867:4;;;-1:-1:-1;;;551:11:5;;;547:75;;2071:321;640:5;635:10;;;631:72;;2071:321;721:5;716:10;;;712:72;;2071:321;802:5;797:10;;;793:72;;2071:321;883:4;878:9;;;874:69;;2071:321;961:4;956:9;;;952:69;;2071:321;1039:4;1034:9;;;1030:69;;2071:321;1117:4;-1:-1:-1;1112:9:5;1108:92;;2071:321;393:6867:4;;;;;;2970:10:5;;;;2966:69;;3230:32;6644:4:4;3225:415:5;3264:9;;;;;;393:6867:4;;;;;1838:1846:5;:::o;3275:11::-;393:6867:4;;;;;3405:14:5;393:6867:4;3405:14:5;;;3401:225;;3275:11;393:6867:4;;3230:32:5;;;3401:225;393:6867:4;;;;;;;3401:225:5;;;2966:69;393:6867:4;;;;;;;;3000:20:5;:::o;1108:92::-;393:6867:4;;;;;;;1108:92:5;393:6867:4;-1:-1:-1;;;393:6867:4;;;1039:4:5;393:6867:4;;;;1030:69:5;1065:1;393:6867:4;;1065:1:5;393:6867:4;;;;;;;1080:8:5;1030:69;;393:6867:4;-1:-1:-1;;;393:6867:4;;;1039:4:5;393:6867:4;;;;952:69:5;987:1;393:6867:4;;987:1:5;393:6867:4;;;;;;;952:69:5;;;874;909:1;393:6867:4;;909:1:5;393:6867:4;;;;;;;874:69:5;;;793:72;829:2;393:6867:4;;829:2:5;393:6867:4;;;;;;;793:72:5;;;712;748:2;393:6867:4;;748:2:5;393:6867:4;;;;;;;712:72:5;;;631;667:2;393:6867:4;;667:2:5;393:6867:4;;;;;;;631:72:5;;;547:75;556:6;;-1:-1:-1;393:6867:4;;547:75:5;;2071:321;-1:-1:-1;;11264:17:0;2279:99:5;;;;;;2071:321;;1588:214:6;393:6867:4;;;;;;;;;;;;;;;;;;;1710:1:6;393:6867:4;;;;;;;;;1678:35:6;;393:6867:4;;;;;;;;;;;;;;;;;;-1:-1:-1;;393:6867:4;;;;;:::i;:::-;;;;;;;;;;;;1588:214:6:o;393:6867:4:-;;;-1:-1:-1;;;393:6867:4;;;;;;;;;;;;;;;;;-1:-1:-1;;;393:6867:4;;;;;;;;-1:-1:-1;;;393:6867:4;;;;;;;;;;;;

Swarm Source

ipfs://cac9a4b804f7492f76ed40e8e1d0bdd7608244db59460f2b5d93032e9759f3f0

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.