Source Code
Overview
HYPE Balance
HYPE Value
$0.00Loading...
Loading
Contract Name:
DonkeyAirdropper
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IERC20 { function transferFrom(address from, address to, uint256 amount) external returns (bool); } contract DonkeyAirdropper { function airdrop(address token, address[] calldata recipients, uint256[] calldata amounts) external { require(recipients.length == amounts.length, "Mismatched array lengths"); for (uint256 i = 0; i < recipients.length; i++) { IERC20(token).transferFrom(msg.sender, recipients[i], amounts[i]); } } }
{ "libraries": {}, "metadata": { "bytecodeHash": "ipfs" }, "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b5061034b806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063025ff12f14610030575b600080fd5b61004361003e3660046101f5565b610045565b005b82811461006d5760405162461bcd60e51b8152600401610064906102b7565b60405180910390fd5b60005b8381101561016757856001600160a01b03166323b872dd338787858181106100a857634e487b7160e01b600052603260045260246000fd5b90506020020160208101906100bd91906101d4565b8686868181106100dd57634e487b7160e01b600052603260045260246000fd5b905060200201356040518463ffffffff1660e01b815260040161010293929190610293565b602060405180830381600087803b15801561011c57600080fd5b505af1158015610130573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101549190610273565b508061015f816102ee565b915050610070565b505050505050565b80356001600160a01b038116811461018657600080fd5b919050565b60008083601f84011261019c578182fd5b50813567ffffffffffffffff8111156101b3578182fd5b60208301915083602080830285010111156101cd57600080fd5b9250929050565b6000602082840312156101e5578081fd5b6101ee8261016f565b9392505050565b60008060008060006060868803121561020c578081fd5b6102158661016f565b9450602086013567ffffffffffffffff80821115610231578283fd5b61023d89838a0161018b565b90965094506040880135915080821115610255578283fd5b506102628882890161018b565b969995985093965092949392505050565b600060208284031215610284578081fd5b815180151581146101ee578182fd5b6001600160a01b039384168152919092166020820152604081019190915260600190565b60208082526018908201527f4d69736d617463686564206172726179206c656e677468730000000000000000604082015260600190565b600060001982141561030e57634e487b7160e01b81526011600452602481fd5b506001019056fea2646970667358221220c737a45756aded5aa6cde947618fc8cc44c93e037c626363304f1d965c445def64736f6c63430008000033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061002b5760003560e01c8063025ff12f14610030575b600080fd5b61004361003e3660046101f5565b610045565b005b82811461006d5760405162461bcd60e51b8152600401610064906102b7565b60405180910390fd5b60005b8381101561016757856001600160a01b03166323b872dd338787858181106100a857634e487b7160e01b600052603260045260246000fd5b90506020020160208101906100bd91906101d4565b8686868181106100dd57634e487b7160e01b600052603260045260246000fd5b905060200201356040518463ffffffff1660e01b815260040161010293929190610293565b602060405180830381600087803b15801561011c57600080fd5b505af1158015610130573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101549190610273565b508061015f816102ee565b915050610070565b505050505050565b80356001600160a01b038116811461018657600080fd5b919050565b60008083601f84011261019c578182fd5b50813567ffffffffffffffff8111156101b3578182fd5b60208301915083602080830285010111156101cd57600080fd5b9250929050565b6000602082840312156101e5578081fd5b6101ee8261016f565b9392505050565b60008060008060006060868803121561020c578081fd5b6102158661016f565b9450602086013567ffffffffffffffff80821115610231578283fd5b61023d89838a0161018b565b90965094506040880135915080821115610255578283fd5b506102628882890161018b565b969995985093965092949392505050565b600060208284031215610284578081fd5b815180151581146101ee578182fd5b6001600160a01b039384168152919092166020820152604081019190915260600190565b60208082526018908201527f4d69736d617463686564206172726179206c656e677468730000000000000000604082015260600190565b600060001982141561030e57634e487b7160e01b81526011600452602481fd5b506001019056fea2646970667358221220c737a45756aded5aa6cde947618fc8cc44c93e037c626363304f1d965c445def64736f6c63430008000033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 35 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
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.