ETH Price: $2,509.36 (-0.67%)

Transaction Decoder

Block:
4475818 at Nov-02-2017 10:29:27 AM +UTC
Transaction Fee:
0.013979742 ETH $35.08
Gas Used:
1,331,404 Gas / 10.5 Gwei

Account State Difference:

  Address   Before After State Difference Code
0x519475b3...2BDAcB4f5
0 Eth
Nonce: 0
0 Eth
Nonce: 1
From: 0 To: 894314626718268852814486237145491130208199201954346306681603064676767041602296766035440178876064857801484854774312906110479014967169044852973981836388733452191200489523100993608263516308542340253656980731210566033986824489064105017301377718294212203020697677160248343914900055622031383379242216958044263419333843118811567373416738559057415498288332561607995590598725988087676871959550500204210718853768027518572607714780594588944275651783797218362730516134031333179444714278360566206707517233982313097993068548272783229324687545266486105713882909168174774977755912619320094988301088250038059848188702261594766240316209142326683198040690082266485997954140527805178142918169004319638735944263111583732318560754869634897068217335422429133074030078714537771636342334864605189947634319877972510522984986785517151106587662099311278395598359629415287388108996095486315914755132418117319618662688065998213273842014485818749600811244330974567188754060732024305835126654584102847363260942689956992707319541369084112777447827343612080114437307578979020189880665280643333865216682491393881060732594107271795218110968039536337818242587051030503892866829104708131989500539838030108646378243194325786314271424782545817926399624410623990749393258004956382407261940962879988415091243641663127343295048800905872949177249288493491467605880340291470378844551469883264729105075039014146793656538507511346501895065468798579185907404693582523241988274690054342929701088856822853869906815942150279976126834204774477684342921513067094227689890695404211190322667079722217446853055192761588450173129132828647151744235539531168758291056389995219326064381616376994541412925016493104778425470328297592278523901481480654317931864936907012837994432470048352123919067723915191022954799115410162543620818116794455779673331906337277839437827392938726362241508539111506577110164236251962721986355637939613477183940088190415181584030287798807597790322447960895353129985431932287455330960553031821293087585198281807851458813736105212597439146001182614711017950658690786090401499454614770365261421505701897353697236103705894162160137433891438372747389070428047098540354531234298044947129656287846699581359842142058105485746101881575645022408825815316690790506733800445326858670281769145559314797095060241860207399880709376440872129011359578620405818406046885986915159069460772416094216067196480702215390620294233922230309206186664462351219305314543033534824056775972950738125512148121593930682187945662584647897224503162113391307052084115078085547782530785817586653600540629423244046009319800113089569219707844009757234789574009053051370703779259508916881611227990134106138656606389488278187787946571163784530908749621500721846414812427012969008203283723985931915106864217194857013018729467827923424212829808907072446834009799313718962666210919057265776694085742590513233246400698551828053978710959760746045168880599951605276965077327143363744229241040624523159876317171576351839288969448084326823988057097524293080449814049718592023295406496739312039132171787701985298336608721155800677845989163432116256130699580253731456437692083939567947654572276071918507358700893698100199070565110072720846809333441126816054428302172783251834446922430535574599145709102729422448598953776627587131563554562066691618761446039483110965637469030018684272986400297306887530716971791089914074506774282502752134162860756526990286358917209357851728769482920475636532481348354798716264510735631699146798801164222069725034959511516406350542048233452051592896764194219721968585991872623119771769801548245839151273350236908782793039786522648106936559231231490078605365336287262234250547745080984938674661393943099455198671892422078335215009735220673755632211099359948514070024807705274795641848906031489199648726032076561626517675742411609766941828588507034685983423827851641562456079597444956961430856791215303433145408285515333346520704897395373379638819546304199267049214886700834966666279182523569639459133592205748849215749556956397250254960043752015584997977212452935783616873110965990263543022350696211699223126180482028447068477118061185296750172182513555119528101478595029029169896272800569113443341676990812457020877533012582149165111224525144451921718612621520781341791640243438635973330740211200840744166344609900220847455025066939955050279018910177158400326358036412819733597152434560219632866519084666723613003317016704898389183919346758250642701065320298039666868845985710417080495525154397199302972296625035211433652330896565168075210808047011328656909963997417783183037642442848444151804636228138080267408125237469704862755583423772661206137078249965815341615718707510621332260612344910204619053147721368619875556767663431450233105638821189785584878435376136956256142775402141681378313905917504570751176900288690130462573045473743897458188984483559166900346948425379360180708391790657242418590011034103213904303429885459292255935165420651677074549361300786360152985084185072416834725436941598993575094235741368656375710541994526822435555665961206786775567904698990471073114628969179343650914006213531214899032703478014674486608099478632673329430855989386281155273526457555330015309116074706648531591071165646728340707146096951809447371834297158534834659867686108813088598928010304891058775813779373189134508963626613658522778940432593034862171066056216599808288582691535878204900196691824838516566936757479896784717584765289685829410572804332895323701787451185058224815910000319373050401114871122757081840937654216963610789107612297572460772844329566122745146862073292794591992874548497859263761551805831837963338198961007648462851582888647719193510749060960896423804392884692235526738302149929534729959342246334733063094009036906119695626723038826886601026570870625468363921815030732377072408089287941655259909141829744861436320153553062053476472853953230419156142108062854157913644279712050804381114434635794380362425637299551346544031327619032710311336529240371121743975163528360085645990705193850599088948755286942898379874141307857112407325607466708052232843580956133058349494807356105197180641138445309648226950805801351990799599636674635498404153263812043430127793357203650313980849865282831158481225270838571858112400209023874614490882499752367545035492712466830666468445565322459362573321915632387702986026929838872153235201683851449196765637550286325481485167520480966167631252796357649729905432251675725572628696475181872297556613014597541907782475314395894703994440168840718296812826720179685452562822530593739287830875870897498631267496083263129894267819517879260488350736407802917230875948149707950370922693136768737291041406383934339145120803212185970317812247366076154857210808109000865167283000555221529681890967052006400933528819228235011430491524008913387789147542497497409055028999890645917627261402523568768291893559717687266346178791066235718984948145268508973182357149640704618670490205649747802611035143494913616380755024335370529774744248745397788496317400761470222130455176194836357192580585242603146490790378349047554645262599813592983710534906397246024766822285576920097331965266581042084048284004235590620926402354459961590689687637025911499202085126520601333537747463251580285162458614170281211167635407961690778475063376512988587815342075533180467679205289662243587690126686441176731188344177374829537621307880291688877862171528135699384054773372661230646638512714841374686140323993945618761762314980811302717825145520896620923668229993474175116990397570615943844043252440302317774573125464280145322183097745418240022891403154847705782603445340802896662584718886486015802820716467131523976790054499917542609485038393187681540942578262068796280477136508064389568683648803559829784558556108257500354327127537908323166335687208584871305307036196431700812765986655556541548839935042779549251831013032940362846772803079301370343782106824105333417696244472871097306210006877156254949364199363483385167692418951588213564703329142609191079406385022076035019509523019934493147991450977770083335543159064749915923371129300636267823692907402290600966983747968249114533522797576934803646180466672806673287352257005652939325263244918942869297901398145015692401921237175321857863747580253588429580255494998628454085215101553842112336246443175604956284722824588132405558892325762624963186307017234670391133094530762490381375643059593327174814349378893736704602815904355495635581545240862319587606413411684682036310463484847117173866603774442634571109732913851214113554061657945495345795168706765749682565861242018751715457111463990748951669908288996729501160960116359153204569048255353953130060597518419730541608580833932647474965256302255174899968581578805183121254751073574347762483803561908074487102014583464186722555162123420584485086927221516746854285342653012682851222733551704038676395309013735263832008514701074691504919079946819216559524118443001423729388009073071045740160723543264154746497510378405316641854746343361722425372986369802753451146947495258776688850475099178014662036240350433376658166128001251663287724179457224504013598418282481919449027845893291624633147840320037034253812958793559963172791943983627421942754585013822818023252038471364441653384850684614276863119932273557988484163237590985378019020627184778617903193227937465648861618603190330106816016825300389513873013447540755887353957697164042786963578187779134872431565518057933847362529789034633341298513024669266160599182721265235248543754005067798028739121785640527157226895810112980514808165274947668917925825316237195240863745559564168317943891625316843852010321527401058687642819813995783276272902637706852230313495297287916302958187858234112497823109107298032773138659021683293487306942199870375947780205154148358529492519961141658638239476754880679843587363639887416265199167192919328899449526771431549573659721905037610537862911473924404154160999904332170243864836868973267690447203094489606323813007021494154527205427623448047407567112862206299258022277900285307430291674464222369420322416298905768396986535595809741650799002448410770387704798816136091615535119784325260493407041132112557685940778090834651112970614866630102394735068162591458556686762839618012974750473279915160818442835449048157854413193016538062569263280406420322372358164952712898040940068391936385615990857696619095252391861357310607354469910520950256676852747895416192542252002203770986746852278134386973238648420913958229257776862461210432690175144975657077577267880437499625185047171592806930644211787562071506368685611299483058028133443296546071697595315840996251264773680172991954944133219893169397348516198327462905706896561137141189453325332558785357081535600487682064664492756068254116430995692691174570417397715292147820890559136750730727294535733975100958173315113998447631183724310288920573360214035340900426154078621528185091475173457042793866922921451791850042622211355628312809676349782191715842612437706101838037611449277483740568754402333013926959560493528045858916101691591350506362862967992214775684874487027457208390075329217243574378573484638911567527549750819334246403693312321759094901522763348382448758059249027700312307214673024189357774725609836496668229263603266984554076009905030188862292638892073
(Ethermine)
668.090504526817136242 Eth668.104484268817136242 Eth0.013979742
0xfa483386...6eCC4879c
50.442228974003696644 Eth
Nonce: 37
50.428249232003696644 Eth
Nonce: 38
0.013979742

