ETH Price: $1,903.53 (-1.22%)

Contract

0x12AA089d5425aF22FFC34Ff86987caaf1091824f
 

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Approve164352082025-03-11 8:03:515 days ago1741680231IN
0x12AA089d...f1091824f
0 ETH00.00014709
Approve156569302025-02-21 7:41:1523 days ago1740123675IN
0x12AA089d...f1091824f
0 ETH0.000000010.0004168
Approve155373852025-02-18 13:16:2526 days ago1739884585IN
0x12AA089d...f1091824f
0 ETH0.000000030.00135311
Permit153565542025-02-14 8:48:4330 days ago1739522923IN
0x12AA089d...f1091824f
0 ETH0.000000170.00329621
Approve152265512025-02-11 8:35:1733 days ago1739262917IN
0x12AA089d...f1091824f
0 ETH0.000000130.00291145
Transfer150017962025-02-06 3:43:2739 days ago1738813407IN
0x12AA089d...f1091824f
0 ETH0.000000130.00247477
Transfer150017742025-02-06 3:42:4339 days ago1738813363IN
0x12AA089d...f1091824f
0 ETH0.000000140.00248656
Approve149979922025-02-06 1:36:3939 days ago1738805799IN
0x12AA089d...f1091824f
0 ETH0.000000070.00299675
Approve149978702025-02-06 1:32:3539 days ago1738805555IN
0x12AA089d...f1091824f
0 ETH0.000000070.00293822
Transfer147865022025-02-01 4:06:5944 days ago1738382819IN
0x12AA089d...f1091824f
0 ETH0.000000010.00022968
Approve146494332025-01-28 23:58:0147 days ago1738108681IN
0x12AA089d...f1091824f
0 ETH0.000000060.00136255
Approve145062512025-01-25 16:25:1750 days ago1737822317IN
0x12AA089d...f1091824f
0 ETH0.000000040.00107702
Approve144532402025-01-24 10:58:1551 days ago1737716295IN
0x12AA089d...f1091824f
0 ETH0.000000210.0087558
Approve144479722025-01-24 8:02:3951 days ago1737705759IN
0x12AA089d...f1091824f
0 ETH0.000000170.00723844
Approve144468562025-01-24 7:25:2751 days ago1737703527IN
0x12AA089d...f1091824f
0 ETH0.000000180.0078
Permit133257792024-12-29 8:36:1377 days ago1735461373IN
0x12AA089d...f1091824f
0 ETH0.000000150.0042299
Approve133160222024-12-29 3:10:5978 days ago1735441859IN
0x12AA089d...f1091824f
0 ETH0.000000040.00196253
Approve131355972024-12-24 22:56:4982 days ago1735081009IN
0x12AA089d...f1091824f
0 ETH0.000000010.00038526
Approve131355912024-12-24 22:56:3782 days ago1735080997IN
0x12AA089d...f1091824f
0 ETH00.00038806
Approve129451022024-12-20 13:06:5986 days ago1734700019IN
0x12AA089d...f1091824f
0 ETH0.000000030.00136996
Approve125704632024-12-11 20:59:0195 days ago1733950741IN
0x12AA089d...f1091824f
0 ETH0.000000120.00261255
Approve124860182024-12-09 22:04:1197 days ago1733781851IN
0x12AA089d...f1091824f
0 ETH0.000000110.00255853
Permit123266372024-12-06 5:31:29100 days ago1733463089IN
0x12AA089d...f1091824f
0 ETH0.000000130.00254123
Permit122374302024-12-04 3:57:55103 days ago1733284675IN
0x12AA089d...f1091824f
0 ETH0.000000040.00086381
Approve122308482024-12-04 0:18:31103 days ago1733271511IN
0x12AA089d...f1091824f
0 ETH0.000000080.00182399
View all transactions

Latest 1 internal transaction

Parent Transaction Hash Block From To
40580732024-05-28 19:52:41292 days ago1716925961
0x12AA089d...f1091824f
 Contract Creation0 ETH

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BLASTARDIO

Compiler Version
v0.8.25+commit.b61c2a91

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 4 : BLASTARDIO.sol
// SPDX-License-Identifier: UNLICENSED
//                             ,,,
//  ______ _           _      (o o)     _ _
//  | ___ \ |         | |-ooO--(_)--Ooo| (_)
//  | |_/ / | __ _ ___| |_ __ _ _ __ __| |_  ___
//  | ___ \ |/ _` / __| __/ _` | '__/ _` | |/ _ \
//  | |_/ / | (_| \__ \ || (_| | | | (_| | | (_) |
//  \____/|_|\__,_|___/\__\__,_|_|  \__,_|_|\___/
//
pragma solidity ^0.8.21;

import {ERC20} from "solady/tokens/ERC20.sol";
import {Ownable} from "solady/auth/Ownable.sol";
import {IBlast} from "src/IBlast.sol";

contract BLASTARDIO is ERC20, Ownable {
    struct Fee {
        uint128 buyBPS;
        uint128 sellBPS;
    }

    Fee public fees = Fee(3_00, 3_00); // 300 BPS = 3%
    mapping(address => bool) public pools;
    address public rewardWallet;

    uint256 private constant _BALANCE_SLOT_SEED = 0x87a211a2;
    uint256 private constant _ALLOWANCE_SLOT_SEED = 0x7f5e9f20;

    IBlast internal constant BLAST = IBlast(0x4300000000000000000000000000000000000002);
    uint256 internal constant _supply = 1_000_000_000 ether;
    uint128 internal constant maxFeeBPS = 5_00; // 5% maximum fee

    event PoolAdded(address pool);
    event PoolRemoved(address pool);
    event FeesUpdated(uint128 buyBPS, uint128 sellBPS);

    error ExcessiveBps();

    constructor(address airdrop) {
        _initializeOwner(msg.sender);
        rewardWallet = address(new RewardWallet(BLASTARDIO(address(this)), airdrop));

        //The airdrop gets 10% of the supply
        uint256 airdropAllocation = _supply * 10 / 100;

        //Mint the airdrop allocation
        _mint(airdrop, airdropAllocation);

        //Mint remaining 85% of the supply to lock in the pair
        _mint(msg.sender, _supply - airdropAllocation);

        // This sets the Gas Mode to claimable
        BLAST.configureClaimableGas();
    }

    function name() public pure override returns (string memory) {
        return "BLASTARDIO";
    }

    function symbol() public pure override returns (string memory) {
        return "BTARD";
    }

    function transfer(address to, uint256 amount) public override returns (bool) {
        uint256 tax = _calculateTax(msg.sender, to, amount);
        _transferTax(msg.sender, tax);
        return super.transfer(to, amount - tax);
    }

    function transferFrom(address from, address to, uint256 amount) public override returns (bool) {
        /// @solidity memory-safe-assembly
        assembly {
            let from_ := shl(96, from)
            // Compute the allowance slot and load its value.
            mstore(0x20, caller())
            mstore(0x0c, or(from_, _ALLOWANCE_SLOT_SEED))
            let allowanceSlot := keccak256(0x0c, 0x34)
            let allowance_ := sload(allowanceSlot)
            // If the allowance is not the maximum uint256 value.
            if add(allowance_, 1) {
                // Revert if the amount to be transferred exceeds the allowance.
                if gt(amount, allowance_) {
                    mstore(0x00, 0x13be252b) // `InsufficientAllowance()`.
                    revert(0x1c, 0x04)
                }
                // Subtract and store the updated allowance.
                sstore(allowanceSlot, sub(allowance_, amount))
            }
        }

        uint256 tax = _calculateTax(from, to, amount);

        //Transfer the taxed amount from the source to the reward wallet
        _transferTax(from, tax);

        _transfer(from, to, amount - tax);

        return true;
    }

    function rewardWalletBalance() external view returns (uint256) {
        return balanceOf(rewardWallet);
    }

    function claimGas() external {
        BLAST.claimMaxGas(address(this), owner());
    }

    function addPool(address pool) external onlyOwner {
        pools[pool] = true;
        emit PoolAdded(pool);
    }

    function removePool(address pool) external onlyOwner {
        pools[pool] = false;
        emit PoolRemoved(pool);
    }

    function setFees(uint128 buyBPS, uint128 sellBPS) external onlyOwner {
        if (buyBPS > maxFeeBPS || sellBPS > maxFeeBPS) {
            revert ExcessiveBps();
        }
        fees = Fee(buyBPS, sellBPS);
        emit FeesUpdated(buyBPS, sellBPS);
    }

    function updateRewardWallet(address newRewardWallet) external {
        require(msg.sender == rewardWallet || msg.sender == owner(), "BLASTARDIO: FORBIDDEN");
        rewardWallet = newRewardWallet;
    }

    function _calculateTax(address from, address to, uint256 amount) internal view returns (uint256 tax) {
        //If transfer from a pool, apply buy tax
        if (pools[from]) {
            tax = _applyBPS(amount, fees.buyBPS);
        } //If transfer to a pool, apply sell tax
        else if (pools[to]) {
            //Transfer the taxed amount from the destination to the reward wallet
            tax = _applyBPS(amount, fees.sellBPS);
        }
    }

    function _applyBPS(uint256 amount, uint256 bps) internal pure returns (uint256) {
        return amount * bps / 10_000; // 10,000 BPS = 100%
    }

    function _transferTax(address from, uint256 amount) internal {
        address to = rewardWallet;
        assembly {
            let from_ := shl(96, from)
            // Compute the balance slot and load its amount.
            mstore(0x0c, or(from_, _BALANCE_SLOT_SEED))
            let fromBalanceSlot := keccak256(0x0c, 0x20)
            let fromBalance := sload(fromBalanceSlot)
            // Revert if insufficient balance.
            if gt(amount, fromBalance) {
                mstore(0x00, 0xf4d678b8) // `InsufficientBalance()`.
                revert(0x1c, 0x04)
            }
            // Subtract and store the updated balance.
            sstore(fromBalanceSlot, sub(fromBalance, amount))
            // Compute the balance slot of `to`.
            mstore(0x00, to)
            let toBalanceSlot := keccak256(0x0c, 0x20)
            // Add and store the updated balance of `to`.
            // Will not overflow because the sum of all user balances
            // cannot exceed the maximum uint256 value.
            sstore(toBalanceSlot, add(sload(toBalanceSlot), amount))
        }
    }
}

