ERC-20
Overview
Max Total Supply
100,000,000,000 SPL
Holders
236
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Splinter
Compiler Version
v0.8.21+commit.d9974bed
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {ERC20} from "solady/tokens/ERC20.sol"; import {Ownable} from "solady/auth/Ownable.sol"; import {WETH} from "solady/tokens/WETH.sol"; import {IUniswapV2Router} from "./IUniswap.sol"; import {SplinterCell} from "./SplinterCell.sol"; // // // .ββ · βββ·βββ βͺ β β ββββββββ .βββ // ββ β. ββ βββββ’ ββ β’βββββ’ββ ββ.β·ββ β· // ββββββ βββ·βββͺ ββ·βββββ ββ.βͺββββͺβββββ // ββββͺβββββͺ·β’βββββββββββββ βββ·ββββββββ’ββ // ββββ .β .βββ βββββ ββͺ βββ βββ .β β // // Splinter has arrived ~~ // // The Splinter token has been fully minted! It awaits users to enter the Splinter and begin trading! // // 30% of Splinter is available for initial participants to add liquidity. // Up to 2 ETH in increments of 0.05 ETH are accepted. // // To enter the splinter visit: // https://etherscan.io/address/0x0590616271E8D50d39496CA94003a441478Bd986#writeContract // // - Approve Splinter for 0.05 WETH and write enterSplinter // OR // - Write enterSplinter with 0.05 ETH payable value // // Once 2 ETH has been accumulated, Splinter (SPL) will be added to Uniswap V2 with 70% of the // original tokens and the accumulated 2 ETH. // // What is Splinter? // Splinter is a token with a simple mechanic. // The Splinter Cell owns all the the initial Splinter liquiqidty. // Every 3 minutes, the cell can combust - removing Splinter tokens from circulation. // // Not every transaction will cause a combustion! Combustion can still be called by anyone on the // Splinter Cell every 3 minutes. // // There are no initial plans for Telegram or official Twitter, feel free to create them! // contract Splinter is ERC20, Ownable { address internal constant V2_ROUTER = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D; SplinterCell public immutable splinterCell; uint256 private initialSupply = 100_000_000_000e18; bool private inSplintering; bool public isClosed; uint256 public openTimestamp; uint256 public maxBalance; uint256 public collectedBalance; address public weth; address public liquidity; mapping(address => bool) public hasEnteredSplinter; constructor() { _initializeOwner(msg.sender); _mint(address(this), initialSupply); splinterCell = new SplinterCell(); openTimestamp = block.timestamp + 1 hours; maxBalance = 2 ether; weth = IUniswapV2Router(V2_ROUTER).WETH(); renounceOwnership(); } function enterSplinter() external payable { require(!isClosed, "NOT_OPEN"); require(block.timestamp > openTimestamp, "NOT_OPEN"); require(!hasEnteredSplinter[msg.sender], "DUPLICATE"); uint256 baseEntryFee = 1 ether / 20; try ERC20(weth).transferFrom(msg.sender, address(this), baseEntryFee) {} catch { require(msg.value == baseEntryFee, "BAD_FEE"); } collectedBalance += baseEntryFee; hasEnteredSplinter[msg.sender] = true; uint256 allocatedSupply = (initialSupply * 30 / 100) / (maxBalance / baseEntryFee); this.transfer(msg.sender, allocatedSupply); if (collectedBalance >= maxBalance) { WETH(payable(weth)).deposit{value: address(this).balance}(); ERC20(weth).approve(V2_ROUTER, type(uint256).max); this.approve(V2_ROUTER, type(uint256).max); IUniswapV2Router(V2_ROUTER).addLiquidity( address(this), weth, this.balanceOf(address(this)), ERC20(weth).balanceOf(address(this)), 0, 0, address(splinterCell), block.timestamp ); liquidity = splinterCell.initialize(); isClosed = true; } } function name() public pure override returns (string memory) { return "Splinter"; } function symbol() public pure override returns (string memory) { return "SPL"; } function transfer(address to, uint256 amount) public override returns (bool) { require(isClosed || msg.sender == address(this)); splinter(to); return super.transfer(to, amount); } function transferFrom(address from, address to, uint256 amount) public override returns (bool) { require(isClosed || (from == address(this) || msg.sender == address(this))); splinter(to); return super.transferFrom(from, to, amount); } function splinter(address to) internal { if (!inSplintering && to == liquidity) { inSplintering = true; try splinterCell.combust() {} catch {} inSplintering = false; } } }
// 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 {} }
// 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(); _; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import {ERC20} from "./ERC20.sol"; /// @notice Simple Wrapped Ether implementation. /// @author Solady (https://github.com/vectorized/solady/blob/main/src/tokens/WETH.sol) /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/WETH.sol) /// @author Inspired by WETH9 (https://github.com/dapphub/ds-weth/blob/master/src/weth9.sol) contract WETH is ERC20 { /*´:°β’.°+.*β’´.*:Λ.°*.Λβ’´.°:°β’.°β’.*β’´.*:Λ.°*.Λβ’´.°:°β’.°+.*β’´.*:*/ /* CUSTOM ERRORS */ /*.β’°:°.´+Λ.*°.Λ:*.´β’*.+°.β’°:´*.´β’*.β’°.β’°:°.´:β’Λ°.*°.Λ:*.´+°.β’*/ /// @dev The ETH transfer has failed. error ETHTransferFailed(); /*´:°β’.°+.*β’´.*:Λ.°*.Λβ’´.°:°β’.°β’.*β’´.*:Λ.°*.Λβ’´.°:°β’.°+.*β’´.*:*/ /* ERC20 METADATA */ /*.β’°:°.´+Λ.*°.Λ:*.´β’*.+°.β’°:´*.´β’*.β’°.β’°:°.´:β’Λ°.*°.Λ:*.´+°.β’*/ /// @dev Returns the name of the token. function name() public view virtual override returns (string memory) { return "Wrapped Ether"; } /// @dev Returns the symbol of the token. function symbol() public view virtual override returns (string memory) { return "WETH"; } /*´:°β’.°+.*β’´.*:Λ.°*.Λβ’´.°:°β’.°β’.*β’´.*:Λ.°*.Λβ’´.°:°β’.°+.*β’´.*:*/ /* WETH */ /*.β’°:°.´+Λ.*°.Λ:*.´β’*.+°.β’°:´*.´β’*.β’°.β’°:°.´:β’Λ°.*°.Λ:*.´+°.β’*/ /// @dev Deposits `amount` ETH of the caller and mints `amount` WETH to the caller. function deposit() public payable virtual { _mint(msg.sender, msg.value); } /// @dev Burns `amount` WETH of the caller and sends `amount` ETH to the caller. function withdraw(uint256 amount) public virtual { _burn(msg.sender, amount); /// @solidity memory-safe-assembly assembly { // Transfer the ETH and check if it succeeded or not. if iszero(call(gas(), caller(), amount, codesize(), 0x00, codesize(), 0x00)) { mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`. revert(0x1c, 0x04) } } } /// @dev Equivalent to `deposit()`. receive() external payable virtual { deposit(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IUniswapV2Factory { function getPair(address tokenA, address tokenB) external view returns (address pair); } interface IUniswapV2Router { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns (uint256 amountA, uint256 amountB, uint256 liquidity); function removeLiquidity( address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns (uint256 amountA, uint256 amountB); function swapExactTokensForTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {ERC20} from "solady/tokens/ERC20.sol"; import {Ownable} from "solady/auth/Ownable.sol"; import {WETH} from "solady/tokens/WETH.sol"; import {IUniswapV2Factory, IUniswapV2Router} from "./IUniswap.sol"; contract SplinterCell is Ownable { address internal constant V2_ROUTER = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D; address internal constant V2_FACTORY = 0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f; bool public initialized; address public weth; address public splinter; address public liquidity; uint256 public nextCombustion; uint256 public combustionCooldown; constructor() { _initializeOwner(msg.sender); weth = IUniswapV2Router(V2_ROUTER).WETH(); splinter = msg.sender; combustionCooldown = 3 minutes; } receive() external payable { WETH(payable(weth)).deposit{value: msg.value}(); } function initialize() external onlyOwner returns (address) { liquidity = IUniswapV2Factory(V2_FACTORY).getPair(splinter, weth); ERC20(liquidity).approve(V2_ROUTER, type(uint256).max); ERC20(weth).approve(V2_ROUTER, type(uint256).max); ERC20(splinter).approve(V2_ROUTER, type(uint256).max); nextCombustion = block.timestamp + combustionCooldown; initialized = true; renounceOwnership(); return liquidity; } function combust() external { if (!initialized || liquidity == address(0) || block.timestamp < nextCombustion) { return; } uint256 liquidityBalance = ERC20(liquidity).balanceOf(address(this)); if (liquidityBalance > 0) { removeLiquidity(weth, splinter, liquidityBalance / 1_000); } uint256 burnAmount = ERC20(splinter).balanceOf(address(this)); ERC20(splinter).transfer(address(0), burnAmount); uint256 wethBalance = ERC20(weth).balanceOf(address(this)); address[] memory path = new address[](2); path[0] = weth; path[1] = splinter; uint256 splinterPurchased = swap(wethBalance / 2, path); addLiquidity(weth, splinter, wethBalance / 2, splinterPurchased); } function addLiquidity(address token0, address token1, uint256 token0Amount, uint256 token1Amount) internal { (,, uint256 liquidityAmount) = IUniswapV2Router(V2_ROUTER).addLiquidity( token0, token1, token0Amount, token1Amount, 0, 0, address(this), block.timestamp ); require(liquidityAmount > 0); } function removeLiquidity(address token0, address token1, uint256 liquidityAmount) internal { require(liquidityAmount > 0); IUniswapV2Router(V2_ROUTER).removeLiquidity( token0, token1, liquidityAmount, 0, 0, address(this), block.timestamp ); } function swap(uint256 amount, address[] memory path) internal returns (uint256) { require(amount > 0); uint256[] memory amounts = IUniswapV2Router(V2_ROUTER).swapExactTokensForTokens(amount, 0, path, address(this), block.timestamp); return amounts[amounts.length - 1]; } }
{ "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
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AllowanceOverflow","type":"error"},{"inputs":[],"name":"AllowanceUnderflow","type":"error"},{"inputs":[],"name":"AlreadyInitialized","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":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":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":"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":"collectedBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"enterSplinter","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"hasEnteredSplinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isClosed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidity","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"openTimestamp","outputs":[{"internalType":"uint256","name":"","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":[],"name":"renounceOwnership","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"requestOwnershipHandover","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"splinterCell","outputs":[{"internalType":"contract SplinterCell","name":"","type":"address"}],"stateMutability":"view","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":[],"name":"weth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60a06040526c01431e0fae6d7217caa00000006000553480156200002257600080fd5b506200002e336200013e565b62000042306000546200016960201b60201c565b60405162000050906200024a565b604051809103906000f0801580156200006d573d6000803e3d6000fd5b506001600160a01b03166080526200008842610e1062000258565b600255671bc16d674ec80000600355604080516315ab88c960e31b81529051737a250d5630b4cf539739df2c5dacb4c659f2488d9163ad5c46489160048083019260209291908290030181865afa158015620000e8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200010e919062000280565b600580546001600160a01b0319166001600160a01b039290921691909117905562000138620001e9565b620002b2565b6001600160a01b0316638b78c6d819819055806000600080516020620027c28339815191528180a350565b6805345cdf77eb68f44c54818101818110156200018e5763e5cfe9576000526004601cfd5b806805345cdf77eb68f44c5550506387a211a2600c52816000526020600c208181540181555080602052600c5160601c60007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602080a35050565b620001f362000201565b620001ff60006200021d565b565b638b78c6d819543314620001ff576382b429006000526004601cfd5b638b78c6d81980546001600160a01b03909216918290600080516020620027c2833981519152600080a355565b61103e806200178483390190565b808201808211156200027a57634e487b7160e01b600052601160045260246000fd5b92915050565b6000602082840312156200029357600080fd5b81516001600160a01b0381168114620002ab57600080fd5b9392505050565b6080516114a1620002e36000396000818161038c01528181610e7201528181610eeb0152610fee01526114a16000f3fe6080604052600436106101b75760003560e01c806375850324116100ec578063c2b6b58c1161008a578063f04e283e11610064578063f04e283e146104e7578063f2fde38b146104fa578063fcf668121461050d578063fee81cf41461051557600080fd5b8063c2b6b58c14610472578063d505accf14610491578063dd62ed3e146104b157600080fd5b80638ddc3b19116100c65780638ddc3b19146103fa57806395d89b4114610410578063a9059cbb1461043c578063a97eaba71461045c57600080fd5b8063758503241461037a5780637ecebe00146103ae5780638da5cb5b146103e157600080fd5b80633644e51511610159578063623e70fa11610133578063623e70fa146102f957806370a0823114610329578063715018a61461035c57806373ad468a1461036457600080fd5b80633644e515146102bc5780633fc8cef3146102d157806354d1f13d146102f157600080fd5b80631a686502116101955780631a6865021461023e57806323b872dd146102765780632569296214610296578063313ce567146102a057600080fd5b806306fdde03146101bc578063095ea7b3146101e757806318160ddd14610217575b600080fd5b3480156101c857600080fd5b506101d1610548565b6040516101de91906111e6565b60405180910390f35b3480156101f357600080fd5b50610207610202366004611249565b61056a565b60405190151581526020016101de565b34801561022357600080fd5b506805345cdf77eb68f44c545b6040519081526020016101de565b34801561024a57600080fd5b5060065461025e906001600160a01b031681565b6040516001600160a01b0390911681526020016101de565b34801561028257600080fd5b50610207610291366004611275565b6105be565b61029e61060d565b005b3480156102ac57600080fd5b50604051601281526020016101de565b3480156102c857600080fd5b5061023061065d565b3480156102dd57600080fd5b5060055461025e906001600160a01b031681565b61029e6106da565b34801561030557600080fd5b506102076103143660046112b6565b60076020526000908152604090205460ff1681565b34801561033557600080fd5b506102306103443660046112b6565b6387a211a2600c908152600091909152602090205490565b61029e610716565b34801561037057600080fd5b5061023060035481565b34801561038657600080fd5b5061025e7f000000000000000000000000000000000000000000000000000000000000000081565b3480156103ba57600080fd5b506102306103c93660046112b6565b6338377508600c908152600091909152602090205490565b3480156103ed57600080fd5b50638b78c6d8195461025e565b34801561040657600080fd5b5061023060045481565b34801561041c57600080fd5b5060408051808201909152600381526214d41360ea1b60208201526101d1565b34801561044857600080fd5b50610207610457366004611249565b61072a565b34801561046857600080fd5b5061023060025481565b34801561047e57600080fd5b5060015461020790610100900460ff1681565b34801561049d57600080fd5b5061029e6104ac3660046112d3565b610765565b3480156104bd57600080fd5b506102306104cc36600461134a565b602052637f5e9f20600c908152600091909152603490205490565b61029e6104f53660046112b6565b6108ee565b61029e6105083660046112b6565b61092e565b61029e610955565b34801561052157600080fd5b506102306105303660046112b6565b63389a75e1600c908152600091909152602090205490565b60408051808201909152600881526729b83634b73a32b960c11b602082015290565b600082602052637f5e9f20600c5233600052816034600c205581600052602c5160601c337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560206000a35060015b92915050565b600154600090610100900460ff16806105e857506001600160a01b0384163014806105e857503330145b6105f157600080fd5b6105fa83610fa3565b610605848484611054565b949350505050565b60006202a30067ffffffffffffffff164201905063389a75e1600c5233600052806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d600080a250565b600080610668610548565b8051906020012090506040517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81528160208201527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6604082015246606082015230608082015260a081209250505090565b63389a75e1600c523360005260006020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92600080a2565b61071e611112565b610728600061112d565b565b600154600090610100900460ff168061074257503330145b61074b57600080fd5b61075483610fa3565b61075e838361116b565b9392505050565b600061076f610548565b8051906020012090508442111561078e57631a15a3cc6000526004601cfd5b6040518860601b60601c98508760601b60601c975065383775081901600e52886000526020600c2080547f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f83528360208401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6604084015246606084015230608084015260a08320602e527f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c983528a60208401528960408401528860608401528060808401528760a084015260c08320604e526042602c206000528660ff1660205285604052846060526020806080600060015afa8b3d511461089a5763ddafbaef6000526004601cfd5b0190556303faf4f960a51b88176040526034602c2087905587897f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925602060608501a360405250506000606052505050505050565b6108f6611112565b63389a75e1600c52806000526020600c20805442111561091e57636f5e88186000526004601cfd5b6000905561092b8161112d565b50565b610936611112565b8060601b61094c57637448fbae6000526004601cfd5b61092b8161112d565b600154610100900460ff161561099d5760405162461bcd60e51b81526020600482015260086024820152672727aa2fa7a822a760c11b60448201526064015b60405180910390fd5b60025442116109d95760405162461bcd60e51b81526020600482015260086024820152672727aa2fa7a822a760c11b6044820152606401610994565b3360009081526007602052604090205460ff1615610a255760405162461bcd60e51b81526020600482015260096024820152684455504c494341544560b81b6044820152606401610994565b6005546040516323b872dd60e01b815233600482015230602482015266b1a2bc2ec5000060448201819052916001600160a01b0316906323b872dd906064016020604051808303816000875af1925050508015610a9f575060408051601f3d908101601f19168201909252610a9c91810190611383565b60015b610ae157803414610adc5760405162461bcd60e51b81526020600482015260076024820152664241445f46454560c81b6044820152606401610994565b610ae3565b505b8060046000828254610af591906113bb565b9091555050336000908152600760205260408120805460ff19166001179055600354610b229083906113ce565b6064600054601e610b3391906113f0565b610b3d91906113ce565b610b4791906113ce565b60405163a9059cbb60e01b815233600482015260248101829052909150309063a9059cbb906044016020604051808303816000875af1158015610b8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb29190611383565b5060035460045410610f9f57600560009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0476040518263ffffffff1660e01b81526004016000604051808303818588803b158015610c0e57600080fd5b505af1158015610c22573d6000803e3d6000fd5b505060055460405163095ea7b360e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d600482015260001960248201526001600160a01b03909116935063095ea7b3925060440190506020604051808303816000875af1158015610c8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb29190611383565b5060405163095ea7b360e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d60048201526000196024820152309063095ea7b3906044016020604051808303816000875af1158015610d0c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d309190611383565b506005546040516370a0823160e01b81523060048201819052737a250d5630b4cf539739df2c5dacb4c659f2488d9263e8e33700926001600160a01b039091169082906370a0823190602401602060405180830381865afa158015610d99573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dbd9190611407565b6005546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610e05573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e299190611407565b60405160e086901b6001600160e01b03191681526001600160a01b03948516600482015292841660248401526044830191909152606482015260006084820181905260a48201527f000000000000000000000000000000000000000000000000000000000000000090911660c48201524260e4820152610104016060604051808303816000875af1158015610ec2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ee69190611420565b5050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316638129fc1c6040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610f49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f6d919061144e565b600680546001600160a01b03929092166001600160a01b03199092169190911790556001805461ff0019166101001790555b5050565b60015460ff16158015610fc357506006546001600160a01b038281169116145b1561092b576001805460ff1916811790556040805163e56879b960e01b815290516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169163e56879b991600480830192600092919082900301818387803b15801561103557600080fd5b505af1925050508015611046575060015b506001805460ff1916905550565b60008360601b33602052637f5e9f208117600c526034600c2080546001810115611094578085111561108e576313be252b6000526004601cfd5b84810382555b50506387a211a28117600c526020600c208054808511156110bd5763f4d678b86000526004601cfd5b84810382555050836000526020600c208381540181555082602052600c5160601c8160601c7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602080a3505060019392505050565b638b78c6d819543314610728576382b429006000526004601cfd5b638b78c6d81980546001600160a01b039092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a355565b60006387a211a2600c52336000526020600c208054808411156111965763f4d678b86000526004601cfd5b83810382555050826000526020600c208281540181555081602052600c5160601c337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602080a350600192915050565b600060208083528351808285015260005b81811015611213578581018301518582016040015282016111f7565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461092b57600080fd5b6000806040838503121561125c57600080fd5b823561126781611234565b946020939093013593505050565b60008060006060848603121561128a57600080fd5b833561129581611234565b925060208401356112a581611234565b929592945050506040919091013590565b6000602082840312156112c857600080fd5b813561075e81611234565b600080600080600080600060e0888a0312156112ee57600080fd5b87356112f981611234565b9650602088013561130981611234565b95506040880135945060608801359350608088013560ff8116811461132d57600080fd5b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561135d57600080fd5b823561136881611234565b9150602083013561137881611234565b809150509250929050565b60006020828403121561139557600080fd5b8151801515811461075e57600080fd5b634e487b7160e01b600052601160045260246000fd5b808201808211156105b8576105b86113a5565b6000826113eb57634e487b7160e01b600052601260045260246000fd5b500490565b80820281158282048414176105b8576105b86113a5565b60006020828403121561141957600080fd5b5051919050565b60008060006060848603121561143557600080fd5b8351925060208401519150604084015190509250925092565b60006020828403121561146057600080fd5b815161075e8161123456fea2646970667358221220af867e667f52b1c7679d26dca77678e24b2d8d51a803fe0872d317bcf65a26dc64736f6c63430008150033608060405234801561001057600080fd5b5061001a336100d3565b737a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561006c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610090919061010f565b600080546001600160a01b039290921661010002610100600160a81b0319909216919091179055600180546001600160a01b0319163317905560b460045561013f565b6001600160a01b0316638b78c6d8198190558060007f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a350565b60006020828403121561012157600080fd5b81516001600160a01b038116811461013857600080fd5b9392505050565b610ef08061014e6000396000f3fe6080604052600436106100ec5760003560e01c80638129fc1c1161008a578063e56879b911610059578063e56879b914610288578063f04e283e1461029d578063f2fde38b146102b0578063fee81cf4146102c357600080fd5b80638129fc1c146102245780638da5cb5b1461023957806394adb0b514610252578063a4c2181c1461027257600080fd5b806325692962116100c657806325692962146101e75780633fc8cef3146101ef57806354d1f13d14610214578063715018a61461021c57600080fd5b8063158ef93e1461015c5780631a6865021461018b57806323f07cf2146101c357600080fd5b3661015757600060019054906101000a90046001600160a01b03166001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b15801561014157600080fd5b505af1158015610155573d6000803e3d6000fd5b005b600080fd5b34801561016857600080fd5b506000546101769060ff1681565b60405190151581526020015b60405180910390f35b34801561019757600080fd5b506002546101ab906001600160a01b031681565b6040516001600160a01b039091168152602001610182565b3480156101cf57600080fd5b506101d960035481565b604051908152602001610182565b6101556102f6565b3480156101fb57600080fd5b506000546101ab9061010090046001600160a01b031681565b610155610346565b610155610382565b34801561023057600080fd5b506101ab610396565b34801561024557600080fd5b50638b78c6d819546101ab565b34801561025e57600080fd5b506001546101ab906001600160a01b031681565b34801561027e57600080fd5b506101d960045481565b34801561029457600080fd5b5061015561061b565b6101556102ab366004610c33565b61091f565b6101556102be366004610c33565b61095f565b3480156102cf57600080fd5b506101d96102de366004610c33565b63389a75e1600c908152600091909152602090205490565b60006202a30067ffffffffffffffff164201905063389a75e1600c5233600052806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d600080a250565b63389a75e1600c523360005260006020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92600080a2565b61038a610986565b61039460006109a1565b565b60006103a0610986565b60015460005460405163e6a4390560e01b81526001600160a01b0392831660048201526101009091049091166024820152735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f9063e6a4390590604401602060405180830381865afa15801561040d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104319190610c57565b600280546001600160a01b0319166001600160a01b0392909216918217905560405163095ea7b360e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d6004820152600019602482015263095ea7b3906044016020604051808303816000875af11580156104a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104cb9190610c74565b5060005460405163095ea7b360e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d600482015260001960248201526101009091046001600160a01b03169063095ea7b3906044016020604051808303816000875af1158015610536573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061055a9190610c74565b5060015460405163095ea7b360e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d600482015260001960248201526001600160a01b039091169063095ea7b3906044016020604051808303816000875af11580156105c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105e59190610c74565b506004546105f39042610cac565b6003556000805460ff1916600117905561060b610382565b506002546001600160a01b031690565b60005460ff16158061063657506002546001600160a01b0316155b80610642575060035442105b1561064957565b6002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610692573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106b69190610cbf565b905080156106eb576000546001546106eb916001600160a01b03610100909104811691166106e66103e885610cd8565b6109df565b6001546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610734573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107589190610cbf565b60015460405163a9059cbb60e01b815260006004820152602481018390529192506001600160a01b03169063a9059cbb906044016020604051808303816000875af11580156107ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107cf9190610c74565b50600080546040516370a0823160e01b81523060048201526101009091046001600160a01b0316906370a0823190602401602060405180830381865afa15801561081d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108419190610cbf565b6040805160028082526060820183529293506000929091602083019080368337505060008054835193945061010090046001600160a01b03169284925061088a5761088a610d10565b6001600160a01b03928316602091820292909201015260018054835192169183919081106108ba576108ba610d10565b6001600160a01b039092166020928302919091019091015260006108e86108e2600285610cd8565b83610a92565b600054600154919250610918916001600160a01b0361010090920482169116610912600287610cd8565b84610b5c565b5050505050565b610927610986565b63389a75e1600c52806000526020600c20805442111561094f57636f5e88186000526004601cfd5b6000905561095c816109a1565b50565b610967610986565b8060601b61097d57637448fbae6000526004601cfd5b61095c816109a1565b638b78c6d819543314610394576382b429006000526004601cfd5b638b78c6d81980546001600160a01b039092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a355565b600081116109ec57600080fd5b604051635d5155ef60e11b81526001600160a01b038085166004830152831660248201526044810182905260006064820181905260848201523060a48201524260c4820152737a250d5630b4cf539739df2c5dacb4c659f2488d9063baa2abde9060e40160408051808303816000875af1158015610a6e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109189190610d26565b6000808311610aa057600080fd5b6040516338ed173960e01b8152600090737a250d5630b4cf539739df2c5dacb4c659f2488d906338ed173990610ae29087908590889030904290600401610d4a565b6000604051808303816000875af1158015610b01573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b299190810190610dbb565b90508060018251610b3a9190610e79565b81518110610b4a57610b4a610d10565b60200260200101519150505b92915050565b60405162e8e33760e81b81526001600160a01b03808616600483015284166024820152604481018390526064810182905260006084820181905260a482018190523060c48301524260e483015290737a250d5630b4cf539739df2c5dacb4c659f2488d9063e8e3370090610104016060604051808303816000875af1158015610be9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c0d9190610e8c565b925050506000811161091857600080fd5b6001600160a01b038116811461095c57600080fd5b600060208284031215610c4557600080fd5b8135610c5081610c1e565b9392505050565b600060208284031215610c6957600080fd5b8151610c5081610c1e565b600060208284031215610c8657600080fd5b81518015158114610c5057600080fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115610b5657610b56610c96565b600060208284031215610cd157600080fd5b5051919050565b600082610cf557634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60008060408385031215610d3957600080fd5b505080516020909101519092909150565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015610d9a5784516001600160a01b031683529383019391830191600101610d75565b50506001600160a01b03969096166060850152505050608001529392505050565b60006020808385031215610dce57600080fd5b825167ffffffffffffffff80821115610de657600080fd5b818501915085601f830112610dfa57600080fd5b815181811115610e0c57610e0c610cfa565b8060051b604051601f19603f83011681018181108582111715610e3157610e31610cfa565b604052918252848201925083810185019188831115610e4f57600080fd5b938501935b82851015610e6d57845184529385019392850192610e54565b98975050505050505050565b81810381811115610b5657610b56610c96565b600080600060608486031215610ea157600080fd5b835192506020840151915060408401519050925092509256fea264697066735822122073d3f039ae3cd2ec6d35f9753165c1e8a81780cc36195913a95a7516aa6120f564736f6c634300081500338be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0
Deployed Bytecode
0x6080604052600436106101b75760003560e01c806375850324116100ec578063c2b6b58c1161008a578063f04e283e11610064578063f04e283e146104e7578063f2fde38b146104fa578063fcf668121461050d578063fee81cf41461051557600080fd5b8063c2b6b58c14610472578063d505accf14610491578063dd62ed3e146104b157600080fd5b80638ddc3b19116100c65780638ddc3b19146103fa57806395d89b4114610410578063a9059cbb1461043c578063a97eaba71461045c57600080fd5b8063758503241461037a5780637ecebe00146103ae5780638da5cb5b146103e157600080fd5b80633644e51511610159578063623e70fa11610133578063623e70fa146102f957806370a0823114610329578063715018a61461035c57806373ad468a1461036457600080fd5b80633644e515146102bc5780633fc8cef3146102d157806354d1f13d146102f157600080fd5b80631a686502116101955780631a6865021461023e57806323b872dd146102765780632569296214610296578063313ce567146102a057600080fd5b806306fdde03146101bc578063095ea7b3146101e757806318160ddd14610217575b600080fd5b3480156101c857600080fd5b506101d1610548565b6040516101de91906111e6565b60405180910390f35b3480156101f357600080fd5b50610207610202366004611249565b61056a565b60405190151581526020016101de565b34801561022357600080fd5b506805345cdf77eb68f44c545b6040519081526020016101de565b34801561024a57600080fd5b5060065461025e906001600160a01b031681565b6040516001600160a01b0390911681526020016101de565b34801561028257600080fd5b50610207610291366004611275565b6105be565b61029e61060d565b005b3480156102ac57600080fd5b50604051601281526020016101de565b3480156102c857600080fd5b5061023061065d565b3480156102dd57600080fd5b5060055461025e906001600160a01b031681565b61029e6106da565b34801561030557600080fd5b506102076103143660046112b6565b60076020526000908152604090205460ff1681565b34801561033557600080fd5b506102306103443660046112b6565b6387a211a2600c908152600091909152602090205490565b61029e610716565b34801561037057600080fd5b5061023060035481565b34801561038657600080fd5b5061025e7f0000000000000000000000003b91e4d26e1873dd3429c84582ee1537392c150481565b3480156103ba57600080fd5b506102306103c93660046112b6565b6338377508600c908152600091909152602090205490565b3480156103ed57600080fd5b50638b78c6d8195461025e565b34801561040657600080fd5b5061023060045481565b34801561041c57600080fd5b5060408051808201909152600381526214d41360ea1b60208201526101d1565b34801561044857600080fd5b50610207610457366004611249565b61072a565b34801561046857600080fd5b5061023060025481565b34801561047e57600080fd5b5060015461020790610100900460ff1681565b34801561049d57600080fd5b5061029e6104ac3660046112d3565b610765565b3480156104bd57600080fd5b506102306104cc36600461134a565b602052637f5e9f20600c908152600091909152603490205490565b61029e6104f53660046112b6565b6108ee565b61029e6105083660046112b6565b61092e565b61029e610955565b34801561052157600080fd5b506102306105303660046112b6565b63389a75e1600c908152600091909152602090205490565b60408051808201909152600881526729b83634b73a32b960c11b602082015290565b600082602052637f5e9f20600c5233600052816034600c205581600052602c5160601c337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560206000a35060015b92915050565b600154600090610100900460ff16806105e857506001600160a01b0384163014806105e857503330145b6105f157600080fd5b6105fa83610fa3565b610605848484611054565b949350505050565b60006202a30067ffffffffffffffff164201905063389a75e1600c5233600052806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d600080a250565b600080610668610548565b8051906020012090506040517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81528160208201527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6604082015246606082015230608082015260a081209250505090565b63389a75e1600c523360005260006020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92600080a2565b61071e611112565b610728600061112d565b565b600154600090610100900460ff168061074257503330145b61074b57600080fd5b61075483610fa3565b61075e838361116b565b9392505050565b600061076f610548565b8051906020012090508442111561078e57631a15a3cc6000526004601cfd5b6040518860601b60601c98508760601b60601c975065383775081901600e52886000526020600c2080547f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f83528360208401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6604084015246606084015230608084015260a08320602e527f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c983528a60208401528960408401528860608401528060808401528760a084015260c08320604e526042602c206000528660ff1660205285604052846060526020806080600060015afa8b3d511461089a5763ddafbaef6000526004601cfd5b0190556303faf4f960a51b88176040526034602c2087905587897f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925602060608501a360405250506000606052505050505050565b6108f6611112565b63389a75e1600c52806000526020600c20805442111561091e57636f5e88186000526004601cfd5b6000905561092b8161112d565b50565b610936611112565b8060601b61094c57637448fbae6000526004601cfd5b61092b8161112d565b600154610100900460ff161561099d5760405162461bcd60e51b81526020600482015260086024820152672727aa2fa7a822a760c11b60448201526064015b60405180910390fd5b60025442116109d95760405162461bcd60e51b81526020600482015260086024820152672727aa2fa7a822a760c11b6044820152606401610994565b3360009081526007602052604090205460ff1615610a255760405162461bcd60e51b81526020600482015260096024820152684455504c494341544560b81b6044820152606401610994565b6005546040516323b872dd60e01b815233600482015230602482015266b1a2bc2ec5000060448201819052916001600160a01b0316906323b872dd906064016020604051808303816000875af1925050508015610a9f575060408051601f3d908101601f19168201909252610a9c91810190611383565b60015b610ae157803414610adc5760405162461bcd60e51b81526020600482015260076024820152664241445f46454560c81b6044820152606401610994565b610ae3565b505b8060046000828254610af591906113bb565b9091555050336000908152600760205260408120805460ff19166001179055600354610b229083906113ce565b6064600054601e610b3391906113f0565b610b3d91906113ce565b610b4791906113ce565b60405163a9059cbb60e01b815233600482015260248101829052909150309063a9059cbb906044016020604051808303816000875af1158015610b8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb29190611383565b5060035460045410610f9f57600560009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0476040518263ffffffff1660e01b81526004016000604051808303818588803b158015610c0e57600080fd5b505af1158015610c22573d6000803e3d6000fd5b505060055460405163095ea7b360e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d600482015260001960248201526001600160a01b03909116935063095ea7b3925060440190506020604051808303816000875af1158015610c8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb29190611383565b5060405163095ea7b360e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d60048201526000196024820152309063095ea7b3906044016020604051808303816000875af1158015610d0c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d309190611383565b506005546040516370a0823160e01b81523060048201819052737a250d5630b4cf539739df2c5dacb4c659f2488d9263e8e33700926001600160a01b039091169082906370a0823190602401602060405180830381865afa158015610d99573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dbd9190611407565b6005546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610e05573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e299190611407565b60405160e086901b6001600160e01b03191681526001600160a01b03948516600482015292841660248401526044830191909152606482015260006084820181905260a48201527f0000000000000000000000003b91e4d26e1873dd3429c84582ee1537392c150490911660c48201524260e4820152610104016060604051808303816000875af1158015610ec2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ee69190611420565b5050507f0000000000000000000000003b91e4d26e1873dd3429c84582ee1537392c15046001600160a01b0316638129fc1c6040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610f49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f6d919061144e565b600680546001600160a01b03929092166001600160a01b03199092169190911790556001805461ff0019166101001790555b5050565b60015460ff16158015610fc357506006546001600160a01b038281169116145b1561092b576001805460ff1916811790556040805163e56879b960e01b815290516001600160a01b037f0000000000000000000000003b91e4d26e1873dd3429c84582ee1537392c1504169163e56879b991600480830192600092919082900301818387803b15801561103557600080fd5b505af1925050508015611046575060015b506001805460ff1916905550565b60008360601b33602052637f5e9f208117600c526034600c2080546001810115611094578085111561108e576313be252b6000526004601cfd5b84810382555b50506387a211a28117600c526020600c208054808511156110bd5763f4d678b86000526004601cfd5b84810382555050836000526020600c208381540181555082602052600c5160601c8160601c7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602080a3505060019392505050565b638b78c6d819543314610728576382b429006000526004601cfd5b638b78c6d81980546001600160a01b039092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a355565b60006387a211a2600c52336000526020600c208054808411156111965763f4d678b86000526004601cfd5b83810382555050826000526020600c208281540181555081602052600c5160601c337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602080a350600192915050565b600060208083528351808285015260005b81811015611213578581018301518582016040015282016111f7565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461092b57600080fd5b6000806040838503121561125c57600080fd5b823561126781611234565b946020939093013593505050565b60008060006060848603121561128a57600080fd5b833561129581611234565b925060208401356112a581611234565b929592945050506040919091013590565b6000602082840312156112c857600080fd5b813561075e81611234565b600080600080600080600060e0888a0312156112ee57600080fd5b87356112f981611234565b9650602088013561130981611234565b95506040880135945060608801359350608088013560ff8116811461132d57600080fd5b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561135d57600080fd5b823561136881611234565b9150602083013561137881611234565b809150509250929050565b60006020828403121561139557600080fd5b8151801515811461075e57600080fd5b634e487b7160e01b600052601160045260246000fd5b808201808211156105b8576105b86113a5565b6000826113eb57634e487b7160e01b600052601260045260246000fd5b500490565b80820281158282048414176105b8576105b86113a5565b60006020828403121561141957600080fd5b5051919050565b60008060006060848603121561143557600080fd5b8351925060208401519150604084015190509250925092565b60006020828403121561146057600080fd5b815161075e8161123456fea2646970667358221220af867e667f52b1c7679d26dca77678e24b2d8d51a803fe0872d317bcf65a26dc64736f6c63430008150033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.