Execution Trace

VIUToken.60606040( )
pragma solidity ^0.4.18;

/**
 * Welcome to the Telegram chat http://www.devsolidity.io/
 */

/**
 * @title SafeMath
 * @dev Math operations with safety checks that throw on error
 */
library SafeMath {
  function mul(uint256 a, uint256 b) internal constant returns (uint256) {
    uint256 c = a * b;
    assert(a == 0 || c / a == b);
    return c;
  }

  function div(uint256 a, uint256 b) internal constant returns (uint256) {
    // assert(b > 0); // Solidity automatically throws when dividing by 0
    uint256 c = a / b;
    // assert(a == b * c + a % b); // There is no case in which this doesn't hold
    return c;
  }

  function sub(uint256 a, uint256 b) internal constant returns (uint256) {
    assert(b <= a);
    return a - b;
  }

  function add(uint256 a, uint256 b) internal constant returns (uint256) {
    uint256 c = a + b;
    assert(c >= a);
    return c;
  }
}

/**
 * @title ERC20Basic
 * @dev Simpler version of ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/179
 */
contract ERC20Basic {
  uint256 public totalSupply;
  function balanceOf(address who) public constant returns (uint256);
  function transfer(address to, uint256 value) public returns (bool);
  event Transfer(address indexed from, address indexed to, uint256 value);
}

