1
0
mirror of https://github.com/oceanprotocol/faucet.git synced 2024-11-21 17:26:57 +01:00

round off + increase amount

This commit is contained in:
ciscodacunha 2020-11-23 16:10:03 +01:00
parent c0d7682e38
commit fccf8bc2bc
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@
</div>
<div class="col-md-12 col-xl-12 text-center">
<button type="submit" class="btn btn-primary skip-dark" id="createBtn">Get 10 OCEAN</button>
<button type="submit" class="btn btn-primary skip-dark" id="createBtn">Get 100 OCEAN</button>
<h6 class="balance">Faucet Balance - <%= balance %> OCEAN</h6>
</div>
<div class="notify text-center">

View File

@ -100,7 +100,7 @@ async function getBalance() {
let tokenInst = getTokenInstance();
let bal = await tokenInst.methods.balanceOf(process.env.FROM).call();
let balance = web3.utils.fromWei(bal, "ether");
return balance;
return Math.floor(balance);
}
function getTokenInstance() {