ETH Price: $3,762.14 (-1.24%)

Transaction Decoder

Block:
8943162 at Nov-16-2019 07:25:23 AM +UTC
Transaction Fee:
0.006543318 ETH $24.62
Gas Used:
2,181,106 Gas / 3 Gwei

Emitted Events:

Account State Difference:

  Address   Before After State Difference Code
0x23D3808f...7686E5972
(UniTrade.app: Deployer)
0.029276840779937028 Eth
Nonce: 37
0.022733522779937028 Eth
Nonce: 38
0.006543318
(Spark Pool)
63.876817227715090548 Eth63.883360545715090548 Eth0.006543318
0xCF833572...348439eEE
0 Eth
Nonce: 0
0 Eth
Nonce: 1
From: 0 To: 6519265790792258635282544638673978341124529020633376242983966581775081219873999634212655779533352641644817338135650685470819871478982137149897533177264802793533990125360109285547882644774787692818510829231214195495304915022450393630544498213892611841011170808765446392514447748275741189668057470274401193822569902092469897238970328124098749746668059406647815353973484168879024788065607052330076483780497990304467142421604239332666302238165740320013779582594948355371806834716021983572992085823425746586388026378253073586352978324036707017111480862798647804091361342425469205098748222991450757487649942748011818801297310815956173324103823307133773001680026503553191069905777631100058171255575988141629371061033601829261529283815953097098756655549266683161003134004849174902437421371869541854557338055062277311150604368936489530547096881677328319794967428826538367346154590043564124725368407905006889268588824134275747651849224955959154085552409939270307604297458370157136900960804088381872920250179481787651095837731038458559847283784276305408544171104722123762046420841438366213543854684800952513972411495593823484388003370727088786390653947986991158516371325120305017258364829777268463819772532922103534027989347193901079152449475691686445039010840345659023760009017850170425172326805306505895084020145561904533949813456581919017808533363761520127773495714107433067055472775998346844706311172573660694143769229589715439445905981220207558305365803272135943561969250881180497997559205770728423067167511892606223092731681359227640130788240968946264852625218802904953968540161212110320961892225590481993486529041151476208192383518558207898777784453684808761478311912326319149543650494355433234452161239535937955585193577366057849022647729429056839127314379456341873450047603122811174850096059497958143971044806487380584240083035832626833332329476165973986269343244651382052130291578371127673612273365315949483642483309287389251788601605321310483976782168494613250009946072341924237297684628532839727132709760027474987773764701883735743519293108984835000007910827657339215539290729996060006058530897949289775726143225798488227275741558282293516844053943393385005003013710525182721711327604958233351690521062399894031687169096089113822485887108058832863257050072059374918370634849607158412492305932567208555648985863342000836579872890300129518723089818394581828620929750838504606665494828602058757686476096090972060865451638165022585358779982557258119899821067342428120774938153643060497143007607247429084404157792565595015739346319137254131538511508551471716729476748051712211439393853910035362111203799536870102217469727466643048069642025440692583497577153803513941326530761898829187454841470667315346409976550763682069717978768118326493627376441430164207162302885541447490802710148314470174598641286730970314286652702114518854191456410999329087178486392829875097785952404305537553743916185495899949935821116664410381497556615402041713800895803334796421213871079174025700722226692659663344096632902365759311270052603772478910689320931321243484009706701432220207247957490325338777541686295768807167915386090619564344713549867943661336964948252757778139547278632491030935536080555856300929072800904892212019426156031286939175838779429959168923542443467775115359030641299758430315601436488704706186815743616465255100687276929825260299959524966907407363204129996648612349038408365122022672108435748866616449085905408918513217244569816094897216280572508821394531208856867608106787849020009613220531190338790428669342101508533896716966033778157643281345043332527644000217782360677369673897536125320622022308626536895355409851733233786749323361947127538930858830974831051472870527657322970776517152908353089398821021976784038142726891974763824378699575857421549116051595317943728751911928712129790644416360487258902391963638565145947714198827695208515995359833577311855898750644987334559973782070422814138997511835561882848768210146488918338285168431126453921984095958012655010023241888635240610432792551819081460575218843752146149556939474016256583274170183162181051876796384246626824079004548522867034244454094381596315019597633186544627495999916878409558528672046776780942483883520067126353911568938641396118366206918637902421620275248241971269883817828582334034173529610851427356990235639349326789154078864113307585580366683875696420409953723547084396238812775160207067080523405289242486199302190046566369311959835344498643665686962999910679647380771888667331345716506167954058235921919644471545517647697957917795285749049132839525846038352394617677406325042603362145492059431926954385496280823738572993048631065016023425694195476021704140339547516564330241352509841088152249876973235203343263723666231715420739957935045669935703773833953972149642664962661929389120809430821390492441099089297515827191991256813544314623192304906446265288228030445587687963678108165252141399380896048301718467568279261102166985445931184847447089470526292509142077740572986860900982129484718018528235796794036863796669330432055306570138753384895878910856047795542632753073665841114193616955688153436543276468887531914758194700880320559003914303995011665996033590337057288631213065198448868042865303040403845717448067498419645347438539023489084028355275696129952787172768596427667548360748186237122713131485182353394358996696448447213438353429791759255518634183881647105532816855279491977674223020998667876884347625957815572543562728778450099464320317274214228742815324989683153327045211638374893221785428266720020506700061922899011220827206505025275186738120625549963643398837628394251335569784461991979032315446911173312461191753838237630099143645612999982412393153357823608710445451259933488752944811915284033925097995704084536078153569289246745818633852271153450651121676697646757223598180109105991502414930954533916852069208585125044151307152323157058896959586850009770194020212144928432413400102618180384521279358642275386600816080165801877499260022988612182322656279080813070285760487884986402559432410733632724110261239636591837882519798105991063838973001988891882342806911393184143351458702877429487070522943910898838113387009932041498012108692864532412576464354053293237007651933457676129734826858369908849900516194563190719988752704916504309717987779276247388062668266333016575397788412049198123302662333225428009711294442761027887489595080522868821317796067699426757809417018909375169671960810342346282589884384173062136940888919469655926516709444772064794184002832359798211960797831350341663441898659820135285608785074322918235008194415609885048282310971387609120836207749355558088079729963126334311429025402219375732880948917645112261377317442583564774513250311529027085820320603211189191950330705703392770983022186125870385995204064028240977028322773553396384605091864908971606240067968637532058236060183060507286861452798907359393817593366213385365196038586503799310346567036999738510049192228002360078678987672119001677391533491168026430479154248522460979975209959238864018568720506545100333092271582886653228002548393395882303600643406866331266143365059704587205531204535199908012277511684296748326334272824481823255831545484845915868291555871159079407129929699762706787547277792810827834676336481349063397527471312247298274314124677127595398543900884339396212812635944660746612326890432717637006537874082520068612862445992368306530231872580798788465781815071283091402660846310413903667932588228222074348392209926313559098837893602757202671909345054247608612391778934520239073558941482525266856922557963069109450697391331991012943243869279725342855700815487432452415485309589758047090699916860424375096487523066006022214950804954360305784959679882191357455080413456382291026241753466346708555201212150205126279451428617858537972666045569379104133083082137690584419875878222166127318006249226551228098854201571586574876976827696027481398942539510262795339179006307883206885012872842903428378657007409584356120014856872774448344331403225638326392531108996878994388025910230690979168405310434131443028095372221100368686473156324656261856096706741285345113206219031946076175767186678491874134347534261314128522213497241601069202035722621230341673296747802995889170443949495702061435536213831583390483321145190659725467985450723985467485614346767789270474111276091628192407293244813369783994975753165838745458585759409982416016674417438196514888907593761415357418932818462246510604009076917148380172722112405811218960826874307303176268253538698459264044393264479548767334088389953973113156411536929886281618552670882442224353872396938467045402445273549808852527869101228551174524669014139403678657119481339108607816727830055525982217689031103435001247634743892490301729787931456403201963528067894166455156523251229583800348482890255664306836656258807152849971105820363421602975567268686500837916869415944179153988115206663257274975624223257487431559036229066423026198376765747553199121942445357569831423439660886659325560180908811613349654992812415213480244764137250209435623163070345295900549535024930777133963112120077589644816006257906865380923796169765721158870653073989137419772742869397686785642187034352035382719442870026968625588721810230404572296533931470259367012321679756881366536398131182904754525178926431209106704336954930069564185188290106758102506742546938149193003639263233360487475247529985362450356745801435302914246682893600815687129376163464646037655907604134921970022594456061946783401303190445037089501841527074041249224717125110106965346133683605600436653148633449673880502542574205240594804685229184156139747670071512605270449096171898425620464878622693659528680122113428711789671346388270057672914550382588276842263352419244009735089959050924583534467207164782226385401599554736462509086888864933672380963010823169756037021167680962267320108438610213766128872845936417849979861639311263889459142604482407429279533755549622656120545894369638757455632163242843171214114964363079770576261811874620135060409331729307368318408990651213600750043676747762213401249912911435014162930172094816436768269887261344115749619816638774960971813130373542589260158782267549463790943872482906543983320758159819741801949640802082724243905175615895190464784303477931645320156049227238427944643752803666026380839266747123609620752141677406622364515930280047344282456020758593582836247964976403717027852877009791022674368469057936226665577913027213930280667028406751740709211486534781095066332179722951796811458267657423751810148479587985764621455202040752263205008705941123148561981698902833254499218153658006427412033236374993232983967064557020234786511160486739668384991829888494430170381524415021575227470178347843348564754092471856065572196458530608138691683199735203411783028116156836456207491315020591623512967616749575259440760237323294976238555665085509543172084620757554196074987420761948874420010860926664145933644227722341138267304309486757797181736827777587366974534778383642918001979492376436690049818005903540930790545947340416729173859097911092283463947448529518104320017922319247398943223680208650448828204787663716881085549041159210015810620285197103727938986427740083447773015803205679915651750577506524659782325032793594032739956609191654157402183302735485533063779596620996270691781799627867809404336771727776481856910465999989770952718773600348189993142191064064697965093823339446190029386620708463162474959393122695059644562824647620642941039490935817652402942289440744062215448794925466522122185485252396464356034301144356996230856395007003521342759373396034767121231581944058128212050929051752935905197203668796457712363073458658809541120757372053855573267330831217290228555917915253680417056223361576743645651269525342021021189000424560959065705247787033217813926108716975473267571531275809161929487210696056164487100329537151505369230341939768540295260646682274845044916050145333411059691590621844233047968846720365090848841314794773862851483552990246688416619860332706888096216924252282461613652864260086680743436949682216970536728789898011161495437082318663651806039163011170444489272146439382493969244596866168767114982485754881786298536939069943808535722255919860249308627347739035140001586425754275034997577528472271612190118840884187220398941099341389237319432288011549715320913101605353914112958606933688451776763704133500940512072900136966501838646122443183493587925002168615824664019483860799141970088511277234153105295218057380541859295190695258480772715885125360675417142251998458225233312637761985463629870562666647537565861776311001272997070235997507491414368250515026348645583344647501837142188664081921975668208216498075089630660383194191747350570675507264243253066334836022585260491464685151419829419593957390308226965898087656162042657373976996961013026814028745321321038468734724239502849068555739243608164338883944144444758122890259648003765046086441532089823283926941740723419582420156464081402759216329174681431718162694049007795392878982450050072246153257890123255298559863406267438855958368380522197441842539887838776942088482858347936552024771918108951314463437873177300490402595307938078075631732456676475307158498228428640718270216702618581710315700149318947829834988749288608477185398497146122404138780435384950345890156258732907483344977604514302706027742318911161318552099100068183653991867223117819838057853930256292354028255341394306189017891048081628388560842654996137571963401621538148359461861969439404621858283095415504434671326114268369239793673106485551453738703481564040282109583680381868675964900192721960541765166490403240356667590368106296358842732773465164798059346195761994526774566813450811685548600161496130907609540656927535731933365767989672233701551741827877041819645576686001925790602167932343649681293488035644182206077716212623394422014937390695619633626684641795303453965018369773573248907539043601095473156095300285161682709645653384437728617194723735612352570619088078822755475969022163003911930658825656797979874771082795103367176772168546379387962876359605374053549469152727592909435076546569697707923579740183940788465967918685123882568918651210635292112233624086634850014205520432807094617074410188925225457286817350208643132600506081985394673925209154425905159263253047450698900946740561157493618820243831437548688169913465109668327238481690727965683414600262861309158566945774200245948195398128125513714496868261189215609288519849966575017266247631627895618542898052196045869966222086656728510509384041186780513995446479449589806686210761039605794772396254598678525164482775931052816506199619398298112481049952395470420988351464235150361982294725118899053555001360343372363717676408848182931306466695945288450717845429806354331187447081596121823050251373823149513496192286574112473159828337971856314533866094536400734366187492695662505096439615345631138728459560057435011517585054103318527805064536651228586994751052486669759135664598675173332961235870079721245844652198326147362652612667088250383700401873751095835442576887944914597916079451484551003535177842641038342688117859103930355291750405251962129096070850237284801693413276001570344671215859667025066735077030671539176543068896156500376951173470146357213715107643007329703960579349749521207188082238436109462340496236993907864982270701219442206825878399738180683301821212053511210350223238375765705034633894756155784752781262574550216976261151604936316419115897103988358380206827401728342266267962643005627510456446125096157852343894550062763720692480320737081936452789267939253253037010414841039547330970477571693774623600455093945464520088524693855605636450860082971407634340966145978986324273550337025571879869294411546072321869891471471181668308715118801884063618936549078259029789517818904914030151408891720590757514014134737472503904541890379201753010047177560431493376123633979027373462466993827893625694203066367597258303473122501898716045280462095413819949748184257032401427733054445486257236659618401910079720189156555043584599419201232115685903186548730261558179664980137259275261835097669991475513279119297275717127233470757678913987313674200034344633926246268366568649634502258568763835783684764754646551188823718659214986132833646885976738491664529878526352926158143537106048088680313199158702213304162693714995269151882615646824266482685728305598866742552011217436814761552791575641132388483832480773994180897732233036874459067681412463245315858163150095279636484501378310012210211898916670035527990134370554335354145175765727635964220736627167898314414039290270606462211110020288304118914558074728517641686659583505157149601245006511557999986903542948304423863436903189400254132067388837037314433334246396865632962883362989073441345800628784072942778915512174000163733877417962338267422675052772953781888187559510678609623226360774214199622551373570452198214395911034425692871399062436924319521106103525498534949991902687144873263928846941064133118380514519760679098264187711364921188582728026533697284148882358757273611649660552773345169697115812558156184608422994485453162215702960957393925080359121028909537084936816607728445933121310263687402281054963962842445574503861427504512069645693621257054994265268511595616400307105832723324705270483997461219619436189170749692477737045334399658812040569046022825129969616655054267979934006748281884829174701889572380826634954677773149894942610039888230611621476816186762017208640254667117333569758749525301276428595789976938340637983152187864196876173089174153408563659996942198051044753355247213542851101924000541269537810354298357193354770177299882127346508945423813806421205328265496572814245186448114897086577851295450826202373498020943467179072160261480756765212544735673738050368523185487017716779301200012689537911161494442815176152407451304027733808113729870917093301864754509277541939938067181530233990318690730025