/**
 * @title ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/20
 */
contract ERC20 is ERC20Basic {
  function allowance(address owner, address spender) public constant returns (uint256);
  function transferFrom(address from, address to, uint256 value) public returns (bool);
  function approve(address spender, uint256 value) public returns (bool);
  event Approval(address indexed owner, address indexed spender, uint256 value);
}

/**
 * @title Basic token
 * @dev Basic version of StandardToken, with no allowances.
 */
contract BasicToken is ERC20Basic {
  using SafeMath for uint256;

  mapping(address => uint256) balances;

  /**
  * @dev transfer token for a specified address
  * @param _to The address to transfer to.
  * @param _value The amount to be transferred.
  */
  function transfer(address _to, uint256 _value) public returns (bool) {
    require(_to != address(0));
    require(_value <= balances[msg.sender]);

    // SafeMath.sub will throw if there is not enough balance.
    balances[msg.sender] = balances[msg.sender].sub(_value);
    balances[_to] = balances[_to].add(_value);
    Transfer(msg.sender, _to, _value);
    return true;
  }

  /**
  * @dev Gets the balance of the specified address.
  * @param _owner The address to query the the balance of.
  * @return An uint256 representing the amount owned by the passed address.
  */
  function balanceOf(address _owner) public constant returns (uint256 balance) {
    return balances[_owner];
  }

}