contract RewardWallet is Ownable {
    BLASTARDIO public btard;

    constructor(BLASTARDIO _btard, address owner) {
        _initializeOwner(owner);
        btard = _btard;
    }

    function withdraw() external onlyOwner {
        btard.transfer(owner(), btard.balanceOf(address(this)));
    }

    function changeRewardWalletContract(RewardWallet newWallet) external onlyOwner {
        btard.updateRewardWallet(address(newWallet));
    }
}

File 2 of 4 : ERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

/// @notice Simple ERC20 + EIP-2612 implementation.
/// @author Solady (https://github.com/vectorized/solady/blob/main/src/tokens/ERC20.sol)
/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC20.sol)
/// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol)
///
/// @dev Note:
/// - The ERC20 standard allows minting and transferring to and from the zero address,
///   minting and transferring zero tokens, as well as self-approvals.
///   For performance, this implementation WILL NOT revert for such actions.
///   Please add any checks with overrides if desired.
/// - The `permit` function uses the ecrecover precompile (0x1).
///
/// If you are overriding:
/// - NEVER violate the ERC20 invariant:
///   the total sum of all balances must be equal to `totalSupply()`.
/// - Check that the overridden function is actually used in the function you want to
///   change the behavior of. Much of the code has been manually inlined for performance.
abstract contract ERC20 {
    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                       CUSTOM ERRORS                        */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev The total supply has overflowed.
    error TotalSupplyOverflow();

    /// @dev The allowance has overflowed.
    error AllowanceOverflow();

    /// @dev The allowance has underflowed.
    error AllowanceUnderflow();

    /// @dev Insufficient balance.
    error InsufficientBalance();

    /// @dev Insufficient allowance.
    error InsufficientAllowance();

    /// @dev The permit is invalid.
    error InvalidPermit();

    /// @dev The permit has expired.
    error PermitExpired();

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                           EVENTS                           */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Emitted when `amount` tokens is transferred from `from` to `to`.
    event Transfer(address indexed from, address indexed to, uint256 amount);

    /// @dev Emitted when `amount` tokens is approved by `owner` to be used by `spender`.
    event Approval(address indexed owner, address indexed spender, uint256 amount);

    /// @dev `keccak256(bytes("Transfer(address,address,uint256)"))`.
    uint256 private constant _TRANSFER_EVENT_SIGNATURE =
        0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;

    /// @dev `keccak256(bytes("Approval(address,address,uint256)"))`.
    uint256 private constant _APPROVAL_EVENT_SIGNATURE =
        0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925;

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                          STORAGE                           */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev The storage slot for the total supply.
    uint256 private constant _TOTAL_SUPPLY_SLOT = 0x05345cdf77eb68f44c;

    /// @dev The balance slot of `owner` is given by:
    /// ```
    ///     mstore(0x0c, _BALANCE_SLOT_SEED)
    ///     mstore(0x00, owner)
    ///     let balanceSlot := keccak256(0x0c, 0x20)
    /// ```
    uint256 private constant _BALANCE_SLOT_SEED = 0x87a211a2;

    /// @dev The allowance slot of (`owner`, `spender`) is given by:
    /// ```
    ///     mstore(0x20, spender)
    ///     mstore(0x0c, _ALLOWANCE_SLOT_SEED)
    ///     mstore(0x00, owner)
    ///     let allowanceSlot := keccak256(0x0c, 0x34)
    /// ```
    uint256 private constant _ALLOWANCE_SLOT_SEED = 0x7f5e9f20;

    /// @dev The nonce slot of `owner` is given by:
    /// ```
    ///     mstore(0x0c, _NONCES_SLOT_SEED)
    ///     mstore(0x00, owner)
    ///     let nonceSlot := keccak256(0x0c, 0x20)
    /// ```
    uint256 private constant _NONCES_SLOT_SEED = 0x38377508;

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                         CONSTANTS                          */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev `(_NONCES_SLOT_SEED << 16) | 0x1901`.
    uint256 private constant _NONCES_SLOT_SEED_WITH_SIGNATURE_PREFIX = 0x383775081901;

    /// @dev `keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)")`.
    bytes32 private constant _DOMAIN_TYPEHASH =
        0x8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f;

    /// @dev `keccak256("1")`.
    bytes32 private constant _VERSION_HASH =
        0xc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6;

    /// @dev `keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)")`.
    bytes32 private constant _PERMIT_TYPEHASH =
        0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9;

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                       ERC20 METADATA                       */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Returns the name of the token.
    function name() public view virtual returns (string memory);

    /// @dev Returns the symbol of the token.
    function symbol() public view virtual returns (string memory);

    /// @dev Returns the decimals places of the token.
    function decimals() public view virtual returns (uint8) {
        return 18;
    }

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                           ERC20                            */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Returns the amount of tokens in existence.
    function totalSupply() public view virtual returns (uint256 result) {
        /// @solidity memory-safe-assembly
        assembly {
            result := sload(_TOTAL_SUPPLY_SLOT)
        }
    }

    /// @dev Returns the amount of tokens owned by `owner`.
    function balanceOf(address owner) public view virtual returns (uint256 result) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x0c, _BALANCE_SLOT_SEED)
            mstore(0x00, owner)
            result := sload(keccak256(0x0c, 0x20))
        }
    }

    /// @dev Returns the amount of tokens that `spender` can spend on behalf of `owner`.
    function allowance(address owner, address spender)
        public
        view
        virtual
        returns (uint256 result)
    {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x20, spender)
            mstore(0x0c, _ALLOWANCE_SLOT_SEED)
            mstore(0x00, owner)
            result := sload(keccak256(0x0c, 0x34))
        }
    }

    /// @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
    ///
    /// Emits a {Approval} event.
    function approve(address spender, uint256 amount) public virtual returns (bool) {
        /// @solidity memory-safe-assembly
        assembly {
            // Compute the allowance slot and store the amount.
            mstore(0x20, spender)
            mstore(0x0c, _ALLOWANCE_SLOT_SEED)
            mstore(0x00, caller())
            sstore(keccak256(0x0c, 0x34), amount)
            // Emit the {Approval} event.
            mstore(0x00, amount)
            log3(0x00, 0x20, _APPROVAL_EVENT_SIGNATURE, caller(), shr(96, mload(0x2c)))
        }
        return true;
    }

    /// @dev Transfer `amount` tokens from the caller to `to`.
    ///
    /// Requirements:
    /// - `from` must at least have `amount`.
    ///
    /// Emits a {Transfer} event.
    function transfer(address to, uint256 amount) public virtual returns (bool) {
        _beforeTokenTransfer(msg.sender, to, amount);
        /// @solidity memory-safe-assembly
        assembly {
            // Compute the balance slot and load its value.
            mstore(0x0c, _BALANCE_SLOT_SEED)
            mstore(0x00, caller())
            let fromBalanceSlot := keccak256(0x0c, 0x20)
            let fromBalance := sload(fromBalanceSlot)
            // Revert if insufficient balance.
            if gt(amount, fromBalance) {
                mstore(0x00, 0xf4d678b8) // `InsufficientBalance()`.
                revert(0x1c, 0x04)
            }
            // Subtract and store the updated balance.
            sstore(fromBalanceSlot, sub(fromBalance, amount))
            // Compute the balance slot of `to`.
            mstore(0x00, to)
            let toBalanceSlot := keccak256(0x0c, 0x20)
            // Add and store the updated balance of `to`.
            // Will not overflow because the sum of all user balances
            // cannot exceed the maximum uint256 value.
            sstore(toBalanceSlot, add(sload(toBalanceSlot), amount))
            // Emit the {Transfer} event.
            mstore(0x20, amount)
            log3(0x20, 0x20, _TRANSFER_EVENT_SIGNATURE, caller(), shr(96, mload(0x0c)))
        }
        _afterTokenTransfer(msg.sender, to, amount);
        return true;
    }

    /// @dev Transfers `amount` tokens from `from` to `to`.
    ///
    /// Note: Does not update the allowance if it is the maximum uint256 value.
    ///
    /// Requirements:
    /// - `from` must at least have `amount`.
    /// - The caller must have at least `amount` of allowance to transfer the tokens of `from`.
    ///
    /// Emits a {Transfer} event.
    function transferFrom(address from, address to, uint256 amount) public virtual returns (bool) {
        _beforeTokenTransfer(from, to, amount);
        /// @solidity memory-safe-assembly
        assembly {
            let from_ := shl(96, from)
            // Compute the allowance slot and load its value.
            mstore(0x20, caller())
            mstore(0x0c, or(from_, _ALLOWANCE_SLOT_SEED))
            let allowanceSlot := keccak256(0x0c, 0x34)
            let allowance_ := sload(allowanceSlot)
            // If the allowance is not the maximum uint256 value.
            if add(allowance_, 1) {
                // Revert if the amount to be transferred exceeds the allowance.
                if gt(amount, allowance_) {
                    mstore(0x00, 0x13be252b) // `InsufficientAllowance()`.
                    revert(0x1c, 0x04)
                }
                // Subtract and store the updated allowance.
                sstore(allowanceSlot, sub(allowance_, amount))
            }
            // Compute the balance slot and load its value.
            mstore(0x0c, or(from_, _BALANCE_SLOT_SEED))
            let fromBalanceSlot := keccak256(0x0c, 0x20)
            let fromBalance := sload(fromBalanceSlot)
            // Revert if insufficient balance.
            if gt(amount, fromBalance) {
                mstore(0x00, 0xf4d678b8) // `InsufficientBalance()`.
                revert(0x1c, 0x04)
            }
            // Subtract and store the updated balance.
            sstore(fromBalanceSlot, sub(fromBalance, amount))
            // Compute the balance slot of `to`.
            mstore(0x00, to)
            let toBalanceSlot := keccak256(0x0c, 0x20)
            // Add and store the updated balance of `to`.
            // Will not overflow because the sum of all user balances
            // cannot exceed the maximum uint256 value.
            sstore(toBalanceSlot, add(sload(toBalanceSlot), amount))
            // Emit the {Transfer} event.
            mstore(0x20, amount)
            log3(0x20, 0x20, _TRANSFER_EVENT_SIGNATURE, shr(96, from_), shr(96, mload(0x0c)))
        }
        _afterTokenTransfer(from, to, amount);
        return true;
    }

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                          EIP-2612                          */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev For more performance, override to return the constant value
    /// of `keccak256(bytes(name()))` if `name()` will never change.
    function _constantNameHash() internal view virtual returns (bytes32 result) {}

    /// @dev Returns the current nonce for `owner`.
    /// This value is used to compute the signature for EIP-2612 permit.
    function nonces(address owner) public view virtual returns (uint256 result) {
        /// @solidity memory-safe-assembly
        assembly {
            // Compute the nonce slot and load its value.
            mstore(0x0c, _NONCES_SLOT_SEED)
            mstore(0x00, owner)
            result := sload(keccak256(0x0c, 0x20))
        }
    }

    /// @dev Sets `value` as the allowance of `spender` over the tokens of `owner`,
    /// authorized by a signed approval by `owner`.
    ///
    /// Emits a {Approval} event.
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public virtual {
        bytes32 nameHash = _constantNameHash();
        //  We simply calculate it on-the-fly to allow for cases where the `name` may change.
        if (nameHash == bytes32(0)) nameHash = keccak256(bytes(name()));
        /// @solidity memory-safe-assembly
        assembly {
            // Revert if the block timestamp is greater than `deadline`.
            if gt(timestamp(), deadline) {
                mstore(0x00, 0x1a15a3cc) // `PermitExpired()`.
                revert(0x1c, 0x04)
            }
            let m := mload(0x40) // Grab the free memory pointer.
            // Clean the upper 96 bits.
            owner := shr(96, shl(96, owner))
            spender := shr(96, shl(96, spender))
            // Compute the nonce slot and load its value.
            mstore(0x0e, _NONCES_SLOT_SEED_WITH_SIGNATURE_PREFIX)
            mstore(0x00, owner)
            let nonceSlot := keccak256(0x0c, 0x20)
            let nonceValue := sload(nonceSlot)
            // Prepare the domain separator.
            mstore(m, _DOMAIN_TYPEHASH)
            mstore(add(m, 0x20), nameHash)
            mstore(add(m, 0x40), _VERSION_HASH)
            mstore(add(m, 0x60), chainid())
            mstore(add(m, 0x80), address())
            mstore(0x2e, keccak256(m, 0xa0))
            // Prepare the struct hash.
            mstore(m, _PERMIT_TYPEHASH)
            mstore(add(m, 0x20), owner)
            mstore(add(m, 0x40), spender)
            mstore(add(m, 0x60), value)
            mstore(add(m, 0x80), nonceValue)
            mstore(add(m, 0xa0), deadline)
            mstore(0x4e, keccak256(m, 0xc0))
            // Prepare the ecrecover calldata.
            mstore(0x00, keccak256(0x2c, 0x42))
            mstore(0x20, and(0xff, v))
            mstore(0x40, r)
            mstore(0x60, s)
            let t := staticcall(gas(), 1, 0, 0x80, 0x20, 0x20)
            // If the ecrecover fails, the returndatasize will be 0x00,
            // `owner` will be checked if it equals the hash at 0x00,
            // which evaluates to false (i.e. 0), and we will revert.
            // If the ecrecover succeeds, the returndatasize will be 0x20,
            // `owner` will be compared against the returned address at 0x20.
            if iszero(eq(mload(returndatasize()), owner)) {
                mstore(0x00, 0xddafbaef) // `InvalidPermit()`.
                revert(0x1c, 0x04)
            }
            // Increment and store the updated nonce.
            sstore(nonceSlot, add(nonceValue, t)) // `t` is 1 if ecrecover succeeds.
            // Compute the allowance slot and store the value.
            // The `owner` is already at slot 0x20.
            mstore(0x40, or(shl(160, _ALLOWANCE_SLOT_SEED), spender))
            sstore(keccak256(0x2c, 0x34), value)
            // Emit the {Approval} event.
            log3(add(m, 0x60), 0x20, _APPROVAL_EVENT_SIGNATURE, owner, spender)
            mstore(0x40, m) // Restore the free memory pointer.
            mstore(0x60, 0) // Restore the zero pointer.
        }
    }

    /// @dev Returns the EIP-712 domain separator for the EIP-2612 permit.
    function DOMAIN_SEPARATOR() public view virtual returns (bytes32 result) {
        bytes32 nameHash = _constantNameHash();
        //  We simply calculate it on-the-fly to allow for cases where the `name` may change.
        if (nameHash == bytes32(0)) nameHash = keccak256(bytes(name()));
        /// @solidity memory-safe-assembly
        assembly {
            let m := mload(0x40) // Grab the free memory pointer.
            mstore(m, _DOMAIN_TYPEHASH)
            mstore(add(m, 0x20), nameHash)
            mstore(add(m, 0x40), _VERSION_HASH)
            mstore(add(m, 0x60), chainid())
            mstore(add(m, 0x80), address())
            result := keccak256(m, 0xa0)
        }
    }

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                  INTERNAL MINT FUNCTIONS                   */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Mints `amount` tokens to `to`, increasing the total supply.
    ///
    /// Emits a {Transfer} event.
    function _mint(address to, uint256 amount) internal virtual {
        _beforeTokenTransfer(address(0), to, amount);
        /// @solidity memory-safe-assembly
        assembly {
            let totalSupplyBefore := sload(_TOTAL_SUPPLY_SLOT)
            let totalSupplyAfter := add(totalSupplyBefore, amount)
            // Revert if the total supply overflows.
            if lt(totalSupplyAfter, totalSupplyBefore) {
                mstore(0x00, 0xe5cfe957) // `TotalSupplyOverflow()`.
                revert(0x1c, 0x04)
            }
            // Store the updated total supply.
            sstore(_TOTAL_SUPPLY_SLOT, totalSupplyAfter)
            // Compute the balance slot and load its value.
            mstore(0x0c, _BALANCE_SLOT_SEED)
            mstore(0x00, to)
            let toBalanceSlot := keccak256(0x0c, 0x20)
            // Add and store the updated balance.
            sstore(toBalanceSlot, add(sload(toBalanceSlot), amount))
            // Emit the {Transfer} event.
            mstore(0x20, amount)
            log3(0x20, 0x20, _TRANSFER_EVENT_SIGNATURE, 0, shr(96, mload(0x0c)))
        }
        _afterTokenTransfer(address(0), to, amount);
    }

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                  INTERNAL BURN FUNCTIONS                   */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Burns `amount` tokens from `from`, reducing the total supply.
    ///
    /// Emits a {Transfer} event.
    function _burn(address from, uint256 amount) internal virtual {
        _beforeTokenTransfer(from, address(0), amount);
        /// @solidity memory-safe-assembly
        assembly {
            // Compute the balance slot and load its value.
            mstore(0x0c, _BALANCE_SLOT_SEED)
            mstore(0x00, from)
            let fromBalanceSlot := keccak256(0x0c, 0x20)
            let fromBalance := sload(fromBalanceSlot)
            // Revert if insufficient balance.
            if gt(amount, fromBalance) {
                mstore(0x00, 0xf4d678b8) // `InsufficientBalance()`.
                revert(0x1c, 0x04)
            }
            // Subtract and store the updated balance.
            sstore(fromBalanceSlot, sub(fromBalance, amount))
            // Subtract and store the updated total supply.
            sstore(_TOTAL_SUPPLY_SLOT, sub(sload(_TOTAL_SUPPLY_SLOT), amount))
            // Emit the {Transfer} event.
            mstore(0x00, amount)
            log3(0x00, 0x20, _TRANSFER_EVENT_SIGNATURE, shr(96, shl(96, from)), 0)
        }
        _afterTokenTransfer(from, address(0), amount);
    }

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                INTERNAL TRANSFER FUNCTIONS                 */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Moves `amount` of tokens from `from` to `to`.
    function _transfer(address from, address to, uint256 amount) internal virtual {
        _beforeTokenTransfer(from, to, amount);
        /// @solidity memory-safe-assembly
        assembly {
            let from_ := shl(96, from)
            // Compute the balance slot and load its value.
            mstore(0x0c, or(from_, _BALANCE_SLOT_SEED))
            let fromBalanceSlot := keccak256(0x0c, 0x20)
            let fromBalance := sload(fromBalanceSlot)
            // Revert if insufficient balance.
            if gt(amount, fromBalance) {
                mstore(0x00, 0xf4d678b8) // `InsufficientBalance()`.
                revert(0x1c, 0x04)
            }
            // Subtract and store the updated balance.
            sstore(fromBalanceSlot, sub(fromBalance, amount))
            // Compute the balance slot of `to`.
            mstore(0x00, to)
            let toBalanceSlot := keccak256(0x0c, 0x20)
            // Add and store the updated balance of `to`.
            // Will not overflow because the sum of all user balances
            // cannot exceed the maximum uint256 value.
            sstore(toBalanceSlot, add(sload(toBalanceSlot), amount))
            // Emit the {Transfer} event.
            mstore(0x20, amount)
            log3(0x20, 0x20, _TRANSFER_EVENT_SIGNATURE, shr(96, from_), shr(96, mload(0x0c)))
        }
        _afterTokenTransfer(from, to, amount);
    }

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                INTERNAL ALLOWANCE FUNCTIONS                */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Updates the allowance of `owner` for `spender` based on spent `amount`.
    function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {
        /// @solidity memory-safe-assembly
        assembly {
            // Compute the allowance slot and load its value.
            mstore(0x20, spender)
            mstore(0x0c, _ALLOWANCE_SLOT_SEED)
            mstore(0x00, owner)
            let allowanceSlot := keccak256(0x0c, 0x34)
            let allowance_ := sload(allowanceSlot)
            // If the allowance is not the maximum uint256 value.
            if add(allowance_, 1) {
                // Revert if the amount to be transferred exceeds the allowance.
                if gt(amount, allowance_) {
                    mstore(0x00, 0x13be252b) // `InsufficientAllowance()`.
                    revert(0x1c, 0x04)
                }
                // Subtract and store the updated allowance.
                sstore(allowanceSlot, sub(allowance_, amount))
            }
        }
    }

    /// @dev Sets `amount` as the allowance of `spender` over the tokens of `owner`.
    ///
    /// Emits a {Approval} event.
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        /// @solidity memory-safe-assembly
        assembly {
            let owner_ := shl(96, owner)
            // Compute the allowance slot and store the amount.
            mstore(0x20, spender)
            mstore(0x0c, or(owner_, _ALLOWANCE_SLOT_SEED))
            sstore(keccak256(0x0c, 0x34), amount)
            // Emit the {Approval} event.
            mstore(0x00, amount)
            log3(0x00, 0x20, _APPROVAL_EVENT_SIGNATURE, shr(96, owner_), shr(96, mload(0x2c)))
        }
    }

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                     HOOKS TO OVERRIDE                      */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Hook that is called before any transfer of tokens.
    /// This includes minting and burning.
    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.
    function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}
}

