Verified contractPartial
ENXAirDrop
Address0x2ad8d0042884809a03603627d7977a866a7fc93c
- Balance
0 ETH
- Transactions
263
- Compiler
solc 0.4.18
- Same code
6 more contracts
Details
- Compiler
- solc 0.4.18+commit.9cf6e910
- Language
- solidity
- Optimization
- No
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 5,520,036
- Creation transaction
- 0xd38e465f6b…4d29e494e2
ENXAirDrop.sol
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 ENXAirDrop 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": 0,
"enabled": false
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.