ETH Price: $1,883.92 (+1.27%)

Transaction Decoder

Block:
10990992 at Oct-04-2020 06:36:42 PM +UTC
Transaction Fee:
0.105944064 ETH $199.59
Gas Used:
1,103,584 Gas / 96 Gwei

Account State Difference:

  Address   Before After State Difference Code
0x547d6118...c5634B9C9
0 Eth
Nonce: 0
0 Eth
Nonce: 1
From: 0 To: 8801093745685936232763302132392721563336444879288489717353573269176377997918026525364648337763287846046289146189629486564868894005163148657079560256076027887927481857338897602420128225795248249585742076608763240737930013748076180014135553614831831682061288330671620248360437470885314717026539703591445596800678782616966279689915166018436065026466035615991048167644559880574018738666052697350979155611966179486865043509482339015751645091657614862404366339319188844310296755329479817851485340814395258643942841034693074721838332446185124765281500577173335791488964123802034456750474224795642344381178674712270851071664443848380681828470692995520043358663610441811142490706758995363782543641066391033825441247746871553507244588708835483939315689042166377830500221476638861211633391141201081648135382399660166789666537450090484191220996210541438841065360734763989662992122268828155852903721502890694553193468540040166269440397620141135845851305736198654184739583962317307248062119163519290678753163275413081261966630903803131356146398727419728994778825418733296645897310145661744547270301677985026513580916846906953753231333813903805283000559704405204013938046583826985053629116774589147941857047556731747046105001272655097008620108563538381712188542783306660670385286088393136203783812273073391044354784361334168093723417827383447079263224914482787823067963112389162647810358756787745119172113880452022488542389314097703172497300714062996743100901189232412786517449193836018137987239066433832315855088617121113724232870169009005072083705889429496838821303079289414266653314332315494865624493750898764825281034063649050826641976439180202400297690624384427090857194889424970779596268529367936480850759189683501497778349642567323291790651844903749431938454535029743197469199755813004758567042989380547992682141752334152530796594132325002474513604365534666102502378865838921696234682979168438737400360390664259866478714877420668752326802572216614114839455467888415337020482619272243353097929395269311149326690888479050578246176151316078216998792879960745018997438462478264565529694202268705140104295816696390177328229394845655531724971076190760389850019007680578449966451690380251003712733498650171055257082589221506241617401402843741648950661822975320913936399509581044342634778645438531015118707444487736553478134833341384698436580058164395659236463991306783343960889029270603275273516968548288787045287994365995494464583525247583014584557445209543270664507586395336291311405130954681666967351205117231798350022677671044044787054906553817571243041141312405754565343396895857881938376175738609455445991185326984011983661922393594234083759936496249834792924564073140480931139131447892866996557879785356025876480585021961125256335862562315994080790368625821234282899946588010071439347515971582538479304349312219154140317672086199176201744687637676429147628354352858449664153202299185204269064269813778444001624538121307974608793717254356190415711920657329304999006996025030012669372424196658100919817428136713361489264633134953938359858094382819127946727398556513963073514523886555366955322276510826003801396116931485471569186616955591836828986930248248177667881859382561729286264909010324490954976152258393034098830625287906850425726528632448318145532767175218271968938581835680581064089368531557774472744185180471705631874009136481837473563727185204422828644323300627824962624439601459756169330936533853598555898592393452816284213292906453371484970499372408373560103395102694458665489789213955765868084239133045412959599845334204815537241440727246548774558281922260259882745621698152624661504091194466700020139456434934377470912352488814292007896567187008070608573079652556547362692144966364965905622118784026483050388467686760985451027313203109705535961777397214754328281748871636883210904250162603821711658776402737212649598053947486836955435025509160402771769717458788049505127641688482511551363632817952275044392140304042497396076783976061183851589370008590458109145585661812233371559831026003321463053292288017808819474568579291957259395789260343832858521211153783927810677938365918895118458776578048229126018102258800479574413992018109290513848580367591061208547585991341674392026344178904556101530026090279822180947621219659103651488501834128651110470613924741568284945389128511049786791237341190859765042626233056370414870110428382315822194238045006286046732142119452061657457316345861140505134390473970032694819851113086081816146920925169029473849121265730494198702823395423407263387526189770712759671081707207431637838003199213077536004200019615493849244437653000890030444817195066175076429811925519197983756779011513426380389348049984980241371687021045814782696816289954678916214958162908914309071703299867884045282468086273914632099742837846562076105050170657131911592956783417695686397349312702105540907530483094679095332608305206681340815689416378040631111066591733192911303469241341574074075385473972580664541761010915049033877680258098079478103572648682984055631301892065710874654282790820622802145467132035842347850162953415163337755153789761554008294159104924462857826196782370426838285251595904384667901189920188855433053739738091851303504674419769125471790252366726580652237150968599890658801465325750155742685497900836086437761105572223549716241234713316580450265769200974129063898452777375195557019486545482872299577832075202160586393089011277983105424301445604447450050812849531521579893179188804629882188175010325020872881505132119146291300231710021739498302556945446775465759802938675544057811982388370744851660775379943800450764138631794095610835867841708433247439394736692420408763209279920235420796052790680857752787953537996343157605310039090518056954860905624377203193230212316933951523788691694528701605115617419908938614505818965689879181548671886734993905129163204120341521318611207191397264497177119803795589913803599969141384392819424368832747013334144082722780867647243806650220418178597579289408834641924642572717968996382808404337617825173209523436860768552656255434619755168687969872694271789958293002980845045015387304471827451055982019777757545482646538544054136282401202491167716576860495299369447766441345709468319577955970062620636037880242797397743043512021078189463208211395137210053733954510864540747683626856790074573404416846092172847404900770936779078117249199176014486508967159268127159412015175146576662106816571400664761569668386259370313805885140037228423085821361569300099284838443655935431226531168075703192373419836308553719523918892095907401369127776374017740796655438735056688632514209594554065141594616823704920219643168820245736461363807496577135279852214789322430001623486789008715798847803367208056931246355577819601368053493706341138007089451614315999307806197247309774688939454847620855891347390648115528067562848662988923817136457594638952157332131251185719722596660551519813291644347880554977218659642264696030363305451350631468565113167602992164357547334316961542530872670624602525822220118650964894223333894885564392306757364007770367930464890090971103876575912410768566880679466728240348468227522016516276053109650584150807030557738315452895927810632895006891506548989483803914264414562706776567836486987416276201980140272463203749582071477471087886042302426308526925311911944302793301045316100313220730054915511151726398843943207314133404203099427564681090802604288043787050454386957030154221423841343837910588961159358974789709813381469924395072414976955993248578099955226546818452128272851652491205636339054052535560748579773285626578478939373117982311183974603684771957794257829670273613354960035675102516410608764475051941069202838534165743221039128486307241141640191444991685714926809604777699279225083041470063201670491830295728925383421649072552108426019938265250442972489588053435946701696466497788919186164823933664908071628127646391820321368893419817253117900279261148351741521222729615432418051955166412204118029430645231494819635759817164240237262440321098118401582708587005196437727361357886214974355455966067314300015922406306895148744907631571736293697549258527024004989747629178406242541091354567058652436290525798748358375691089411838471690088949625779562113588392567607958674185261243365527797033023451725459519134747617072196359704608059997057589298116211798495556018868564067896221566582851117449293790769810605374137266444102541019806875352476979845025131293745365459935856397698310539212178297687557499956392381136594062168960181276135486165916220039771794974893493079853883238744162298368744553592316381756836851534750591025166306063622037250840714510545820370546120152323809495749577305490225460618484537474014810406425286985330097338149286215639364380829852000107951361958678653061391520223185287290198448887147622886590711692266740606271316348414740841464685715956671527577611321551660663291848439612067749430036051114896075104461401269512199903251142756003112032740538407695537654779218686784092675471968479528130660194066390015525317840121876115924018799954855246108575346446932562889664442461365976368007887573282872389130584514695951057069961829213408115880289741069415538432748846093693356663402668131112478212428755465908864192243020894672472101235089373111132122460404242541947101788744001922276434538073148152515654973590029042117528071844387150860411740719066596211431884227657067721931617556316836309294494240113339262442031998282578044002649033222000954786564434525898825500081025518020382103186647072808746975033712969920634402276234915471028210687996241663309493292603588841142612031608397372273083468461659570660653799401846911224695904673920819031891321989143823775366984809527520790227586373396714790300074311469724112733053093322628588574898284925054910921488594625228286967473312423687743610656429252481824639770692510359434838230181580437749080746288031644082266528634565054210014062888284608010298124272060905754189439155622747415695877954026045759972090901331625003638663895544113914706867430215363279245605057729490615712885913790405093164847716604446683382597500399608062506270245459717523518201705639136589400787325594272770269288466624809056062017337280715391066731667753903136859667863016169346213602690888846563133865642103256263440697426544703979966922509918885704864136863400115834585292109282542766034344317269864068150385479758497769726474696615799922672206545391062778093590741984327372672377453986187738110689930459774839567516143777840834080510717720824589647962281119969832121096744809092413827240428245883850691581109685177715159498821999829829621367928499099842886278476103693612635833260228681303210559859821602982276617129087769675883085082756025830801123606371024733203751745623694656265338557863461537429613743359280693338508143478915176218261817528762656666434542162904867759213605691825102096287544825296680046321410368391915411522854387938352876194729665532231433414073072182643684210671366988907917236072073799020161509032661565298873001372346928861714216267812444810997602050950299699
0xcC249D41...9CFa2B92d
(YF Moonshot: Deployer)
42.163357449171083685 Eth
Nonce: 248
42.057413385171083685 Eth
Nonce: 249
0.105944064
(UUPool)
484.528181113421860274 Eth484.634125177421860274 Eth0.105944064

