Transaction Hash:
Block:
11005392 at Oct-07-2020 12:18:53 AM +UTC
Transaction Fee:
0.0022233 ETH
$4.27
Gas Used:
37,055 Gas / 60 Gwei
Emitted Events:
| 293 |
Telcoin.Transfer( _from=[Sender] 0x3788c4891d261744fa70dc89f5bc3323ed137156, _to=0x391C9d82Af4eDd7D3eC23cEFaBF9A35B630b3A7A, _value=1259289825 )
|
Account State Difference:
| Address | Before | After | State Difference | ||
|---|---|---|---|---|---|
| 0x3788c489...3eD137156 |
0.013724627 Eth
Nonce: 53
|
0.011501327 Eth
Nonce: 54
| 0.0022233 | ||
| 0x467Bccd9...82827790F | |||||
|
0xEA674fdD...16B898ec8
Miner
| (Ethermine) | 372.914419873528002536 Eth | 372.916643173528002536 Eth | 0.0022233 |
Execution Trace
Telcoin.transfer( _to=0x391C9d82Af4eDd7D3eC23cEFaBF9A35B630b3A7A, _value=1259289825 ) => ( True )
transfer[Telcoin (ln:68)]
sub[Telcoin (ln:73)]add[Telcoin (ln:74)]Transfer[Telcoin (ln:75)]
pragma solidity 0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
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;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
assert(b <= a);
return a - b;
}
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
assert(c >= a);
return c;
}
}
contract Telcoin {
using SafeMath for uint256;
event Transfer(address indexed _from, address indexed _to, uint _value);
event Approval(address indexed _owner, address indexed _spender, uint _value);
string public constant name = "Telcoin";
string public constant symbol = "TEL";
uint8 public constant decimals = 2;
/// The ERC20 total fixed supply of tokens.
uint256 public constant totalSupply = 100000000000 * (10 ** uint256(decimals));
/// Account balances.
mapping(address => uint256) balances;
/// The transfer allowances.
mapping (address => mapping (address => uint256)) internal allowed;
/// The initial distributor is responsible for allocating the supply
/// into the various pools described in the whitepaper. This can be
/// verified later from the event log.
function Telcoin(address _distributor) public {
balances[_distributor] = totalSupply;
Transfer(0x0, _distributor, totalSupply);
}
/// ERC20 balanceOf().
function balanceOf(address _owner) public view returns (uint256) {
return balances[_owner];
}
/// ERC20 transfer().
function transfer(address _to, uint256 _value) public returns (bool) {
require(_to != address(0));
require(_value <= balances[msg.sender]);
// SafeMath.sub will throw if there is not enough balance.
balances[msg.sender] = balances[msg.sender].sub(_value);
balances[_to] = balances[_to].add(_value);
Transfer(msg.sender, _to, _value);
return true;
}
/// ERC20 transferFrom().
function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
require(_to != address(0));
require(_value <= balances[_from]);
require(_value <= allowed[_from][msg.sender]);
balances[_from] = balances[_from].sub(_value);
balances[_to] = balances[_to].add(_value);
allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value);
Transfer(_from, _to, _value);
return true;
}
/// ERC20 approve(). Comes with the standard caveat that an approval
/// meant to limit spending may actually allow more to be spent due to
/// unfortunate ordering of transactions. For safety, this method
/// should only be called if the current allowance is 0. Alternatively,
/// non-ERC20 increaseApproval() and decreaseApproval() can be used.
function approve(address _spender, uint256 _value) public returns (bool) {
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
return true;
}
/// ERC20 allowance().
function allowance(address _owner, address _spender) public view returns (uint256) {
return allowed[_owner][_spender];
}
/// Not officially ERC20. Allows an allowance to be increased safely.
function increaseApproval(address _spender, uint _addedValue) public returns (bool) {
allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue);
Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
return true;
}
/// Not officially ERC20. Allows an allowance to be decreased safely.
function decreaseApproval(address _spender, uint _subtractedValue) public returns (bool) {
uint oldValue = allowed[msg.sender][_spender];
if (_subtractedValue > oldValue) {
allowed[msg.sender][_spender] = 0;
} else {
allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue);
}
Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
return true;
}
}