/**
 * @title Standard ERC20 token
 *
 * @dev Implementation of the basic standard token.
 * @dev https://github.com/ethereum/EIPs/issues/20
 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
 */
contract StandardToken is ERC20, BasicToken {

  mapping (address => mapping (address => uint256)) internal allowed;


  /**
   * @dev Transfer tokens from one address to another
   * @param _from address The address which you want to send tokens from
   * @param _to address The address which you want to transfer to
   * @param _value uint256 the amount of tokens to be transferred
   */
  function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
    require(_to != address(0));
    require(_value <= balances[_from]);
    require(_value <= allowed[_from][msg.sender]);

    balances[_from] = balances[_from].sub(_value);
    balances[_to] = balances[_to].add(_value);
    allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value);
    Transfer(_from, _to, _value);
    return true;
  }

  /**
   * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
   *
   * Beware that changing an allowance with this method brings the risk that someone may use both the old
   * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this
   * race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards:
   * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
   * @param _spender The address which will spend the funds.
   * @param _value The amount of tokens to be spent.
   */
  function approve(address _spender, uint256 _value) public returns (bool) {
    allowed[msg.sender][_spender] = _value;
    Approval(msg.sender, _spender, _value);
    return true;
  }

  /**
   * @dev Function to check the amount of tokens that an owner allowed to a spender.
   * @param _owner address The address which owns the funds.
   * @param _spender address The address which will spend the funds.
   * @return A uint256 specifying the amount of tokens still available for the spender.
   */
  function allowance(address _owner, address _spender) public constant returns (uint256 remaining) {
    return allowed[_owner][_spender];
  }

  /**
   * approve should be called when allowed[_spender] == 0. To increment
   * allowed value is better to use this function to avoid 2 calls (and wait until
   * the first transaction is mined)
   * From MonolithDAO Token.sol
   */
  function increaseApproval (address _spender, uint _addedValue) public returns (bool success) {
    allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue);
    Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
    return true;
  }

  function decreaseApproval (address _spender, uint _subtractedValue) public returns (bool success) {
    uint oldValue = allowed[msg.sender][_spender];
    if (_subtractedValue > oldValue) {
      allowed[msg.sender][_spender] = 0;
    } else {
      allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue);
    }
    Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
    return true;
  }

}

contract VIUToken is StandardToken {

  string public constant name = "VIU";
  string public constant symbol = "VIU";
  uint8 public constant decimals = 18;

  uint256 public constant INITIAL_SUPPLY = 1000000000 * (10 ** uint256(decimals));

  /**
   * @dev Constructor that gives msg.sender all of existing tokens.
   */
  function VIUToken() {
    totalSupply = INITIAL_SUPPLY;
    balances[msg.sender] = INITIAL_SUPPLY;
  }

}