File 3 of 4 : Ownable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

/// @notice Simple single owner authorization mixin.
/// @author Solady (https://github.com/vectorized/solady/blob/main/src/auth/Ownable.sol)
///
/// @dev Note:
/// This implementation does NOT auto-initialize the owner to `msg.sender`.
/// You MUST call the `_initializeOwner` in the constructor / initializer.
///
/// While the ownable portion follows
/// [EIP-173](https://eips.ethereum.org/EIPS/eip-173) for compatibility,
/// the nomenclature for the 2-step ownership handover may be unique to this codebase.
abstract contract Ownable {
    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                       CUSTOM ERRORS                        */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev The caller is not authorized to call the function.
    error Unauthorized();

    /// @dev The `newOwner` cannot be the zero address.
    error NewOwnerIsZeroAddress();

    /// @dev The `pendingOwner` does not have a valid handover request.
    error NoHandoverRequest();

    /// @dev Cannot double-initialize.
    error AlreadyInitialized();

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                           EVENTS                           */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev The ownership is transferred from `oldOwner` to `newOwner`.
    /// This event is intentionally kept the same as OpenZeppelin's Ownable to be
    /// compatible with indexers and [EIP-173](https://eips.ethereum.org/EIPS/eip-173),
    /// despite it not being as lightweight as a single argument event.
    event OwnershipTransferred(address indexed oldOwner, address indexed newOwner);

    /// @dev An ownership handover to `pendingOwner` has been requested.
    event OwnershipHandoverRequested(address indexed pendingOwner);

    /// @dev The ownership handover to `pendingOwner` has been canceled.
    event OwnershipHandoverCanceled(address indexed pendingOwner);

    /// @dev `keccak256(bytes("OwnershipTransferred(address,address)"))`.
    uint256 private constant _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE =
        0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0;

    /// @dev `keccak256(bytes("OwnershipHandoverRequested(address)"))`.
    uint256 private constant _OWNERSHIP_HANDOVER_REQUESTED_EVENT_SIGNATURE =
        0xdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d;

    /// @dev `keccak256(bytes("OwnershipHandoverCanceled(address)"))`.
    uint256 private constant _OWNERSHIP_HANDOVER_CANCELED_EVENT_SIGNATURE =
        0xfa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92;

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                          STORAGE                           */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev The owner slot is given by:
    /// `bytes32(~uint256(uint32(bytes4(keccak256("_OWNER_SLOT_NOT")))))`.
    /// It is intentionally chosen to be a high value
    /// to avoid collision with lower slots.
    /// The choice of manual storage layout is to enable compatibility
    /// with both regular and upgradeable contracts.
    bytes32 internal constant _OWNER_SLOT =
        0xffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927;

    /// The ownership handover slot of `newOwner` is given by:
    /// ```
    ///     mstore(0x00, or(shl(96, user), _HANDOVER_SLOT_SEED))
    ///     let handoverSlot := keccak256(0x00, 0x20)
    /// ```
    /// It stores the expiry timestamp of the two-step ownership handover.
    uint256 private constant _HANDOVER_SLOT_SEED = 0x389a75e1;

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                     INTERNAL FUNCTIONS                     */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Override to return true to make `_initializeOwner` prevent double-initialization.
    function _guardInitializeOwner() internal pure virtual returns (bool guard) {}

    /// @dev Initializes the owner directly without authorization guard.
    /// This function must be called upon initialization,
    /// regardless of whether the contract is upgradeable or not.
    /// This is to enable generalization to both regular and upgradeable contracts,
    /// and to save gas in case the initial owner is not the caller.
    /// For performance reasons, this function will not check if there
    /// is an existing owner.
    function _initializeOwner(address newOwner) internal virtual {
        if (_guardInitializeOwner()) {
            /// @solidity memory-safe-assembly
            assembly {
                let ownerSlot := _OWNER_SLOT
                if sload(ownerSlot) {
                    mstore(0x00, 0x0dc149f0) // `AlreadyInitialized()`.
                    revert(0x1c, 0x04)
                }
                // Clean the upper 96 bits.
                newOwner := shr(96, shl(96, newOwner))
                // Store the new value.
                sstore(ownerSlot, or(newOwner, shl(255, iszero(newOwner))))
                // Emit the {OwnershipTransferred} event.
                log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, 0, newOwner)
            }
        } else {
            /// @solidity memory-safe-assembly
            assembly {
                // Clean the upper 96 bits.
                newOwner := shr(96, shl(96, newOwner))
                // Store the new value.
                sstore(_OWNER_SLOT, newOwner)
                // Emit the {OwnershipTransferred} event.
                log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, 0, newOwner)
            }
        }
    }

    /// @dev Sets the owner directly without authorization guard.
    function _setOwner(address newOwner) internal virtual {
        if (_guardInitializeOwner()) {
            /// @solidity memory-safe-assembly
            assembly {
                let ownerSlot := _OWNER_SLOT
                // Clean the upper 96 bits.
                newOwner := shr(96, shl(96, newOwner))
                // Emit the {OwnershipTransferred} event.
                log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, sload(ownerSlot), newOwner)
                // Store the new value.
                sstore(ownerSlot, or(newOwner, shl(255, iszero(newOwner))))
            }
        } else {
            /// @solidity memory-safe-assembly
            assembly {
                let ownerSlot := _OWNER_SLOT
                // Clean the upper 96 bits.
                newOwner := shr(96, shl(96, newOwner))
                // Emit the {OwnershipTransferred} event.
                log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, sload(ownerSlot), newOwner)
                // Store the new value.
                sstore(ownerSlot, newOwner)
            }
        }
    }

    /// @dev Throws if the sender is not the owner.
    function _checkOwner() internal view virtual {
        /// @solidity memory-safe-assembly
        assembly {
            // If the caller is not the stored owner, revert.
            if iszero(eq(caller(), sload(_OWNER_SLOT))) {
                mstore(0x00, 0x82b42900) // `Unauthorized()`.
                revert(0x1c, 0x04)
            }
        }
    }

    /// @dev Returns how long a two-step ownership handover is valid for in seconds.
    /// Override to return a different value if needed.
    /// Made internal to conserve bytecode. Wrap it in a public function if needed.
    function _ownershipHandoverValidFor() internal view virtual returns (uint64) {
        return 48 * 3600;
    }

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                  PUBLIC UPDATE FUNCTIONS                   */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Allows the owner to transfer the ownership to `newOwner`.
    function transferOwnership(address newOwner) public payable virtual onlyOwner {
        /// @solidity memory-safe-assembly
        assembly {
            if iszero(shl(96, newOwner)) {
                mstore(0x00, 0x7448fbae) // `NewOwnerIsZeroAddress()`.
                revert(0x1c, 0x04)
            }
        }
        _setOwner(newOwner);
    }

    /// @dev Allows the owner to renounce their ownership.
    function renounceOwnership() public payable virtual onlyOwner {
        _setOwner(address(0));
    }

    /// @dev Request a two-step ownership handover to the caller.
    /// The request will automatically expire in 48 hours (172800 seconds) by default.
    function requestOwnershipHandover() public payable virtual {
        unchecked {
            uint256 expires = block.timestamp + _ownershipHandoverValidFor();
            /// @solidity memory-safe-assembly
            assembly {
                // Compute and set the handover slot to `expires`.
                mstore(0x0c, _HANDOVER_SLOT_SEED)
                mstore(0x00, caller())
                sstore(keccak256(0x0c, 0x20), expires)
                // Emit the {OwnershipHandoverRequested} event.
                log2(0, 0, _OWNERSHIP_HANDOVER_REQUESTED_EVENT_SIGNATURE, caller())
            }
        }
    }

    /// @dev Cancels the two-step ownership handover to the caller, if any.
    function cancelOwnershipHandover() public payable virtual {
        /// @solidity memory-safe-assembly
        assembly {
            // Compute and set the handover slot to 0.
            mstore(0x0c, _HANDOVER_SLOT_SEED)
            mstore(0x00, caller())
            sstore(keccak256(0x0c, 0x20), 0)
            // Emit the {OwnershipHandoverCanceled} event.
            log2(0, 0, _OWNERSHIP_HANDOVER_CANCELED_EVENT_SIGNATURE, caller())
        }
    }

    /// @dev Allows the owner to complete the two-step ownership handover to `pendingOwner`.
    /// Reverts if there is no existing ownership handover requested by `pendingOwner`.
    function completeOwnershipHandover(address pendingOwner) public payable virtual onlyOwner {
        /// @solidity memory-safe-assembly
        assembly {
            // Compute and set the handover slot to 0.
            mstore(0x0c, _HANDOVER_SLOT_SEED)
            mstore(0x00, pendingOwner)
            let handoverSlot := keccak256(0x0c, 0x20)
            // If the handover does not exist, or has expired.
            if gt(timestamp(), sload(handoverSlot)) {
                mstore(0x00, 0x6f5e8818) // `NoHandoverRequest()`.
                revert(0x1c, 0x04)
            }
            // Set the handover slot to 0.
            sstore(handoverSlot, 0)
        }
        _setOwner(pendingOwner);
    }

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                   PUBLIC READ FUNCTIONS                    */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Returns the owner of the contract.
    function owner() public view virtual returns (address result) {
        /// @solidity memory-safe-assembly
        assembly {
            result := sload(_OWNER_SLOT)
        }
    }

    /// @dev Returns the expiry timestamp for the two-step ownership handover to `pendingOwner`.
    function ownershipHandoverExpiresAt(address pendingOwner)
        public
        view
        virtual
        returns (uint256 result)
    {
        /// @solidity memory-safe-assembly
        assembly {
            // Compute the handover slot.
            mstore(0x0c, _HANDOVER_SLOT_SEED)
            mstore(0x00, pendingOwner)
            // Load the handover slot.
            result := sload(keccak256(0x0c, 0x20))
        }
    }

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                         MODIFIERS                          */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Marks a function as only callable by the owner.
    modifier onlyOwner() virtual {
        _checkOwner();
        _;
    }
}

