Verified contractPartial
Distributor
Address0x046bfc1c560c1911184a0efa48dfe90edec45f75
- Balance
0 ETH
- Transactions
11
- Compiler
solc 0.4.17
- Same code
Only this contract
Details
- Compiler
- solc 0.4.17+commit.bdeb9e52
- Language
- solidity
- Optimization
- No
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 4,319,148
- Creation transaction
- 0xa49d33b77d…f329ab1d7a
Distributor.sol
pragma solidity ^0.4.17;
contract Distributor
{
address owner = msg.sender;
address newOwner = msg.sender;
function ChangeOwner(address _newOwner)
public
{
require(msg.sender == owner);
newOwner = _newOwner;
}
function ConfirmOwner()
public
{
require(newOwner==msg.sender);
owner=newOwner;
}
function Withdrawal()
public
payable
{
owner.transfer(this.balance);
}
function Send(address[] addr, uint[] val)
public
payable
{
require(val.length==addr.length);
uint total;
for (uint j=0; j<val.length; j++)
{
require(addr[j]!=0x0);
total+=val[j];
}
if(msg.value>=total)
{
for (uint i=0; i<addr.length; i++)
{
addr[i].transfer(val[i]);
}
}
}
}Compiler settingsShow
{
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": false
},
"remappings": []
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.