ETH Price: $3,103.94 (-0.21%)
Gas: 4 Gwei

Transaction Decoder

Block:
6324869 at Sep-13-2018 03:34:57 PM +UTC
Transaction Fee:
0.039634864 ETH $123.02
Gas Used:
966,704 Gas / 41 Gwei

Account State Difference:

  Address   Before After State Difference Code
0x1A41f3Db...f3cf7658a
0.99 Eth
Nonce: 0
0.950365136 Eth
Nonce: 1
0.039634864
(firepool)
157.08691104227604148 Eth157.12654590627604148 Eth0.039634864
0xcCE629bA...55C5309c5
0 Eth
Nonce: 0
0 Eth
Nonce: 1
From: 0 To: 2047162681885630468664627247674046724342192896273817723120031889306371711639194756246861660363586602482412800637087076737384724645645489540187366866699465582028231832317942387018597767571414427634881746631683498476720002775610825913716143842695533459291656211408490470528156640394941033264917019750107337690602610177335689439783882220973421969706606337652606653492740366414646299471644490941094559454300493165531931696279427632614433465147294389990912198308294083963450740487630413937453569980039614935451054728270353090310105406273184388286984895643541474471747702065143710427802497815879827774901227055562716997914101857337723186292478722258551246880089870898471225724414905349817346346950927477467482300293041122843755869406977981614992684621925630315266181833653007898433596514226841139315374031624400447555303159327109449211226826697961729132112119030079869471666800000736820472580274634022329622919129539070015894504835287667899597433933867631203078169900192407551323154246869183612082114337077190781718181505121189765622449221976157629682675015834796395677879302388843528914594618711036463830223897395762452020457095099484251972131422597549251999392344375816509116399320264111374896412621406012185767192381447982380116561918674035947086743213795756003072653793811031688252360569860805181461931696768343624651442999780909060885469844744701530128635249858108213774861590478834281756473266534484645631934621282591718714625489878921858946500639468020570358802368889331035769380344368686780591677474752314210794124040024881911944470214692348178693056324436812247463360683987845935083625870558768286071929497703511171908139478336064710360053789942412559591953979106534209174865968935699556695203241590300821087042497904344866846927283795950369489471575712245192708731896976254774460126660332452268583488980541655719063845109722560085102818169670126653049539773208252360286618460404952362477464106524627343761650287131557639725176855176433031068117352112548199176971159148902923380825668331376134193371182558850714513686236257523865349141370060650678798146381214506649382409423057611065089588974663520987488119069704018315593669731606428624898997174108124514223529941729053882796933330247315114726239314502912118674360214735838887726399652956195086286472822743004512095276805218610312901743256458510366964553930542684778703970388090020636257672848228002289563129213121779732636890540025364902946527462632001173058637348958644427773189545370869403462890704005147207499223221901237133100509650203338481200818581425783772697495077848431083111441868640452702998644847013727549140826949812957693140529654299192783302287410854376331002731125091526510237423371781297730280553749356971805620132175728867310987215726533219163954526318075447792231103380521981601913844994615676473377784954364794494456373956393063428651157040238840485507794212062526308377571750289694758343424073567173735088535912706844933869152047818499774413522956718149821819938988174094429717072923262844040322055876133268994536506851029035166575090776159639781178778136242260917474747728215898212231975070647062534150456463429451201793412272562652346840612843681221208877232547056571036687118226946365575441084136707413181958244414018047838830953741773677431636332284833963843512972451716969087062572932341990960869020974223751203483734466412338162645333931761124384348750831284202983635186360368906979167441483081713647602755004546571497118243309183150103067557397364430224967102416754165381464708645468187987814796860263226114748067827653121424087959911311523920391926690570889839683281390913889431304208237996352349540612456595301488426056003061653874958945483413927409770399876385431182709879720591088744501102969339043192874469272291633957426320939050275339475312132866289585969880429793144161890961558130353852223963680526307491362222211354630705558472011795508269244074980027946057899912598910645095389009529430848884005073705307985924047190272298894989307501134408045896935929562939473804884380006811216690150782686103727053148348344157240252377167927467461045098129228361686125274276946247757125771401614558394404925971400944392591765924887574007275270350808943847187139418130850440374225217306163368870194643934606157881722940397401741014526519293906086704985789394747416672912114549487327884670405273374715174494298464485862719118600692983750912764582252815468956481893760043299679804959492685650379782974253894468037844415599505599285043578485702325899691961578087787343811985909877546385798143310978948047383079070254398496604907875522259457299306824821631087717782421278176321974225330526887546942120785187937043252099351630752269088763430407842344323142163840214794097999167679420303779570728734251250454816970772378606215953152802925782319503731795051419894628025145039197483373123616310518217838528165079162137313699379312140678349029109729599247855661365356150580985066923768394208462824083270047924100569983188090265867882796897349179598146292450345665902088376319625635053196563950975070826027850044600903104047115082194887985970095680552014138741017530019905067296189092258200384123936679223004661897611010889088249606280978124821496408680492271722649568467373636838247701772596178451729079396933075108492196211658340377495007709459600176329155954915056818988613097014271734888017661953042494821397212148689428276988783418444636406997971730339820212624797768326862712290480829132362466717509446876909540698976448491449430202059904571326096476024996883187748107375448443754337059222699876610237718116306349453220064940753714165611485934783151632610325499691820223507414059331830458207356918670641541491343641155956808748068694568634589154692808025953029004655326844608431887806925492531688395794867413508704874261188877371828984797369582362432939151759308456832426926721327276923587068946228083042640546258772083390833963979984719882891329141214408293878156452793754477510737983771925131657620877895438998799898428900729558994144609345887998799421957601903995808808065410469007965068210563593555194790715844355632898216720718378394504101145199660338882274668187068560694121539914913065811331635875943003338451760633990053040593532652578568116276412251817690571541522753581772653973080983623954689708921978536791610262257200013829072611200161535932952898728984624940031357211365823427590830292235887175857646191276912137338438311500388833705954442106439163628898584568608526567529941211241097541617962491069327998191760366732291225744999383537893188452061241207315297690671737377950217838220044237791882901287811623893018342099143035018427199596158082592544099922510652594722752251999676332649769904575283491830918391252091753780285460110245618127107172872891812716836838254100596385220064943582763645543844995607368895906594418335258870445627998376675968298698939224603389020462329398930400338986155285645446472329286124333226203311381664326610413597289719663295822014786650937745515712989519321902456315981317370251233846530097515494546614215006723689000067928479159276184131956538199278487728768782871323196500774941823139362060951121227037382313104287674653024445005865

