(function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',intercomSettings);}else{var d=document;var i=function(){i.c(arguments)};i.q=[];i.c=function(args){i.q.push(args)};w.Intercom=i;function l(){var s=d.createElement('script');s.type='text/javascript';s.async=true; s.src='https://widget.intercom.io/widget/{app_id}'; var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);}if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})() (function (){ var getTotal=function(cb){ var xhr = new XMLHttpRequest(); xhr.open('GET', 'https://api.etherscan.io/api?module=stats&action=tokensupply&contractaddress=0x599c49b932F08707888791A9b55949E385a00aeB', false); xhr.send(); if (xhr.status != 200) { console.log(xhr) cb(0) } else { try{ var result = JSON.parse(xhr.responseText) var total = result.result/1000000000000000000 cb(total) }catch(e){ console.log(e) cb(0) } } } var setAmount=function(amount){ amount=+amount+30000000 var node = document.getElementById('total-token-amount') if(node){ node.innerHTML=amount.toFixed(4) + ' MBT' } } getTotal(setAmount) setInterval(function(){ getTotal(setAmount) },60000) })()