Verified contractPartial
T7Token
Address0x3a9e5135efbc2c23ef5b04df6465109c5b1e7d4f
- Balance
0 ETH
- Transactions
126
- Compiler
solc 0.5.14
- Same code
1 more contract
Details
- Compiler
- solc 0.5.14+commit.01f1aaa4
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 11,163,449
- Creation transaction
- 0xc749504d3e…1cd79c0971
- Main copy (most transactions)
- 0xbe48e1ea…36a09b93
T7Token.sol
/**
*Submitted for verification at Etherscan.io on 2020-10-14
*/
/**
* T7Token
* http://t7token.com/
*
**/
pragma solidity >=0.4.23 <0.6.0;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
/**
* @dev Integer division of two numbers, truncating the quotient.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
// assert(b > 0); // Solidity automatically throws when dividing by 0
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
/**
* @dev Substracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
assert(b <= a);
return a - b;
}
/**
* @dev Adds two numbers, throws on overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
assert(c >= a);
return c;
}
}
contract T7Token {
event Multisended(uint256 value , address sender);
using SafeMath for uint256;
function multisendEther(address payable[] memory _contributors, uint256[] memory _balances) public payable {
uint256 total = msg.value;
uint256 i = 0;
for (i; i < _contributors.length; i++) {
require(total >= _balances[i] );
total = total.sub(_balances[i]);
_contributors[i].transfer(_balances[i]);
}
emit Multisended(msg.value, msg.sender);
}
}Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.