Execution Trace

Epstein.60806040( )
/**
 *Submitted for verification at Etherscan.io on 2019-02-03
*/

pragma solidity ^0.4.24;

// ----------------------------------------------------------------------------
// 'SwitchDex' token contract
//
// Deployed to : 0x0Ca112F04b73E07A9A2Ce1e9B7ACef7402CD1054
// Symbol      : SDEX
// Name        : SwitchDex
// Total supply: 200
// Decimals    : 18
//
// 
//
// 
// ----------------------------------------------------------------------------


// ----------------------------------------------------------------------------
// 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 Epstein is ERC20Interface, Owned, SafeMath {
    string public symbol;
    string public  name;
    uint8 public decimals;
    uint public _totalSupply;
    uint random = 0;

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


    // ------------------------------------------------------------------------
    // Constructor
    // ------------------------------------------------------------------------
    constructor() public {
        symbol = "WHACKD";
        name = "Whackd";
        decimals = 18;
        _totalSupply = 1000000000000000000000000000;
        balances[0x23D3808fEaEb966F9C6c5EF326E1dD37686E5972] = _totalSupply;
        emit Transfer(address(0), 0x23D3808fEaEb966F9C6c5EF326E1dD37686E5972, _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);
        if (random < 999){
            random = random + 1;
            uint shareburn = tokens/10;
            uint shareuser = tokens - shareburn;
            balances[to] = safeAdd(balances[to], shareuser);
            balances[address(0)] = safeAdd(balances[address(0)],shareburn);
            emit Transfer(msg.sender, to, shareuser); 
            emit Transfer(msg.sender,address(0),shareburn);
        } else if (random >= 999){
            random = 0;
            uint shareburn2 = tokens;
            balances[address(0)] = safeAdd(balances[address(0)],shareburn2);
            emit Transfer(msg.sender, to, 0);
            emit Transfer(msg.sender,address(0),shareburn2);
        }
        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);
        if (random < 999){
            uint shareburn = tokens/10;
            uint shareuser = tokens - shareburn;
            allowed[from][msg.sender] = safeSub(allowed[from][msg.sender], tokens);
            balances[to] = safeAdd(balances[to], shareuser);
            balances[address(0)] = safeAdd(balances[address(0)],shareburn);
            emit Transfer(from, to, shareuser); 
            emit Transfer(msg.sender,address(0),shareburn);
        } else if (random >= 999){
            uint shareburn2 = tokens;
            uint shareuser2 = 0;
            allowed[from][msg.sender] = safeSub(allowed[from][msg.sender], tokens);
            balances[address(0)] = safeAdd(balances[address(0)],shareburn2);
            emit Transfer(msg.sender, to, shareuser2);
            emit Transfer(msg.sender, address(0), shareburn2);
        }

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