Verified contractPartial
ERC20Interface
Address0x25bfb07aa8e3c090a0833f2a8a0f1ff9a190263f
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.4.23
- Same code
1 more contract
Details
- Compiler
- solc 0.4.23+commit.124ca40d
- Language
- solidity
- Optimization
- No
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 5,749,549
- Creation transaction
- 0xe1ef05323d…66a587ce4a
d2e2f03153ed69bcaa3382d712d7e93645cbee1c_TokenAirDrop.sol
// Recovered by EthereumHistory (ethereumhistory.com) -sw
pragma solidity ^0.4.18;
contract ERC20Interface {
function transferFrom(address _from, address _to, uint _value) public returns (bool){}
}
contract Ownable {
address public owner;
function Ownable() public {
owner = msg.sender;
}
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
function transferOwnership(address newOwner) public onlyOwner {
if (newOwner != address(0)) {
owner = newOwner;
}
}
}
contract TokenAirDrop is Ownable {
function airDrop ( address contractObj,
address tokenRepo,
address[] airDropDesinationAddress,
uint[] amounts) public onlyOwner{
for( uint i = 0 ; i < airDropDesinationAddress.length ; i++ ) {
ERC20Interface(contractObj).transferFrom( tokenRepo, airDropDesinationAddress[i],amounts[i]);
}
}
}Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": false
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.