Execution Trace

ABXPToken.60806040( )
pragma solidity ^0.4.18;

// ----------------------------------------------------------------------------
// 'ABXP' token contract
//
// Deployed to : 0x5A86f0cafD4ef3ba4f0344C138afcC84bd1ED222
// Symbol      : ABXP
// Name        : Asobicoin promo
// Total supply: 20,000,000
// Decimals    : 0
// ----------------------------------------------------------------------------


// ----------------------------------------------------------------------------
// Safe maths
// ----------------------------------------------------------------------------
contract SafeMath {
    function safeAdd(uint a, uint b) public pure returns (uint c) {
        c = a + b;
        require(c >= a);
    }
    function safeSub(uint a, uint b) public pure returns (uint c) {
        require(b <= a);
        c = a - b;
    }
    function safeMul(uint a, uint b) public pure returns (uint c) {
        c = a * b;
        require(a == 0 || c / a == b);
    }
    function safeDiv(uint a, uint b) public pure returns (uint c) {
        require(b > 0);
        c = a / b;
    }
}


// ----------------------------------------------------------------------------
// ERC Token Standard #20 Interface
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md
// ----------------------------------------------------------------------------
contract ERC20Interface {
    function totalSupply() public constant returns (uint);
    function balanceOf(address tokenOwner) public constant returns (uint balance);
    function allowance(address tokenOwner, address spender) public constant returns (uint remaining);
    function transfer(address to, uint tokens) public returns (bool success);
    function approve(address spender, uint tokens) public returns (bool success);
    function transferFrom(address from, address to, uint tokens) public returns (bool success);

    event Transfer(address indexed from, address indexed to, uint tokens);
    event Approval(address indexed tokenOwner, address indexed spender, uint tokens);
}


// ----------------------------------------------------------------------------
// Contract function to receive approval and execute function in one call
//
// Borrowed from MiniMeToken
// ----------------------------------------------------------------------------
contract ApproveAndCallFallBack {
    function receiveApproval(address from, uint256 tokens, address token, bytes data) public;
}


// ----------------------------------------------------------------------------
// Owned contract
// ----------------------------------------------------------------------------
contract Owned {
    address public owner;
    address public newOwner;

    event OwnershipTransferred(address indexed _from, address indexed _to);

    constructor() public {
        owner = msg.sender;
    }

    modifier onlyOwner {
        require(msg.sender == owner);
        _;
    }

    function transferOwnership(address _newOwner) public onlyOwner {
        newOwner = _newOwner;
    }
    function acceptOwnership() public {
        require(msg.sender == newOwner);
        emit OwnershipTransferred(owner, newOwner);
        owner = newOwner;
        newOwner = address(0);
    }
}


// ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ----------------------------------------------------------------------------
contract ABXPToken is ERC20Interface, Owned, SafeMath {
    string public symbol;
    string public  name;
    uint8 public decimals;
    uint public _totalSupply;

    mapping(address => uint) balances;
    mapping(address => mapping(address => uint)) allowed;


    // ------------------------------------------------------------------------
    // Constructor
    // ------------------------------------------------------------------------
    constructor () public {
        symbol = "ABXP";
        name = "Asobicoin promo";
        decimals = 0;
        _totalSupply = 20000000;//1e0*total
        balances[0xDb286DBBD9335AB758aF49Df7C6ebfD488D29406] = _totalSupply;
        emit Transfer(address(0), 0xDb286DBBD9335AB758aF49Df7C6ebfD488D29406, _totalSupply);
    }


    // ------------------------------------------------------------------------
    // Total supply
    // ------------------------------------------------------------------------
    function totalSupply() public constant returns (uint) {
        return _totalSupply  - balances[address(0)];
    }


    // ------------------------------------------------------------------------
    // Get the token balance for account tokenOwner
    // ------------------------------------------------------------------------
    function balanceOf(address tokenOwner) public constant returns (uint balance) {
        return balances[tokenOwner];
    }


    // ------------------------------------------------------------------------
    // Transfer the balance from token owner's account to to account
    // - Owner's account must have sufficient balance to transfer
    // - 0 value transfers are allowed
    // ------------------------------------------------------------------------
    function transfer(address to, uint tokens) public returns (bool success) {
        balances[msg.sender] = safeSub(balances[msg.sender], tokens);
        balances[to] = safeAdd(balances[to], tokens);
        emit Transfer(msg.sender, to, tokens);
        return true;
    }


    // ------------------------------------------------------------------------
    // Token owner can approve for spender to transferFrom(...) tokens
    // from the token owner's account
    //
    // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md
    // recommends that there are no checks for the approval double-spend attack
    // as this should be implemented in user interfaces
    // ------------------------------------------------------------------------
    function approve(address spender, uint tokens) public returns (bool success) {
        allowed[msg.sender][spender] = tokens;
        emit Approval(msg.sender, spender, tokens);
        return true;
    }


    // ------------------------------------------------------------------------
    // Transfer tokens from the from account to the to account
    //
    // The calling account must already have sufficient tokens approve(...)-d
    // for spending from the from account and
    // - From account must have sufficient balance to transfer
    // - Spender must have sufficient allowance to transfer
    // - 0 value transfers are allowed
    // ------------------------------------------------------------------------
    function transferFrom(address from, address to, uint tokens) public returns (bool success) {
        balances[from] = safeSub(balances[from], tokens);
        allowed[from][msg.sender] = safeSub(allowed[from][msg.sender], tokens);
        balances[to] = safeAdd(balances[to], tokens);
        emit Transfer(from, to, tokens);
        return true;
    }


    // ------------------------------------------------------------------------
    // Returns the amount of tokens approved by the owner that can be
    // transferred to the spender's account
    // ------------------------------------------------------------------------
    function allowance(address tokenOwner, address spender) public constant returns (uint remaining) {
        return allowed[tokenOwner][spender];
    }


    // ------------------------------------------------------------------------
    // Token owner can approve for spender to transferFrom(...) tokens
    // from the token owner's account. The spender contract function
    // receiveApproval(...) is then executed
    // ------------------------------------------------------------------------
    function approveAndCall(address spender, uint tokens, bytes data) public returns (bool success) {
        allowed[msg.sender][spender] = tokens;
        emit Approval(msg.sender, spender, tokens);
        ApproveAndCallFallBack(spender).receiveApproval(msg.sender, tokens, this, data);
        return true;
    }


    // ------------------------------------------------------------------------
    // Don't accept ETH
    // ------------------------------------------------------------------------
    function () public payable {
        revert();
    }


    // ------------------------------------------------------------------------
    // Owner can transfer out any accidentally sent ERC20 tokens
    // ------------------------------------------------------------------------
    function transferAnyERC20Token(address tokenAddress, uint tokens) public onlyOwner returns (bool success) {
        return ERC20Interface(tokenAddress).transfer(owner, tokens);
    }
}