Cryo Explorer Ethereum Mainnet

Address Contract Verified

Address 0x06a58F43fbb9Cf521c0159EADf6ab07fD8D135B4
Balance 0 ETH
Nonce 1
Code Size 3002 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

3002 bytes
0x608060405234801561000f575f5ffd5b5060043610610060575f3560e01c8063379607f5146100645780635f9a503e146100805780636ba4c1381461009e5780639b2ee959146100ba578063cc28dfc4146100d8578063dbe7e3bd146100f6575b5f5ffd5b61007e600480360381019061007991906106c0565b610126565b005b61008861035a565b60405161009591906106fa565b60405180910390f35b6100b860048036038101906100b39190610774565b610369565b005b6100c2610621565b6040516100cf9190610839565b60405180910390f35b6100e0610645565b6040516100ed9190610872565b60405180910390f35b610110600480360381019061010b91906106c0565b610669565b60405161011d91906108a5565b60405180910390f35b3373ffffffffffffffffffffffffffffffffffffffff167f0000000000000000000000000000420538cd5abfbc7db219b6a1d125f5892ab073ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b815260040161019691906106fa565b602060405180830381865afa1580156101b1573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101d591906108f9565b73ffffffffffffffffffffffffffffffffffffffff161461022b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102229061097e565b60405180910390fd5b5f5f8281526020019081526020015f205f9054906101000a900460ff1615610288576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161027f906109e6565b60405180910390fd5b60015f5f8381526020019081526020015f205f6101000a81548160ff0219169083151502179055507f000000000000000000000000414645e751d3646e3d6827164037f08425150be573ffffffffffffffffffffffffffffffffffffffff1663a9059cbb336a115eec47f6cf7e350000006040518363ffffffff1660e01b8152600401610316929190610a13565b6020604051808303815f875af1158015610332573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103569190610a64565b5050565b6a115eec47f6cf7e3500000081565b5f5f90505f5f90505b8383905081101561053d575f5f85858481811061039257610391610a8f565b5b9050602002013581526020019081526020015f205f9054906101000a900460ff166105305760015f5f8686858181106103ce576103cd610a8f565b5b9050602002013581526020019081526020015f205f6101000a81548160ff0219169083151502179055503373ffffffffffffffffffffffffffffffffffffffff167f0000000000000000000000000000420538cd5abfbc7db219b6a1d125f5892ab073ffffffffffffffffffffffffffffffffffffffff16636352211e86868581811061045e5761045d610a8f565b5b905060200201356040518263ffffffff1660e01b815260040161048191906106fa565b602060405180830381865afa15801561049c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104c091906108f9565b73ffffffffffffffffffffffffffffffffffffffff1614610516576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161050d9061097e565b60405180910390fd5b6a115eec47f6cf7e350000008261052d9190610ae9565b91505b8080600101915050610372565b505f8111610580576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161057790610b66565b60405180910390fd5b7f000000000000000000000000414645e751d3646e3d6827164037f08425150be573ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b81526004016105db929190610a13565b6020604051808303815f875af11580156105f7573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061061b9190610a64565b50505050565b7f000000000000000000000000414645e751d3646e3d6827164037f08425150be581565b7f0000000000000000000000000000420538cd5abfbc7db219b6a1d125f5892ab081565b5f602052805f5260405f205f915054906101000a900460ff1681565b5f5ffd5b5f5ffd5b5f819050919050565b61069f8161068d565b81146106a9575f5ffd5b50565b5f813590506106ba81610696565b92915050565b5f602082840312156106d5576106d4610685565b5b5f6106e2848285016106ac565b91505092915050565b6106f48161068d565b82525050565b5f60208201905061070d5f8301846106eb565b92915050565b5f5ffd5b5f5ffd5b5f5ffd5b5f5f83601f84011261073457610733610713565b5b8235905067ffffffffffffffff81111561075157610750610717565b5b60208301915083602082028301111561076d5761076c61071b565b5b9250929050565b5f5f6020838503121561078a57610789610685565b5b5f83013567ffffffffffffffff8111156107a7576107a6610689565b5b6107b38582860161071f565b92509250509250929050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f6108016107fc6107f7846107bf565b6107de565b6107bf565b9050919050565b5f610812826107e7565b9050919050565b5f61082382610808565b9050919050565b61083381610819565b82525050565b5f60208201905061084c5f83018461082a565b92915050565b5f61085c82610808565b9050919050565b61086c81610852565b82525050565b5f6020820190506108855f830184610863565b92915050565b5f8115159050919050565b61089f8161088b565b82525050565b5f6020820190506108b85f830184610896565b92915050565b5f6108c8826107bf565b9050919050565b6108d8816108be565b81146108e2575f5ffd5b50565b5f815190506108f3816108cf565b92915050565b5f6020828403121561090e5761090d610685565b5b5f61091b848285016108e5565b91505092915050565b5f82825260208201905092915050565b7f214e46545f4f574e4552000000000000000000000000000000000000000000005f82015250565b5f610968600a83610924565b915061097382610934565b602082019050919050565b5f6020820190508181035f8301526109958161095c565b9050919050565b7f414c52454144595f434c41494d454400000000000000000000000000000000005f82015250565b5f6109d0600f83610924565b91506109db8261099c565b602082019050919050565b5f6020820190508181035f8301526109fd816109c4565b9050919050565b610a0d816108be565b82525050565b5f604082019050610a265f830185610a04565b610a3360208301846106eb565b9392505050565b610a438161088b565b8114610a4d575f5ffd5b50565b5f81519050610a5e81610a3a565b92915050565b5f60208284031215610a7957610a78610685565b5b5f610a8684828501610a50565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f610af38261068d565b9150610afe8361068d565b9250828201905080821115610b1657610b15610abc565b5b92915050565b7f656d70747920636c61696d0000000000000000000000000000000000000000005f82015250565b5f610b50600b83610924565b9150610b5b82610b1c565b602082019050919050565b5f6020820190508181035f830152610b7d81610b44565b905091905056fea26469706673582212200e6705bec68a86189ef779eac484186b2576beb68cf48820ca8acbd9c8cf705664736f6c634300081c0033

