Verified contractPartial
ADTSend1
Address0xe6a1f94228c80fac2bb9cff28d3827d3942c0960
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.4.24
- Same code
1 more contract
Details
- Compiler
- solc 0.4.24+commit.e67f0147
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 6,791,881
- Creation transaction
- 0xa6d48d7809…bb6791c528
ADTSend1.sol
// Recovered by EthereumHistory (ethereumhistory.com) -sw
pragma solidity ^0.4.24;
contract Token {
function transfer(address _to,uint256 _value) public returns (bool);
function transferFrom(address _from,address _to,uint256 _value) public returns (bool);
}
contract ADTSend1 {
Token public token;
event TransferToken(address indexed to, uint256 value);
event TransferFromToken(address indexed from,address indexed to, uint256 value);
uint i=0;
uint256 samount=0;
function adTransfer(address source, address[] recipents, uint256[] amount,uint decimals) public {
token=Token(source);
for(i=0;i<recipents.length;i++) {
samount=amount[i];
token.transfer(recipents[i],amount[i]*(10**decimals));
emit TransferToken(recipents[i],samount);
}
}
function adTransferFrom(address source, address[] recipents, uint256[] amount,uint decimals) public {
token=Token(source);
for(i=0;i<recipents.length;i++) {
token.transferFrom(msg.sender,recipents[i],amount[i]*(10**decimals));
emit TransferFromToken(msg.sender,recipents[i],amount[i]);
}
}
function adTransferA(address source, address[] recipents, uint256 amount,uint decimals) public {
samount=amount;
token=Token(source);
for(i=0;i<recipents.length;i++) {
token.transfer(recipents[i],amount*(10**decimals));
emit TransferToken(recipents[i], samount);
}
}
function adTransferFromA(address source, address[] recipents, uint256 amount,uint decimals) public {
samount=amount;
token=Token(source);
for(i=0;i<recipents.length;i++) {
token.transferFrom(msg.sender,recipents[i],amount*(10**decimals));
emit TransferFromToken(msg.sender,recipents[i],samount);
}
}
}Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.