Execution Trace

LunaCoreToken.60806040( )
pragma solidity 0.6.0;

library SafeMath {
  /**
  * @dev Multiplies two unsigned integers, reverts on overflow.
  */
  function mul(uint256 a, uint256 b) internal pure returns (uint256) {
    // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
    // benefit is lost if 'b' is also tested.
    // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522
    if (a == 0) {
        return 0;
    }

    uint256 c = a * b;
    require(c / a == b);

    return c;
  }

  /**
  * @dev Integer division of two unsigned integers truncating the quotient, reverts on division by zero.
  */
  function div(uint256 a, uint256 b) internal pure returns (uint256) {
    // Solidity only automatically asserts when dividing by 0
    require(b > 0);
    uint256 c = a / b;
    // assert(a == b * c + a % b); // There is no case in which this doesn't hold

    return c;
  }

  /**
  * @dev Subtracts two unsigned integers, reverts on overflow (i.e. if subtrahend is greater than minuend).
  */
  function sub(uint256 a, uint256 b) internal pure returns (uint256) {
    require(b <= a);
    uint256 c = a - b;

    return c;
  }

  /**
  * @dev Adds two unsigned integers, reverts on overflow.
  */
  function add(uint256 a, uint256 b) internal pure returns (uint256) {
    uint256 c = a + b;
    require(c >= a);

    return c;
  }

  /**
  * @dev Divides two unsigned integers and returns the remainder (unsigned integer modulo),
  * reverts when dividing by zero.
  */
  function mod(uint256 a, uint256 b) internal pure returns (uint256) {
    require(b != 0);
    return a % b;
  }
}

