ETH Price: $1,984.65 (-3.64%)

Contract Diff Checker

Contract Name:
SendBonus

Contract Source Code:

File 1 of 1 : SendBonus

//this is the Smart Contract for QFP to send QOB Bonus for:
//1. QOB Bonus for Reservation Period;
//2. QOB Bonus for Early Bird of Genesis Period;
//3. Extra QOB Bonus for referee of QPass, for Extra QOB purchase;
//4. QOB Bonus for Genesis reference;
// Submitted for verification on 2019-Aug-01

pragma solidity ^0.4.18;

contract Owned {
    address public owner;

    function Owned() public {
        owner = msg.sender;
    }

    modifier onlyOwner {
        require(msg.sender == owner);
        _;
    }

    function transferOwnership(address newOwner) public onlyOwner {
        owner = newOwner;
    }
}

interface Token {
    function transfer(address _to, uint256 _value) external returns (bool success);
}

contract SendBonus is Owned {

    function batchSend(address _tokenAddr, address[] _to, uint256[] _value) returns (bool _success) {
        require(_to.length == _value.length);
        require(_to.length <= 200);
        
        for (uint8 i = 0; i < _to.length; i++) {
            (Token(_tokenAddr).transfer(_to[i], _value[i]));
        }
        
        return true;
    }
}

Please enter a contract address above to load the contract details and source code.

Context size (optional):