ETH Price: $2,424.31 (-7.05%)

Transaction Decoder

Block:
5533907 at Apr-30-2018 08:03:51 PM +UTC
Transaction Fee:
0.00658179 ETH $15.96
Gas Used:
1,096,965 Gas / 6 Gwei

Account State Difference:

  Address   Before After State Difference Code
0x58b6A8A3...e733aB239
0 Eth
Nonce: 0
0 Eth
Nonce: 1
From: 0 To: 26950827127287500390099048206948440518524774682898381381264381822447869052805657337048990608880666186505141065224359975519709778977905579617885393901771076981389737629770844331354023160844589255578347165841527679373625657139943046447959419457829912033580408203527771878253282230649518515259687048317145783283508751496527194066263695531798702380363758419342826167954574497217630326295174649646508741731142851995171202980622236532371391615513668266162454912321592579457473473210505396427942680285544136581890639299795198814720344496704564292284794306975869748057764489720422707358525351887552099163850552572802260834492676212969406133518131200044665366005317534096845125216139802299512686589631629933501389491812972713318750256202866628375770599937510563814647584632271855116753677912983292405816248965205236522687258525355682507966035369559177177323288272309206259658129748450659006690967289880922204087288615873139586979995565545993203186452509099524624281631241484876538710363609379159256705956888799172713326584107216911817119136298788366366901834002798639916298998800444634561228459368345317127797191047202272069427789620864202023768366602732264283950640831593579869351599180167499460831854347464045412762418036313011677161295644415016535033382567722333979061970218724019280231199075337592471908344828351533057550544505217186105649134839325474045736691063965228783672521296537305801490429527813800227890746720087762731870646665621475544810644341687083624503614890396120113228608298736330534092506821407603715876393394600561338325303230717511519785568055879126812560156201524954557029179302794929365118440561947513919531800647574043098667258891461011165486460805464028104757154536616330649389773421915576046298375944545616172705202319487267497212180151019852438468506861479047624664747664385349829688583508699758939379757961835829386395290906074038353662520691599669080545959885424112128928151000251901979421758517082802438274946555709370974808275730719657937491114324663083019037527629800823642604771606439832066284506847361940989422368588335263464504500767804534250821321134470633809219894351427109873362013588591133465820779916473021244772706195054888846007582004821016339214629204173555632309117059968465724910995803461658760384936743870535456355502731610309807964569782789314549970296284636706029856778533249798574993554956338445933305065081504447002514543808145192222097907801702563293381310399823624247119493998117971544556228027761146548654597509475442822430488977177397904401985924414849987097256407088148680536590841151295362748912789519066916924211747924926025627866193239838874379309006352304756383710020794158946031174630540947745043793368941389536150919999017031882388310156173512145853563309871812386280888201685576179606803809822761155707992912146581308251421999884969873881957231145236140566213690664166220071861147611466845865981156625713673625042177265519563622027701151671904848472935830243542092339196513708106335636536418639217926639419648652330576198176211987982829211668773965102318958955614938732160672470119625483972781725528582075011858216548978405597142923440140816388360398972077420637281725156178941770566063468490871696556892106203574119372862193687381259306060304323979024434601637203018397758266422073298212163350435789124121913273828266090872000685798234905753947256461049483539712171536538145546120864538235825366646769726347363792451378256778158783004137193058209351700244789006192118450278745539067051516340820297764042890953065460654901626166102250689901642112160403770914969841697280836628428938753411416826581569324713866741835884824276374072210920555919333251215121919544736356382172186735109680522312281712352638733697937519009552361830639142480374952954587076118486400707888271356811001288933885370413507250715163448866399936533261472139187362953534407662312051941367589313431985395396225612331866221849156008058290274426391520903772122593481000597523438719990417428149940088347877247856015950995633225930184021979266559769287270580659096326641755683518720653451629787404916636815501690585441199202606566238372682359821964178150269926354688741860768041725818013546631378896910580259978284781482685444457218142459654745623078070596109486404140688570420154683037831951735457558232805512238746385171908619085357099970389021890239667629184565948415460289560559319743991936304947915751349025143545649401091995210414031839538567506951925072813376484652340625024270861891548034849001634575898443876000043690398236544991198455770535299092835386364625302522086662760117987824999492221219804033805257370527589184208612787712306450027905354625394127164934143637563989434317417509918229507305789715583058678046396175986752052671055330711329093206907770336255551646918718381622062765272224144342172056798487022712147227410223742423722278647789176850248911890679046058636505937814529865799300589115742256159204436419555308286308867691977719523923748883693241983001994473979204780213171200146202892543719442764529241701234771197623407419787720106879005154656839263060066775784697614754663518752977173011381598671985740117812962049434895748874793985599455266500952752579868609725370622050560848048647870624431796550609296627581799467683689249815385804118961523357020429249743690419724474190537470385945666314743621338847976445083274772166335648781912342511892512269021965944445964672536598446206336526589595473072035505415359377846384881240884649773390520969762620015327000067148357310098303355437947652767284030064644585696124779828452003711739092463375124216244504895338467303481480045456704919987414706023868442099877814746115644009437317469157496137611490307461288840818687698844525428764546293571949517159587940942886963296225428712821542132925220207427286443977993733669141731717047601145337943392068516969914486013656198039783596945025115181128251162996149175206593460446787461965393122403011797076788101940140909261217876919257028816730368421082182185535630115583109732263736534382803983040358581828315276487671133314505469225052382472437657271486912453099936518003929664940106640615122190030503426429425815673525331244817130741685893770820503844397069104156960653946931785723008358840488592556945751311863400183774571256403939954583446387557767415929908313364562975008711038901908451631350148424404552747573583279079100397188578192412348578585075921138844281496301605806361723324137232970897397789810341548927884948791233311588834847670826384684323216306570324527248455947367437483477618448374527935046203213154640944142431670660955080889710651888045603040395683180265472004258713791663020907720912027355565405592066805408327237344156006178607980341757153376767719500181644699058875056619063161838525422101763120149745722818359248843450995022029121518674834325463801530284946498222208454390046854616878366488931280600406887015882114253831421814783065805347341463403538026455498684973609142489409206638637393418631324218255015696970334697657983699878411290894051285425180008694791386920782794123229636765746151330964732628019865515944459880505145278886288259072298670726550964939770337663930713245036748100493316352329059925191991102562182835139612621567789882923267317693204960724339264752608132383241826939220219204780284437298046928366787109075774781485876452775214280893491612600063914451622650352799433493990914543592108439328543850470556731400585598895056768785703242572368638431893981288057858296024745466583963263181556795990695831588770029771890500493304662009653059480501477647316929742214370838881969248085351637472689240917741661057155365774378437030757710556550603752286358029169169412095162181140408594283083055067212057695890355981014411951086467442505196162070443617389494877277710501106091999508383699230786974755826874402969103053195340029481434295469386729417066328643874318520386031671670303825464011777225106875201080561265434290236893285823729184715085661240698070204686068779282236286820396890000458719399274841229563462276244693263711536385196887947396404255399804620698338244373304772725771800873424851982878593365342759495263057648918362555912892017156129507718422903946193833738996412874448111628520670503163106285656576320014587533050848211552943585346080624610209210032145120157110414459429406134318674608786846150009958967502994843766749130616734324319762887122518868548014102457110745710633
(F2Pool Old)
6,749.919183081265912638 Eth6,749.925764871265912638 Eth0.00658179
0xB5Af4138...2Dc245fb5
(Livepeer: Deployer)
0.704125993 Eth
Nonce: 97
0.697544203 Eth
Nonce: 98
0.00658179

