Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Send Bonus | 7863658 | 2094 days ago | IN | 0 ETH | 0.00026588 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xEa443351...853F05697 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
SendBonus
Compiler Version
v0.4.24+commit.e67f0147
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2019-05-28 */ pragma solidity ^0.4.24; contract Owned { address public owner; constructor() public { owner = msg.sender; } modifier onlyOwner { require(msg.sender == owner); _; } function transferOwnership(address newOwner) public onlyOwner { owner = newOwner; } } contract SafeMath { function mul(uint a, uint b) internal pure returns (uint) { uint c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint a, uint b) internal pure returns (uint) { assert(b > 0); uint c = a / b; assert(a == b * c + a % b); return c; } function sub(uint a, uint b) internal pure returns (uint) { assert(b <= a); return a - b; } function add(uint a, uint b) internal pure returns (uint) { uint c = a + b; assert(c >= a); return c; } } interface Qobit { function transfer(address _to, uint256 _value) external returns (bool success); function balanceOf(address _owner) external view returns (uint256 balance); } // THIS IS the Smart Contract for QFP NODE bonus. contract SendBonus is SafeMath, Owned { Qobit public token; event BonusSent(address user, uint256 amount); constructor(address _addressOfToken) public { token = Qobit(_addressOfToken); } function sendBonus(address[] dests, uint256[] values) onlyOwner public returns(bool success) { require(dests.length > 0); require(dests.length == values.length); // calculate total amount uint256 totalAmount = 0; for (uint i = 0; i < values.length; i++) { totalAmount = add(totalAmount, values[i]); } require(totalAmount > 0, "total amount must > 0"); require(totalAmount < token.balanceOf(address(this)), "total amount must < this address token balance "); for (uint j = 0; j < dests.length; j++) { token.transfer(dests[j], values[j]); // mul decimal emit BonusSent(dests[j], values[j]); } return true; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"dests","type":"address[]"},{"name":"values","type":"uint256[]"}],"name":"sendBonus","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_addressOfToken","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"user","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"BonusSent","type":"event"}]
Deployed Bytecode
0x6080604052600436106100615763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416638da5cb5b8114610066578063edfafa3614610097578063f2fde38b14610139578063fc0c546a1461015c575b600080fd5b34801561007257600080fd5b5061007b610171565b60408051600160a060020a039092168252519081900360200190f35b3480156100a357600080fd5b506040805160206004803580820135838102808601850190965280855261012595369593946024949385019291829185019084908082843750506040805187358901803560208181028481018201909552818452989b9a9989019892975090820195509350839250850190849080828437509497506101809650505050505050565b604080519115158252519081900360200190f35b34801561014557600080fd5b5061015a600160a060020a03600435166104fc565b005b34801561016857600080fd5b5061007b610542565b600054600160a060020a031681565b60008054819081908190600160a060020a0316331461019e57600080fd5b85516000106101ac57600080fd5b84518651146101ba57600080fd5b60009250600091505b84518210156101fa576101ed8386848151811015156101de57fe5b90602001906020020151610551565b92506001909101906101c3565b6000831161026957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f746f74616c20616d6f756e74206d757374203e20300000000000000000000000604482015290519081900360640190fd5b600154604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051600160a060020a03909216916370a08231916024808201926020929091908290030181600087803b1580156102cf57600080fd5b505af11580156102e3573d6000803e3d6000fd5b505050506040513d60208110156102f957600080fd5b5051831061038e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f746f74616c20616d6f756e74206d757374203c2074686973206164647265737360448201527f20746f6b656e2062616c616e6365200000000000000000000000000000000000606482015290519081900360840190fd5b5060005b85518110156104f0576001548651600160a060020a039091169063a9059cbb908890849081106103be57fe5b9060200190602002015187848151811015156103d657fe5b906020019060200201516040518363ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050602060405180830381600087803b15801561044b57600080fd5b505af115801561045f573d6000803e3d6000fd5b505050506040513d602081101561047557600080fd5b505085517f585aea9023b3d6418c7ef40da9891519064bb45db146787918f4a3c3103d55b6908790839081106104a757fe5b9060200190602002015186838151811015156104bf57fe5b602090810290910181015160408051600160a060020a039094168452918301528051918290030190a1600101610392565b50600195945050505050565b600054600160a060020a0316331461051357600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600154600160a060020a031681565b60008282018381101561056057fe5b93925050505600a165627a7a7230582052e2ea11d8fc605c4fa5db325ac5926808ec306e0064d0bd10ac50f084cd665b0029
Deployed Bytecode Sourcemap
1203:984:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;50:20:0;;;;;;;;-1:-1:-1;;;;;50:20:0;;;;;;;;;;;;;;1428:756;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1428:756:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1428:756:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1428:756:0;;;;-1:-1:-1;1428:756:0;-1:-1:-1;1428:756:0;;-1:-1:-1;1428:756:0;;;;;;;;;-1:-1:-1;1428:756:0;;-1:-1:-1;1428:756:0;;-1:-1:-1;;;;;;;1428:756:0;;;;;;;;;;;;;;;;;;;231:97;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;231:97:0;-1:-1:-1;;;;;231:97:0;;;;;;;1248:18;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1248:18:0;;;;50:20;;;-1:-1:-1;;;;;50:20:0;;:::o;1428:756::-;1507:12;197:5;;1507:12;;;;;;-1:-1:-1;;;;;197:5:0;183:10;:19;175:28;;;;;;1540:12;;1555:1;-1:-1:-1;1532:25:0;;;;;;1592:13;;1576:12;;:29;1568:38;;;;;;1676:1;1654:23;;1702:1;1693:10;;1688:109;1709:6;:13;1705:1;:17;1688:109;;;1758:27;1762:11;1775:6;1782:1;1775:9;;;;;;;;;;;;;;;;;;1758:3;:27::i;:::-;1744:41;-1:-1:-1;1724:3:0;;;;;1688:109;;;1831:1;1817:15;;1809:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1891:5;;:30;;;;;;1915:4;1891:30;;;;;;-1:-1:-1;;;;;1891:5:0;;;;:15;;:30;;;;;;;;;;;;;;;:5;;:30;;;5:2:-1;;;;30:1;27;20:12;5:2;1891:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1891:30:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1891:30:0;1877:44;;1869:104;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2000:1:0;1986:167;2007:5;:12;2003:1;:16;1986:167;;;2041:5;;2056:8;;-1:-1:-1;;;;;2041:5:0;;;;:14;;2056:5;;2062:1;;2056:8;;;;;;;;;;;;;;2066:6;2073:1;2066:9;;;;;;;;;;;;;;;;;;2041:35;;;;;;;;;;;;;-1:-1:-1;;;;;2041:35:0;-1:-1:-1;;;;;2041:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2041:35:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2041:35:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;2121:8:0;;2111:30;;2121:5;;2127:1;;2121:8;;;;;;;;;;;;;;2131:6;2138:1;2131:9;;;;;;;;;;;;;;;;;;;;2111:30;;;-1:-1:-1;;;;;2111:30:0;;;;;;;;;;;;;;;;;;2021:3;;1986:167;;;-1:-1:-1;2172:4:0;;1428:756;-1:-1:-1;;;;;1428:756:0:o;231:97::-;197:5;;-1:-1:-1;;;;;197:5:0;183:10;:19;175:28;;;;;;304:5;:16;;-1:-1:-1;;304:16:0;-1:-1:-1;;;;;304:16:0;;;;;;;;;;231:97::o;1248:18::-;;;-1:-1:-1;;;;;1248:18:0;;:::o;820:135::-;872:4;898:5;;;921:6;;;;914:14;;;;946:1;820:135;-1:-1:-1;;;820:135:0:o
Swarm Source
bzzr://52e2ea11d8fc605c4fa5db325ac5926808ec306e0064d0bd10ac50f084cd665b
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.