ETH Price: $2,669.21 (+4.24%)

Transaction Decoder

Block:
12142984 at Mar-30-2021 09:02:54 PM +UTC
Transaction Fee:
0.15419505 ETH $411.58
Gas Used:
1,027,967 Gas / 150 Gwei

Emitted Events:

Account State Difference:

  Address   Before After State Difference Code
(zhizhu.top)
3,514.995674872568293618 Eth3,515.149869922568293618 Eth0.15419505
0xE0e23Db1...2f5FFEC48
(Merchant Token: Deployer)
0.2857244521 Eth
Nonce: 0
0.1315294021 Eth
Nonce: 1
0.15419505
0xE66b3AA3...69DB3324F
0 Eth
Nonce: 0
0 Eth
Nonce: 1
From: 0 To: 173932722622867110032055130567312460943978868774232987968746605663209975833398017967127176636004781974224563111114571325801939299392571838768311837738524852499778369232150173747487225689637432713332483609371977851212209424399899033598934552341882437297936048044801768788555387958189000914895687836859975483119622585910568309040061552922097874445700204243449386635392409391405565340579179756376933803275481806918485108618310349708793791117111833747075236037822418605826293053371048890814097325585065530980422002044060933682640607344487650914890708164825835818916581556442892777380558928605351023783362981890443446813650362734322251826976099050081074346716343913137917110365487473297254217843743539430695727484403099798568164461662262375496556490859620341081131082302817780753976501357791467619881436720505403641713152120232194417309439968419964764501121079182732073948098618487723325618816353092030420349074902777345201544676712502473182593190403713333398465257026989939012053635179740455339324593263812449086249950413882688214821637826087698745854144467906683850356837373906857032901182007221260828324320197714710544408589049808172983187160715476137283333714956835968408731252651919562197081244895612211339885420738567250865083178948645604336201991844689668150437313789802079025732829342398571247591178307625535271746011421516569467243582104726111239890478003107796506813728552286684919460921535673894609118283909216270608795902952173144250315353321319915770236667295472877864122646798615704901021821764605916399147135066833316935855538419136598798699971980472421414897413545416443173470182402138782361998145243385032108833163332085953957007777179280534388699581034543870072063322023610527655788152493115397438017352186514777274041479021501220534290715471079372858227664969542254869627250971197888599394885548145971988068590001857523460892390975391860390296927515785380187905771664032667510252744807443502270331160133045417734002937846478251785020584254354047629606168950285792112495498828946816032493727500964771210691201832095814250093764032140910052254638541393860853015877753046525606765641490031504100156241179573329073152045134610231846437060346764579966777175244428565682195001189076967608348706605341073526225161221575591734524866464351869858748223904856169217290199963634002259573633029755569976463650566946927509639050500285597573200653431243049587794525857982693574304659468424830028817914938283515584000992963011011818347900354767442371895707359645745556027867240894537921949560532183337750277058736736479131840552827323320653881880785564599977661782803759679884022173999340834087534612871265034477778628926289172771760837595301226173812138790702655895027172251104892536875018627213374470999296224387884731774163034716338149976645668041816236985144952835205894020029645830856851249303473613676056363936417798685777881344690171623991440761957818553170081788729474029873253543857214558212699758017654499704330078093094340020175016203608937602971557416098394346717536907992876505715528512389931406816874433500046339938963968342874774876559661502016928217759654275800639643146666385788260881073981094228232999204807389079518877533944635888215671349139760770500552328984588464633137416509463921004264892750835302215740931813938344429005508489376516913670660926380521963264589960762292081888432484331572650288733439678260497794382945033164929825868367054901988707146293698452359323432117276323616080167467490440529429577441458405849112919244132701799525433324143141902634261340454173269445945337780476777624250643149441083795146902860335219623175454469860069703567510760780675434686855363650304413840248973192388466009627220279476869805010358029037433518577141765069291804301428181589162346539252982490151449185341819208701258345539836480527429575307272297759556495030711029183885501237243483197911181348295890613242549695563384089111947814102997006600225994549322687709120962538662461931216627032362543842846677737751214848085004884896938020099279250133260353053176194147821099891913396793376924503524494722344592644760311458698397016596492419262400045100191010812809942116264858533356576762394683015116755687444949113070039104703708854065639356247250305985560337000746087715782049543341759371894285244147950958209486873653503656572735730803006144612989187555277142061048730390241481123355999174848141201697767292703088924333256903384832143808432387672497141502319810494896427660104045029846330744077744500998654490286086571329351273321697745919422032513869507142903879856140203847797614681054969577994828296745102890836626989570001515502747013296752949700124183535489646420075131552850331974679004139148115702288852426450132388446281335946185695717734248872657191712051231113031901748475388107685800029357265944399902244623890915593117903563771766518834491375030345498517725815474661698002744417339092642759771961248154555411694855189352020917730122413849740118429856287297327111639932876423912538016062082011367759852779064069458331941074179337043611906161041736524146938122458375804973131669491905324787273442121350334010013576913627133622548598601253868799024222167298034869040580286208250575201383774782792028633465159056219886392145540224920096640949441689893650484231554750396220480604806354562873012864669802546263582770391678165390333701382868542431527232961207775367620944785226914087064839162813794911921386302226979354445374157871836929828175886972141328468133104617076291365594392569410108470777712029828831120006808104852936977196587338467555639466746990768798055314867918841288126619185631743674391703649255937835030033012500601945632888391634744845465847204619774868389934013924497214026339697199514009697980920397755505461065005663540639128945221712480930923586350820877378564519492815016887795040622516410163521502354105947270175069497131507892778580719900536949484968283288124669792532325474627666245183354165562168907307954671082086317738064117426345264904161001261743603329098558763053191527178738195901697098097212439396338901470380332321849178063922289834753566826624135843039298533505358052429661924006345738675212121564588739854892396939077273544681938397044411782130771049850688767145960005444061923099873499672391820914913190509405130749693560650911325491289430160603704716007707852900335392488655747311992912948833232395317803131130926397907884102326750339791887060190320082311733129029633187168438509109146925521497466977379288516666794764643619001073036344002117396571117804122222230248196991557006205027785085245360041449991397229066811383141147238444672477512285797194939714741505914366047025753458259550671711184657863436239937006480753681885048079766441535009796605835390088063838041091846996880952018885228947083226498084054484021178526289493832868937720539084585564759285079211682213972806333332734477901648871858230082707224135036885481177615207384652953132783442033841302218949857278303801767985368179504790318926087778123103873823414600151653636726284441194614443038112171494732858339738359011985550447293889825012444094552994109317412086504644326091201836128113730658960686974497822977082125518177356764640891647670822772257194579779071497378376791452240710476993831329955017341879313474967779555819908641857156943753062555459660761919426235409580210969202860825715385074489399801465063462579839469489564806066377296761011386141234709157168024369596360641966088828585365845672930352990634873306681376458244096927871907303411871436018732538758643065468679744244975101235769556002300293297668958755416358748507661016658879583758849550525522370174094668502514740120389705002281945326168989715911409356545380413848750099929932488329793425890527848205405801322866451464100895718975239887235427289739724516022488160040166652642674840894237073567724877960347369156534429280896398936311183303880522594367391220232785438240344351655027327050690773219486599881393956708582724562671445399795190691571133963698509076209286821834883362949924126210084715330466682417871533672609904184794292048935097105068263132092445450968712781883816926402769917311465884730382877592729300819919454381205375533416207523498556686669071957060971304012668319884339210905631657838695980036793141835500643569884938530008904391437030166017910980003094219255195169763394240107739619166846943837622188228535764372376781154203356378659162638543703908804005826794259646764210878620218327017526380218526244389905406644925171422284688345450332326892034374000749419308138993411650764240701883675610795599025749761494448083789544851442163037575251716966423233752822378981430968868555160196619929005744884236093577410854885630348417040898641776739816944192461522285006153618816125515067154405780566417348579608835249403357249373920466200880254025348297493532126290303500950249603463379770330069349444220727165542493168391930762539984942126497045585884096781592533540212381074435737008608576768201929953102641485299210053128096441066159212994650052811293042828152781529195268882832221280652689503743347237645163683871809424223550623240981322865825198645461659446997171656170057998495871198150172355380788506963488577570178125359823799810371350966077212864093482156210408597751469619466158082843264726391296575425475255948844519437582297242963572067321563025217382932113183362638687688714421032064336817531772760975969067784277558591472063045176441295037897276825288135587511554499418992342003200807843879429834220540969159055802501277289302504694991621062458890065780805755439301360837642097617474953971938007188387449976469673467754960024249098062470798134553416063737798994940224339144579246509859572605839703983702002689130996782974089526079749314934416142599049075274597270085007083050753627962183565878684512979221775711403435907727845127431729665312294291154294434165844347034278339848605950641385579507008368855520479957251936387643049180397403044965423350928694060943381535338049517476107784866127516990499336361737344616638770607125843720450741062124315201325673059604348764374601445050558137009919866619800606869662923251119737261930640800329087589887448282564604127862058757572468512429159509644814792016145597882735964433180704380408624552811516427108662164561167828659021905315807157277106658946340257783349478274668475877111045449271007913642041226724805491058338795073352103481406330386321981959746026708146941940923595639733719074088881425042277468906596962375077438389530587839296402482345019156409072178061651083784711838437684790133335854019353150693197643177132759665239235317457485610312182646344543947965282396342275897516770097864458790594272008510071578409531430738667317622072165664514515569076162143407064068082526994223946787152291651886131737436893988866909614606712882

