Transaction Hash:
Block:
7899077 at Jun-05-2019 11:53:32 AM +UTC
Transaction Fee:
0.000147192258014208 ETH
$0.32
Gas Used:
36,597 Gas / 4.021976064 Gwei
Emitted Events:
| 112 |
ERC20Standard.Transfer( _from=[Sender] 0x456d9b43692831373d8f8dac7b3004c4332b50f2, _to=0x16dc43Dc0E0bFf430c703E61C893737d5B932be8, _value=100000000000000000000 )
|
Account State Difference:
| Address | Before | After | State Difference | ||
|---|---|---|---|---|---|
|
0x2a5994b5...396aaDd38
Miner
| (PandaMiner) | 245.992423045071088707 Eth | 245.992570237329102915 Eth | 0.000147192258014208 | |
| 0x456D9b43...4332b50f2 |
0.065124934128893195 Eth
Nonce: 2695
|
0.064977741870878987 Eth
Nonce: 2696
| 0.000147192258014208 | ||
| 0x5c7F7e79...8C98dcF06 |
Execution Trace
ERC20Standard.transfer( _recipient=0x16dc43Dc0E0bFf430c703E61C893737d5B932be8, _value=100000000000000000000 )
transfer[ERC20Standard (ln:63)]
Transfer[ERC20Standard (ln:67)]
/**
* Source Code first verified at https://etherscan.io on Thursday, April 19, 2018
(UTC) */
pragma solidity ^0.4.11;
//------------------------------------------------------------------------------------------------
// ERC20 Standard Token Implementation, based on ERC Standard:
// https://github.com/ethereum/EIPs/issues/20
// With some inspiration from ConsenSys HumanStandardToken as well
// Copyright 2017 BattleDrome
//------------------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------------------
// LICENSE
//
// This file is part of BattleDrome.
//
// BattleDrome is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// BattleDrome is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with BattleDrome. If not, see <http://www.gnu.org/licenses/>.
//------------------------------------------------------------------------------------------------
contract ERC20Standard {
uint256 public totalSupply;
bool public mintable;
string public name;
uint256 public decimals;
string public symbol;
address public owner;
mapping (address => uint256) balances;
mapping (address => mapping (address => uint256)) allowed;
function ERC20Standard(uint256 _totalSupply, string _symbol, string _name, bool _mintable) public {
decimals = 18;
symbol = _symbol;
name = _name;
mintable = _mintable;
owner = msg.sender;
totalSupply = _totalSupply * (10 ** decimals);
balances[msg.sender] = totalSupply;
}
//Fix for short address attack against ERC20
modifier onlyPayloadSize(uint size) {
assert(msg.data.length == size + 4);
_;
}
function balanceOf(address _owner) constant public returns (uint256) {
return balances[_owner];
}
function transfer(address _recipient, uint256 _value) onlyPayloadSize(2*32) public {
require(balances[msg.sender] >= _value && _value > 0);
balances[msg.sender] -= _value;
balances[_recipient] += _value;
Transfer(msg.sender, _recipient, _value);
}
function transferFrom(address _from, address _to, uint256 _value) public {
require(balances[_from] >= _value && allowed[_from][msg.sender] >= _value && _value > 0);
balances[_to] += _value;
balances[_from] -= _value;
allowed[_from][msg.sender] -= _value;
Transfer(_from, _to, _value);
}
function approve(address _spender, uint256 _value) public {
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
}
function allowance(address _owner, address _spender) constant public returns (uint256) {
return allowed[_owner][_spender];
}
function mint(uint256 amount) public {
assert(amount >= 0);
require(msg.sender == owner);
balances[msg.sender] += amount;
totalSupply += amount;
}
//Event which is triggered to log all transfers to this contract's event log
event Transfer(
address indexed _from,
address indexed _to,
uint256 _value
);
//Event which is triggered whenever an owner approves a new allowance for a spender.
event Approval(
address indexed _owner,
address indexed _spender,
uint256 _value
);
}