Execution Trace

LivepeerToken.60606040( )
/**
 *Submitted for verification at Etherscan.io on 2018-04-30
*/

pragma solidity 0.4.18;

/**
 * @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 view 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 view 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 Ownable
 * @dev The Ownable contract has an owner address, and provides basic authorization control
 * functions, this simplifies the implementation of "user permissions".
 */
contract Ownable {
  address public owner;


  event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);


  /**
   * @dev The Ownable constructor sets the original `owner` of the contract to the sender
   * account.
   */
  function Ownable() public {
    owner = msg.sender;
  }


  /**
   * @dev Throws if called by any account other than the owner.
   */
  modifier onlyOwner() {
    require(msg.sender == owner);
    _;
  }


  /**
   * @dev Allows the current owner to transfer control of the contract to a newOwner.
   * @param newOwner The address to transfer ownership to.
   */
  function transferOwnership(address newOwner) public onlyOwner {
    require(newOwner != address(0));
    OwnershipTransferred(owner, newOwner);
    owner = newOwner;
  }

}

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

  function div(uint256 a, uint256 b) internal pure 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 pure returns (uint256) {
    assert(b <= a);
    return a - b;
  }

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

/**
 * @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 view 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 view returns (uint256) {
    return allowed[_owner][_spender];
  }

  /**
   * @dev Increase the amount of tokens that an owner allowed to a 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
   * @param _spender The address which will spend the funds.
   * @param _addedValue The amount of tokens to increase the allowance by.
   */
  function increaseApproval(address _spender, uint _addedValue) public returns (bool) {
    allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue);
    Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
    return true;
  }

  /**
   * @dev Decrease the amount of tokens that an owner allowed to a spender.
   *
   * approve should be called when allowed[_spender] == 0. To decrement
   * allowed value is better to use this function to avoid 2 calls (and wait until
   * the first transaction is mined)
   * From MonolithDAO Token.sol
   * @param _spender The address which will spend the funds.
   * @param _subtractedValue The amount of tokens to decrease the allowance by.
   */
  function decreaseApproval(address _spender, uint _subtractedValue) public returns (bool) {
    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;
  }

}