File 4 of 4 : IBlast.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.21;

interface IBlast {
    // Note: the full interface for IBlast can be found below
    function configureClaimableGas() external;
    function claimMaxGas(address contractAddress, address recipient) external returns (uint256);
}

Settings
{
  "remappings": [
    "forge-std/=lib/forge-std/src/",
    "solady/=lib/solady/src/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "viaIR": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"airdrop","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AllowanceOverflow","type":"error"},{"inputs":[],"name":"AllowanceUnderflow","type":"error"},{"inputs":[],"name":"AlreadyInitialized","type":"error"},{"inputs":[],"name":"ExcessiveBps","type":"error"},{"inputs":[],"name":"InsufficientAllowance","type":"error"},{"inputs":[],"name":"InsufficientBalance","type":"error"},{"inputs":[],"name":"InvalidPermit","type":"error"},{"inputs":[],"name":"NewOwnerIsZeroAddress","type":"error"},{"inputs":[],"name":"NoHandoverRequest","type":"error"},{"inputs":[],"name":"PermitExpired","type":"error"},{"inputs":[],"name":"TotalSupplyOverflow","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint128","name":"buyBPS","type":"uint128"},{"indexed":false,"internalType":"uint128","name":"sellBPS","type":"uint128"}],"name":"FeesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pendingOwner","type":"address"}],"name":"OwnershipHandoverCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pendingOwner","type":"address"}],"name":"OwnershipHandoverRequested","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"pool","type":"address"}],"name":"PoolAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"pool","type":"address"}],"name":"PoolRemoved","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":"amount","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"result","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pool","type":"address"}],"name":"addPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"result","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":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"result","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cancelOwnershipHandover","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"claimGas","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pendingOwner","type":"address"}],"name":"completeOwnershipHandover","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fees","outputs":[{"internalType":"uint128","name":"buyBPS","type":"uint128"},{"internalType":"uint128","name":"sellBPS","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"result","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"result","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pendingOwner","type":"address"}],"name":"ownershipHandoverExpiresAt","outputs":[{"internalType":"uint256","name":"result","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"pools","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pool","type":"address"}],"name":"removePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"requestOwnershipHandover","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"rewardWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardWalletBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"buyBPS","type":"uint128"},{"internalType":"uint128","name":"sellBPS","type":"uint128"}],"name":"setFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"result","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newRewardWallet","type":"address"}],"name":"updateRewardWallet","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c060405261012c608081905260a05271012c0000000000000000000000000000012c60005534801561003157600080fd5b50604051611a0f380380611a0f83398101604081905261005091610241565b61005933610179565b308160405161006790610234565b6001600160a01b03928316815291166020820152604001604051809103906000f08015801561009a573d6000803e3d6000fd5b50600280546001600160a01b0319166001600160a01b0392909216919091179055600060646100d66b033b2e3c9fd0803ce8000000600a610287565b6100e091906102a4565b90506100ec82826101b5565b61010b33610106836b033b2e3c9fd0803ce80000006102c6565b6101b5565b7343000000000000000000000000000000000000026001600160a01b0316634e606c476040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561015a57600080fd5b505af115801561016e573d6000803e3d6000fd5b5050505050506102d9565b6001600160a01b0316638b78c6d8198190558060007f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a350565b6805345cdf77eb68f44c54818101818110156101d95763e5cfe9576000526004601cfd5b806805345cdf77eb68f44c5550506387a211a2600c52816000526020600c208181540181555080602052600c5160601c60007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602080a35050565b6106048061140b83390190565b60006020828403121561025357600080fd5b81516001600160a01b038116811461026a57600080fd5b9392505050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761029e5761029e610271565b92915050565b6000826102c157634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111561029e5761029e610271565b611123806102e86000396000f3fe6080604052600436106101b75760003560e01c806395d89b41116100ec578063d914cd4b1161008a578063f2fde38b11610064578063f2fde38b14610503578063f620c31714610516578063fb75b2c714610548578063fee81cf41461056857600080fd5b8063d914cd4b1461049a578063dd62ed3e146104ba578063f04e283e146104f057600080fd5b8063a9059cbb116100c6578063a9059cbb14610425578063a95d6b1c14610445578063cc600f911461045a578063d505accf1461047a57600080fd5b806395d89b411461037c5780639af1d35a146103aa578063a4063dbc146103f557600080fd5b80633644e5151161015957806370a082311161013357806370a08231146102e1578063715018a6146103145780637ecebe001461031c5780638da5cb5b1461034f57600080fd5b80633644e515146102a45780633b7d0946146102b957806354d1f13d146102d957600080fd5b806323b872dd1161019557806323b872dd1461023e578063256929621461025e578063313ce5671461026857806332760c7a1461028457600080fd5b806306fdde03146101bc578063095ea7b3146101e757806318160ddd14610217575b600080fd5b3480156101c857600080fd5b506101d161059b565b6040516101de9190610e9f565b60405180910390f35b3480156101f357600080fd5b50610207610202366004610f0a565b6105bf565b60405190151581526020016101de565b34801561022357600080fd5b506805345cdf77eb68f44c545b6040519081526020016101de565b34801561024a57600080fd5b50610207610259366004610f34565b610613565b610266610690565b005b34801561027457600080fd5b50604051601281526020016101de565b34801561029057600080fd5b5061026661029f366004610f87565b6106e0565b3480156102b057600080fd5b50610230610792565b3480156102c557600080fd5b506102666102d4366004610fba565b61080f565b61026661086f565b3480156102ed57600080fd5b506102306102fc366004610fba565b6387a211a2600c908152600091909152602090205490565b6102666108ab565b34801561032857600080fd5b50610230610337366004610fba565b6338377508600c908152600091909152602090205490565b34801561035b57600080fd5b50638b78c6d819545b6040516001600160a01b0390911681526020016101de565b34801561038857600080fd5b50604080518082019091526005815264109510549160da1b60208201526101d1565b3480156103b657600080fd5b506000546103d5906001600160801b0380821691600160801b90041682565b604080516001600160801b039384168152929091166020830152016101de565b34801561040157600080fd5b50610207610410366004610fba565b60016020526000908152604090205460ff1681565b34801561043157600080fd5b50610207610440366004610f0a565b6108bf565b34801561045157600080fd5b506102666108f4565b34801561046657600080fd5b50610266610475366004610fba565b610983565b34801561048657600080fd5b50610266610495366004610fd5565b610a1d565b3480156104a657600080fd5b506102666104b5366004610fba565b610ba6565b3480156104c657600080fd5b506102306104d5366004611048565b602052637f5e9f20600c908152600091909152603490205490565b6102666104fe366004610fba565b610c03565b610266610511366004610fba565b610c40565b34801561052257600080fd5b506002546387a211a2600c9081526001600160a01b039091166000526020902054610230565b34801561055457600080fd5b50600254610364906001600160a01b031681565b34801561057457600080fd5b50610230610583366004610fba565b63389a75e1600c908152600091909152602090205490565b60408051808201909152600a815269424c415354415244494f60b01b602082015290565b600082602052637f5e9f20600c5233600052816034600c205581600052602c5160601c337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560206000a35060015b92915050565b60008360601b33602052637f5e9f208117600c52506034600c2080546001810115610654578084111561064e576313be252b6000526004601cfd5b83810382555b50506000610663858585610c67565b905061066f8582610ce5565b610683858561067e8487611088565b610d37565b60019150505b9392505050565b60006202a30067ffffffffffffffff164201905063389a75e1600c5233600052806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d600080a250565b6106e8610db2565b6101f46001600160801b038316118061070b57506101f46001600160801b038216115b1561072957604051634e30d5cd60e11b815260040160405180910390fd5b6040805180820182526001600160801b038481168083529084166020928301819052600160801b810282176000558351918252918101919091527fc13fa50fe44e9c6a234aac774658bcb509d76e8542204dc852531b17f21c174e910160405180910390a15050565b60008061079d61059b565b8051906020012090506040517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81528160208201527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6604082015246606082015230608082015260a081209250505090565b610817610db2565b6001600160a01b038116600081815260016020908152604091829020805460ff1916905590519182527f4106dfdaa577573db51c0ca93f766dbedfa0758faa2e7f5bcdb7c142be803c3f91015b60405180910390a150565b63389a75e1600c523360005260006020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92600080a2565b6108b3610db2565b6108bd6000610dcd565b565b6000806108cd338585610c67565b90506108d93382610ce5565b6108ec846108e78386611088565b610e0b565b949350505050565b6002604360981b0163662aa11d3061090f638b78c6d8195490565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af115801561095c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610980919061109b565b50565b6002546001600160a01b03163314806109b35750638b78c6d819546001600160a01b0316336001600160a01b0316145b6109fb5760405162461bcd60e51b8152602060048201526015602482015274212620a9aa20a92224a79d102327a92124a22222a760591b604482015260640160405180910390fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6000610a2761059b565b80519060200120905084421115610a4657631a15a3cc6000526004601cfd5b6040518860601b60601c98508760601b60601c975065383775081901600e52886000526020600c2080547f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f83528360208401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6604084015246606084015230608084015260a08320602e527f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c983528a60208401528960408401528860608401528060808401528760a084015260c08320604e526042602c206000528660ff1660205285604052846060526020806080600060015afa8b3d5114610b525763ddafbaef6000526004601cfd5b0190556303faf4f960a51b88176040526034602c2087905587897f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925602060608501a360405250506000606052505050505050565b610bae610db2565b6001600160a01b038116600081815260016020818152604092839020805460ff191690921790915590519182527f73cca62ab1b520c9715bf4e6c71e3e518c754e7148f65102f43289a7df0efea69101610864565b610c0b610db2565b63389a75e1600c52806000526020600c208054421115610c3357636f5e88186000526004601cfd5b6000905561098081610dcd565b610c48610db2565b8060601b610c5e57637448fbae6000526004601cfd5b61098081610dcd565b6001600160a01b03831660009081526001602052604081205460ff1615610ca657600054610c9f9083906001600160801b0316610e86565b9050610689565b6001600160a01b03831660009081526001602052604090205460ff1615610689576000546108ec908390600160801b90046001600160801b0316610e86565b6002546387a211a2606084901b17600c9081526020902080546001600160a01b039092169180841115610d205763f4d678b86000526004601cfd5b83900390556000526020600c208054909101905550565b8260601b6387a211a28117600c526020600c20805480841115610d625763f4d678b86000526004601cfd5b83810382555050826000526020600c208281540181555081602052600c5160601c8160601c7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602080a350505050565b638b78c6d8195433146108bd576382b429006000526004601cfd5b638b78c6d81980546001600160a01b039092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a355565b60006387a211a2600c52336000526020600c20805480841115610e365763f4d678b86000526004601cfd5b83810382555050826000526020600c208281540181555081602052600c5160601c337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602080a350600192915050565b6000612710610e9583856110b4565b61068991906110cb565b60006020808352835180602085015260005b81811015610ecd57858101830151858201604001528201610eb1565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610f0557600080fd5b919050565b60008060408385031215610f1d57600080fd5b610f2683610eee565b946020939093013593505050565b600080600060608486031215610f4957600080fd5b610f5284610eee565b9250610f6060208501610eee565b9150604084013590509250925092565b80356001600160801b0381168114610f0557600080fd5b60008060408385031215610f9a57600080fd5b610fa383610f70565b9150610fb160208401610f70565b90509250929050565b600060208284031215610fcc57600080fd5b61068982610eee565b600080600080600080600060e0888a031215610ff057600080fd5b610ff988610eee565b965061100760208901610eee565b95506040880135945060608801359350608088013560ff8116811461102b57600080fd5b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561105b57600080fd5b61106483610eee565b9150610fb160208401610eee565b634e487b7160e01b600052601160045260246000fd5b8181038181111561060d5761060d611072565b6000602082840312156110ad57600080fd5b5051919050565b808202811582820484141761060d5761060d611072565b6000826110e857634e487b7160e01b600052601260045260246000fd5b50049056fea264697066735822122092803a2428c23d7a69a0663e1636daf0b4b98338db76d3e78ec23d471aa109f464736f6c634300081900336080604052348015600f57600080fd5b50604051610604380380610604833981016040819052602c9160a9565b6033816058565b50600080546001600160a01b0319166001600160a01b039290921691909117905560de565b6001600160a01b0316638b78c6d8198190558060007f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a35b50565b6001600160a01b0381168114609257600080fd5b6000806040838503121560bb57600080fd5b825160c4816095565b602084015190925060d3816095565b809150509250929050565b610517806100ed6000396000f3fe6080604052600436106100915760003560e01c80638da5cb5b116100595780638da5cb5b14610102578063a30da73f1461011b578063f04e283e1461013b578063f2fde38b1461014e578063fee81cf41461016157600080fd5b80631f2a47371461009657806325692962146100d35780633ccfd60b146100dd57806354d1f13d146100f2578063715018a6146100fa575b600080fd5b3480156100a257600080fd5b506000546100b6906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6100db6101a2565b005b3480156100e957600080fd5b506100db6101f2565b6100db6102f6565b6100db610332565b34801561010e57600080fd5b50638b78c6d819546100b6565b34801561012757600080fd5b506100db610136366004610482565b610346565b6100db610149366004610482565b6103b0565b6100db61015c366004610482565b6103ed565b34801561016d57600080fd5b5061019461017c366004610482565b63389a75e1600c908152600091909152602090205490565b6040519081526020016100ca565b60006202a30067ffffffffffffffff164201905063389a75e1600c5233600052806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d600080a250565b6101fa610414565b6000546001600160a01b031663a9059cbb610218638b78c6d8195490565b6000546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610260573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061028491906104a6565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af11580156102cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102f391906104bf565b50565b63389a75e1600c523360005260006020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92600080a2565b61033a610414565b610344600061042f565b565b61034e610414565b60005460405163cc600f9160e01b81526001600160a01b0383811660048301529091169063cc600f9190602401600060405180830381600087803b15801561039557600080fd5b505af11580156103a9573d6000803e3d6000fd5b5050505050565b6103b8610414565b63389a75e1600c52806000526020600c2080544211156103e057636f5e88186000526004601cfd5b600090556102f38161042f565b6103f5610414565b8060601b61040b57637448fbae6000526004601cfd5b6102f38161042f565b638b78c6d819543314610344576382b429006000526004601cfd5b638b78c6d81980546001600160a01b039092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a355565b6001600160a01b03811681146102f357600080fd5b60006020828403121561049457600080fd5b813561049f8161046d565b9392505050565b6000602082840312156104b857600080fd5b5051919050565b6000602082840312156104d157600080fd5b8151801515811461049f57600080fdfea264697066735822122011f9e402df90270c37daec04c7b3debf858ed87490f188732bd6b05c925ac71b64736f6c63430008190033000000000000000000000000c405ac3912f273873e9f7833a924f81d167b6d81