Execution Trace

MerchantToken.60806040( )
pragma solidity ^0.5.0;


contract ERC20Interface {
    function totalSupply() public view returns (uint);
    function balanceOf(address tokenOwner) public view returns (uint balance);
    function allowance(address tokenOwner, address spender) public view 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 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;
    }
}


contract MerchantToken is ERC20Interface, SafeMath {
    string constant public name = "Merchant Token";
    string constant public symbol = "MTO";
    uint8 constant public decimals = 18;
    uint256 constant public _totalSupply = 100000000000000000000000000;
    
    mapping(address => uint) public balances;
    mapping(address => mapping(address => uint)) public allowed;

    constructor() public {
        balances[msg.sender] = _totalSupply;
        emit Transfer(address(0), msg.sender, _totalSupply);
    }

    function totalSupply() public view returns (uint) {
        return _totalSupply  - balances[address(0)];
    }

    function balanceOf(address tokenOwner) public view returns (uint balance) {
        return balances[tokenOwner];
    }

    function allowance(address tokenOwner, address spender) public view returns (uint remaining) {
        return allowed[tokenOwner][spender];
    }

    function approve(address spender, uint tokens) public returns (bool success) {
        allowed[msg.sender][spender] = tokens;
        emit Approval(msg.sender, spender, tokens);
        return true;
    }
    
    function increaseApproval(address spender, uint tokens) public returns (bool success) {
        allowed[msg.sender][spender] = safeAdd(allowed[msg.sender][spender], tokens);
        return true;
    }
    
    function decreaseApproval(address spender, uint tokens) public returns (bool success) {
        allowed[msg.sender][spender] = safeSub(allowed[msg.sender][spender], tokens);
        return true;
    }

    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;
    }

    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;
    }
}