Verified Source Code Full Match

Compiler: v0.8.28+commit.7893614a EVM: cancun Optimization: No
VaultAirdrop.sol 40 lines
// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;

interface IERC721 {
    function ownerOf(uint256 tokenId) external view returns (address owner);
}

interface IERC20 {
    function transfer(address to, uint256 value) external returns (bool);
}

contract VaultAirdrop {
    uint256 public constant TOTAL_LENGO_PER_BUTTPLUGGY = 21_000_000 ether;
    IERC721 public immutable BUTTPLUGGY = IERC721(0x0000420538CD5AbfBC7Db219B6A1d125f5892Ab0);
    IERC20 public immutable LENGOTOKEN = IERC20(0x414645E751D3646E3D6827164037f08425150Be5);

    mapping(uint256 => bool) public claimed;

    function claim(uint256 tokenId) external {
        require(BUTTPLUGGY.ownerOf(tokenId) == msg.sender, "!NFT_OWNER");
        require(!claimed[tokenId], "ALREADY_CLAIMED");

        claimed[tokenId] = true;

        LENGOTOKEN.transfer(msg.sender, TOTAL_LENGO_PER_BUTTPLUGGY);
    }

    function claim(uint256[] calldata _tokensId) external {
        uint256 amount = 0;
        for (uint256 i = 0; i < _tokensId.length; i++) {
            if (claimed[_tokensId[i]]) continue;
            claimed[_tokensId[i]] = true;
            require(BUTTPLUGGY.ownerOf(_tokensId[i]) == msg.sender, "!NFT_OWNER");
            amount += TOTAL_LENGO_PER_BUTTPLUGGY;
        }

        require(amount > 0, "empty claim");
        LENGOTOKEN.transfer(msg.sender, amount);
    }
}

Read Contract

BUTTPLUGGY 0xcc28dfc4 → address
LENGOTOKEN 0x9b2ee959 → address
TOTAL_LENGO_PER_BUTTPLUGGY 0x5f9a503e → uint256
claimed 0xdbe7e3bd → bool

Write Contract 2 functions

These functions modify contract state and require a wallet transaction to execute.

claim 0x379607f5
uint256 tokenId
claim 0x6ba4c138
uint256[] _tokensId

Recent Transactions

No transactions found for this address