Deployed Bytecode

0x6080604052600436106101b75760003560e01c806395d89b41116100ec578063d914cd4b1161008a578063f2fde38b11610064578063f2fde38b14610503578063f620c31714610516578063fb75b2c714610548578063fee81cf41461056857600080fd5b8063d914cd4b1461049a578063dd62ed3e146104ba578063f04e283e146104f057600080fd5b8063a9059cbb116100c6578063a9059cbb14610425578063a95d6b1c14610445578063cc600f911461045a578063d505accf1461047a57600080fd5b806395d89b411461037c5780639af1d35a146103aa578063a4063dbc146103f557600080fd5b80633644e5151161015957806370a082311161013357806370a08231146102e1578063715018a6146103145780637ecebe001461031c5780638da5cb5b1461034f57600080fd5b80633644e515146102a45780633b7d0946146102b957806354d1f13d146102d957600080fd5b806323b872dd1161019557806323b872dd1461023e578063256929621461025e578063313ce5671461026857806332760c7a1461028457600080fd5b806306fdde03146101bc578063095ea7b3146101e757806318160ddd14610217575b600080fd5b3480156101c857600080fd5b506101d161059b565b6040516101de9190610e9f565b60405180910390f35b3480156101f357600080fd5b50610207610202366004610f0a565b6105bf565b60405190151581526020016101de565b34801561022357600080fd5b506805345cdf77eb68f44c545b6040519081526020016101de565b34801561024a57600080fd5b50610207610259366004610f34565b610613565b610266610690565b005b34801561027457600080fd5b50604051601281526020016101de565b34801561029057600080fd5b5061026661029f366004610f87565b6106e0565b3480156102b057600080fd5b50610230610792565b3480156102c557600080fd5b506102666102d4366004610fba565b61080f565b61026661086f565b3480156102ed57600080fd5b506102306102fc366004610fba565b6387a211a2600c908152600091909152602090205490565b6102666108ab565b34801561032857600080fd5b50610230610337366004610fba565b6338377508600c908152600091909152602090205490565b34801561035b57600080fd5b50638b78c6d819545b6040516001600160a01b0390911681526020016101de565b34801561038857600080fd5b50604080518082019091526005815264109510549160da1b60208201526101d1565b3480156103b657600080fd5b506000546103d5906001600160801b0380821691600160801b90041682565b604080516001600160801b039384168152929091166020830152016101de565b34801561040157600080fd5b50610207610410366004610fba565b60016020526000908152604090205460ff1681565b34801561043157600080fd5b50610207610440366004610f0a565b6108bf565b34801561045157600080fd5b506102666108f4565b34801561046657600080fd5b50610266610475366004610fba565b610983565b34801561048657600080fd5b50610266610495366004610fd5565b610a1d565b3480156104a657600080fd5b506102666104b5366004610fba565b610ba6565b3480156104c657600080fd5b506102306104d5366004611048565b602052637f5e9f20600c908152600091909152603490205490565b6102666104fe366004610fba565b610c03565b610266610511366004610fba565b610c40565b34801561052257600080fd5b506002546387a211a2600c9081526001600160a01b039091166000526020902054610230565b34801561055457600080fd5b50600254610364906001600160a01b031681565b34801561057457600080fd5b50610230610583366004610fba565b63389a75e1600c908152600091909152602090205490565b60408051808201909152600a815269424c415354415244494f60b01b602082015290565b600082602052637f5e9f20600c5233600052816034600c205581600052602c5160601c337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560206000a35060015b92915050565b60008360601b33602052637f5e9f208117600c52506034600c2080546001810115610654578084111561064e576313be252b6000526004601cfd5b83810382555b50506000610663858585610c67565b905061066f8582610ce5565b610683858561067e8487611088565b610d37565b60019150505b9392505050565b60006202a30067ffffffffffffffff164201905063389a75e1600c5233600052806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d600080a250565b6106e8610db2565b6101f46001600160801b038316118061070b57506101f46001600160801b038216115b1561072957604051634e30d5cd60e11b815260040160405180910390fd5b6040805180820182526001600160801b038481168083529084166020928301819052600160801b810282176000558351918252918101919091527fc13fa50fe44e9c6a234aac774658bcb509d76e8542204dc852531b17f21c174e910160405180910390a15050565b60008061079d61059b565b8051906020012090506040517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81528160208201527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6604082015246606082015230608082015260a081209250505090565b610817610db2565b6001600160a01b038116600081815260016020908152604091829020805460ff1916905590519182527f4106dfdaa577573db51c0ca93f766dbedfa0758faa2e7f5bcdb7c142be803c3f91015b60405180910390a150565b63389a75e1600c523360005260006020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92600080a2565b6108b3610db2565b6108bd6000610dcd565b565b6000806108cd338585610c67565b90506108d93382610ce5565b6108ec846108e78386611088565b610e0b565b949350505050565b6002604360981b0163662aa11d3061090f638b78c6d8195490565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af115801561095c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610980919061109b565b50565b6002546001600160a01b03163314806109b35750638b78c6d819546001600160a01b0316336001600160a01b0316145b6109fb5760405162461bcd60e51b8152602060048201526015602482015274212620a9aa20a92224a79d102327a92124a22222a760591b604482015260640160405180910390fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6000610a2761059b565b80519060200120905084421115610a4657631a15a3cc6000526004601cfd5b6040518860601b60601c98508760601b60601c975065383775081901600e52886000526020600c2080547f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f83528360208401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6604084015246606084015230608084015260a08320602e527f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c983528a60208401528960408401528860608401528060808401528760a084015260c08320604e526042602c206000528660ff1660205285604052846060526020806080600060015afa8b3d5114610b525763ddafbaef6000526004601cfd5b0190556303faf4f960a51b88176040526034602c2087905587897f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925602060608501a360405250506000606052505050505050565b610bae610db2565b6001600160a01b038116600081815260016020818152604092839020805460ff191690921790915590519182527f73cca62ab1b520c9715bf4e6c71e3e518c754e7148f65102f43289a7df0efea69101610864565b610c0b610db2565b63389a75e1600c52806000526020600c208054421115610c3357636f5e88186000526004601cfd5b6000905561098081610dcd565b610c48610db2565b8060601b610c5e57637448fbae6000526004601cfd5b61098081610dcd565b6001600160a01b03831660009081526001602052604081205460ff1615610ca657600054610c9f9083906001600160801b0316610e86565b9050610689565b6001600160a01b03831660009081526001602052604090205460ff1615610689576000546108ec908390600160801b90046001600160801b0316610e86565b6002546387a211a2606084901b17600c9081526020902080546001600160a01b039092169180841115610d205763f4d678b86000526004601cfd5b83900390556000526020600c208054909101905550565b8260601b6387a211a28117600c526020600c20805480841115610d625763f4d678b86000526004601cfd5b83810382555050826000526020600c208281540181555081602052600c5160601c8160601c7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602080a350505050565b638b78c6d8195433146108bd576382b429006000526004601cfd5b638b78c6d81980546001600160a01b039092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a355565b60006387a211a2600c52336000526020600c20805480841115610e365763f4d678b86000526004601cfd5b83810382555050826000526020600c208281540181555081602052600c5160601c337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602080a350600192915050565b6000612710610e9583856110b4565b61068991906110cb565b60006020808352835180602085015260005b81811015610ecd57858101830151858201604001528201610eb1565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610f0557600080fd5b919050565b60008060408385031215610f1d57600080fd5b610f2683610eee565b946020939093013593505050565b600080600060608486031215610f4957600080fd5b610f5284610eee565b9250610f6060208501610eee565b9150604084013590509250925092565b80356001600160801b0381168114610f0557600080fd5b60008060408385031215610f9a57600080fd5b610fa383610f70565b9150610fb160208401610f70565b90509250929050565b600060208284031215610fcc57600080fd5b61068982610eee565b600080600080600080600060e0888a031215610ff057600080fd5b610ff988610eee565b965061100760208901610eee565b95506040880135945060608801359350608088013560ff8116811461102b57600080fd5b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561105b57600080fd5b61106483610eee565b9150610fb160208401610eee565b634e487b7160e01b600052601160045260246000fd5b8181038181111561060d5761060d611072565b6000602082840312156110ad57600080fd5b5051919050565b808202811582820484141761060d5761060d611072565b6000826110e857634e487b7160e01b600052601260045260246000fd5b50049056fea264697066735822122092803a2428c23d7a69a0663e1636daf0b4b98338db76d3e78ec23d471aa109f464736f6c63430008190033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000c405ac3912f273873e9f7833a924f81d167b6d81

-----Decoded View---------------
Arg [0] : airdrop (address): 0xc405aC3912F273873E9F7833A924F81d167b6d81

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000c405ac3912f273873e9f7833a924f81d167b6d81


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
[ 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.