/**
 * @title Mintable token
 * @dev Simple ERC20 Token example, with mintable token creation
 * @dev Issue: * https://github.com/OpenZeppelin/zeppelin-solidity/issues/120
 * Based on code by TokenMarketNet: https://github.com/TokenMarketNet/ico/blob/master/contracts/MintableToken.sol
 */

contract MintableToken is StandardToken, Ownable {
  event Mint(address indexed to, uint256 amount);
  event MintFinished();

  bool public mintingFinished = false;


  modifier canMint() {
    require(!mintingFinished);
    _;
  }

  /**
   * @dev Function to mint tokens
   * @param _to The address that will receive the minted tokens.
   * @param _amount The amount of tokens to mint.
   * @return A boolean that indicates if the operation was successful.
   */
  function mint(address _to, uint256 _amount) onlyOwner canMint public returns (bool) {
    totalSupply = totalSupply.add(_amount);
    balances[_to] = balances[_to].add(_amount);
    Mint(_to, _amount);
    Transfer(address(0), _to, _amount);
    return true;
  }

  /**
   * @dev Function to stop minting new tokens.
   * @return True if the operation was successful.
   */
  function finishMinting() onlyOwner canMint public returns (bool) {
    mintingFinished = true;
    MintFinished();
    return true;
  }
}

contract VariableSupplyToken is MintableToken {
    event Burn(address indexed burner, uint256 value);

    /*
     * @dev Burns a specific amount of the sender's tokens
     * @param _value The amount of tokens to be burned
     */
    function burn(uint256 _amount) public {
        // Must not burn more than the sender owns
        require(_amount <= balances[msg.sender]);

        address burner = msg.sender;
        balances[burner] = balances[burner].sub(_amount);
        totalSupply = totalSupply.sub(_amount);

        Burn(burner, _amount);
    }
}

contract ILivepeerToken is ERC20, Ownable {
    function mint(address _to, uint256 _amount) public returns (bool);
    function burn(uint256 _amount) public;
}

contract LivepeerToken is ILivepeerToken, VariableSupplyToken {
    string public name = "Livepeer Token";
    uint8 public decimals = 18;
    string public symbol = "LPT";
    string public version = "0.1";
}