contract Ownable {
  address public _owner;

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

  constructor () public {
    _owner = msg.sender;
    emit OwnershipTransferred(address(0), msg.sender);
  }

  function owner() public view returns (address) {
    return _owner;
  }

  modifier onlyOwner() {
    require(_owner == msg.sender, "Ownable: caller is not the owner");
    _;
  }

  function renounceOwnership() public virtual onlyOwner {
    emit OwnershipTransferred(_owner, address(0));
    _owner = address(0);
  }

  function transferOwnership(address newOwner) public virtual onlyOwner {
    require(newOwner != address(0), "Ownable: new owner is the zero address");
    emit OwnershipTransferred(_owner, newOwner);
    _owner = newOwner;
  }
}

contract LunaCoreToken is Ownable {
  using SafeMath for uint256;

  // standard ERC20 variables. 
  string public constant name = "LunaCore";
  string public constant symbol = "LUCR";
  uint256 public constant decimals = 18;
  // the supply will not exceed 25,000
  uint256 private constant _maximumSupply = 25000 * 10 ** decimals;
  // owner of the contract
  uint256 public _totalSupply;

  // events
  event Transfer(address indexed from, address indexed to, uint256 value);
  event Approval(address indexed owner, address indexed spender, uint256 value);

  // mappings
  mapping(address => uint256) public _balanceOf;
  mapping(address => mapping(address => uint256)) public allowance;

  constructor() public override {
    // transfer the entire supply into the address of the Contract creator.
    _owner = msg.sender;
    _totalSupply = _maximumSupply;
    _balanceOf[msg.sender] = _maximumSupply;
    emit Transfer(address(0), msg.sender, _maximumSupply);
  }

  function totalSupply () public view returns (uint256) {
    return _totalSupply; 
  }

  function balanceOf (address who) public view returns (uint256) {
    return _balanceOf[who];
  }

  // ensure the address is valid.
  function _transfer(address _from, address _to, uint256 _value) internal {
    _balanceOf[_from] = _balanceOf[_from].sub(_value);
    _balanceOf[_to] = _balanceOf[_to].add(_value);
    emit Transfer(_from, _to, _value);
  }

  // send tokens
  function transfer(address _to, uint256 _value) public returns (bool success) {
    require(_balanceOf[msg.sender] >= _value);
    _transfer(msg.sender, _to, _value);
    return true;
  }

  // handles presale burn + staking burn.
  function burn (uint256 _burnAmount) public onlyOwner returns (bool success) {
    _transfer(_owner, address(0), _burnAmount);
    _totalSupply = _totalSupply.sub(_burnAmount);
    return true;
  }

  // approve tokens
  function approve(address _spender, uint256 _value) public returns (bool success) {
    require(_spender != address(0));
    allowance[msg.sender][_spender] = _value;
    emit Approval(msg.sender, _spender, _value);
    return true;
  }

  // transfer from
  function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) {
    require(_value <= _balanceOf[_from]);
    require(_value <= allowance[_from][msg.sender]);
    allowance[_from][msg.sender] = allowance[_from][msg.sender].sub(_value);
    _transfer(_from, _to, _value);
    return true;
  }
}