Transaction Hash:
Block:
5856508 at Jun-26-2018 08:32:18 AM +UTC
Transaction Fee:
0.00037125 ETH
$0.79
Gas Used:
37,125 Gas / 10 Gwei
Emitted Events:
| 16 |
EdgelessToken.Transfer( from=[Sender] 0x5e575279bf9f4acf0a130c186861454247394c06, to=0xef0bc05e0531dC5d5B2B3Bac023B16F2D3FF68A1, value=394 )
|
Account State Difference:
| Address | Before | After | State Difference | ||
|---|---|---|---|---|---|
| 0x08711D3B...8a7F8e39c | |||||
|
0x52bc44d5...b7d7bE3b5
Miner
| (Nanopool) | 6,636.247230925966002615 Eth | 6,636.247602175966002615 Eth | 0.00037125 | |
| 0x5E575279...247394C06 | (Liqui.io 2) |
11.708515694632628991 Eth
Nonce: 365440
|
11.708144444632628991 Eth
Nonce: 365441
| 0.00037125 |
Execution Trace
EdgelessToken.transfer( _to=0xef0bc05e0531dC5d5B2B3Bac023B16F2D3FF68A1, _value=394 ) => ( success=True )
transfer[EdgelessToken (ln:67)]
safeSub[EdgelessToken (ln:69)]safeSub[EdgelessToken (ln:70)]safeAdd[EdgelessToken (ln:71)]Transfer[EdgelessToken (ln:72)]
/**
* The Edgeless token contract complies with the ERC20 standard (see https://github.com/ethereum/EIPs/issues/20).
* Additionally tokens can be locked for a defined time interval by token holders.
* The owner's share of tokens is locked for the first year and all tokens not
* being sold during the crowdsale but 60.000.000 (owner's share + bounty program) are burned.
* Author: Julia Altenried
* */
pragma solidity ^0.4.6;
contract SafeMath {
//internals
function safeMul(uint a, uint b) internal returns (uint) {
uint c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function safeSub(uint a, uint b) internal returns (uint) {
assert(b <= a);
return a - b;
}
function safeAdd(uint a, uint b) internal returns (uint) {
uint c = a + b;
assert(c>=a && c>=b);
return c;
}
function assert(bool assertion) internal {
if (!assertion) throw;
}
}
contract EdgelessToken is SafeMath {
/* Public variables of the token */
string public standard = 'ERC20';
string public name = 'Edgeless';
string public symbol = 'EDG';
uint8 public decimals = 0;
uint256 public totalSupply;
address public owner;
/* from this time on tokens may be transfered (after ICO)*/
uint256 public startTime = 1490112000;
/* tells if tokens have been burned already */
bool burned;
/* This creates an array with all balances */
mapping (address => uint256) public balanceOf;
mapping (address => mapping (address => uint256)) public allowance;
/* This generates a public event on the blockchain that will notify clients */
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
event Burned(uint amount);
/* Initializes contract with initial supply tokens to the creator of the contract */
function EdgelessToken() {
owner = 0x003230BBE64eccD66f62913679C8966Cf9F41166;
balanceOf[owner] = 500000000; // Give the owner all initial tokens
totalSupply = 500000000; // Update total supply
}
/* Send some of your tokens to a given address */
function transfer(address _to, uint256 _value) returns (bool success){
if (now < startTime) throw; //check if the crowdsale is already over
if(msg.sender == owner && now < startTime + 1 years && safeSub(balanceOf[msg.sender],_value) < 50000000) throw; //prevent the owner of spending his share of tokens within the first year
balanceOf[msg.sender] = safeSub(balanceOf[msg.sender],_value); // Subtract from the sender
balanceOf[_to] = safeAdd(balanceOf[_to],_value); // Add the same to the recipient
Transfer(msg.sender, _to, _value); // Notify anyone listening that this transfer took place
return true;
}
/* Allow another contract or person to spend some tokens in your behalf */
function approve(address _spender, uint256 _value) returns (bool success) {
allowance[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
return true;
}
/* A contract or person attempts to get the tokens of somebody else.
* This is only allowed if the token holder approved. */
function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {
if (now < startTime && _from!=owner) throw; //check if the crowdsale is already over
if(_from == owner && now < startTime + 1 years && safeSub(balanceOf[_from],_value) < 50000000) throw; //prevent the owner of spending his share of tokens within the first year
var _allowance = allowance[_from][msg.sender];
balanceOf[_from] = safeSub(balanceOf[_from],_value); // Subtract from the sender
balanceOf[_to] = safeAdd(balanceOf[_to],_value); // Add the same to the recipient
allowance[_from][msg.sender] = safeSub(_allowance,_value);
Transfer(_from, _to, _value);
return true;
}
/* to be called when ICO is closed, burns the remaining tokens but the owners share (50 000 000) and the ones reserved
* for the bounty program (10 000 000).
* anybody may burn the tokens after ICO ended, but only once (in case the owner holds more tokens in the future).
* this ensures that the owner will not posses a majority of the tokens. */
function burn(){
//if tokens have not been burned already and the ICO ended
if(!burned && now>startTime){
uint difference = safeSub(balanceOf[owner], 60000000);//checked for overflow above
balanceOf[owner] = 60000000;
totalSupply = safeSub(totalSupply, difference);
burned = true;
Burned(difference);
}
}
}