Address io1va89pyvmfw7mx5wynjfzet8m3vka7jg58nw467

Contract Overview

Balance:
0 IOTX

IOTX Value:
$ 0

Token:
Txn Hash
Block
From
To
Value [Txn Fee]
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DividendAirdrop

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.9.0;

contract DividendAirdrop {
    function sendBatch(address[] calldata addrs, uint256[] calldata _values) public payable {
        require(
            addrs.length == _values.length,
            "Length of Address is different from value"
        );
        for (uint256 i = 0; i < addrs.length; i++) {
            (bool success, ) = payable(addrs[i]).call{value: _values[i]}("");
            require(success);
        }
    }
    function withdraw() public payable {
        (bool success, ) = payable(msg.sender).call{
            value: address(this).balance
        }("");
        require(success, "Failure to send");
    }
}

Contract ABI

[{"inputs":[{"internalType":"address[]","name":"addrs","type":"address[]"},{"internalType":"uint256[]","name":"_values","type":"uint256[]"}],"name":"sendBatch","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]

Contract Creation Code

6080604052600436106100295760003560e01c80633ccfd60b1461002e5780638535d2ec14610038575b600080fd5b610036610054565b005b610052600480360381019061004d9190610348565b610103565b005b60003373ffffffffffffffffffffffffffffffffffffffff164760405161007a90610426565b60006040518083038185875af1925050503d80600081146100b7576040519150601f19603f3d011682016040523d82523d6000602084013e6100bc565b606091505b5050905080610100576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100f79061043b565b60405180910390fd5b50565b81819050848490501461014b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101429061045b565b60405180910390fd5b60005b8484905081101561026f576000858583818110610194577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020160208101906101a9919061031f565b73ffffffffffffffffffffffffffffffffffffffff168484848181106101f8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002013560405161020b90610426565b60006040518083038185875af1925050503d8060008114610248576040519150601f19603f3d011682016040523d82523d6000602084013e61024d565b606091505b505090508061025b57600080fd5b508080610267906104d3565b91505061014e565b5050505050565b600081359050610285816105c6565b92915050565b60008083601f84011261029d57600080fd5b8235905067ffffffffffffffff8111156102b657600080fd5b6020830191508360208202830111156102ce57600080fd5b9250929050565b60008083601f8401126102e757600080fd5b8235905067ffffffffffffffff81111561030057600080fd5b60208301915083602082028301111561031857600080fd5b9250929050565b60006020828403121561033157600080fd5b600061033f84828501610276565b91505092915050565b6000806000806040858703121561035e57600080fd5b600085013567ffffffffffffffff81111561037857600080fd5b6103848782880161028b565b9450945050602085013567ffffffffffffffff8111156103a357600080fd5b6103af878288016102d5565b925092505092959194509250565b60006103ca600f83610486565b91506103d58261054b565b602082019050919050565b60006103ed60008361047b565b91506103f882610574565b600082019050919050565b6000610410602983610486565b915061041b82610577565b604082019050919050565b6000610431826103e0565b9150819050919050565b60006020820190508181036000830152610454816103bd565b9050919050565b6000602082019050818103600083015261047481610403565b9050919050565b600081905092915050565b600082825260208201905092915050565b60006104a2826104a9565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006104de826104c9565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156105115761051061051c565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4661696c75726520746f2073656e640000000000000000000000000000000000600082015250565b50565b7f4c656e677468206f66204164647265737320697320646966666572656e74206660008201527f726f6d2076616c75650000000000000000000000000000000000000000000000602082015250565b6105cf81610497565b81146105da57600080fd5b5056fea2646970667358221220dbed6851eff6455eb71762cd6a37daed3752ba6ac88c2a6b99b2b86c08f2e00064736f6c63430008040033

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.