mirror of
https://github.com/oceanprotocol/faucet.git
synced 2024-12-22 09:13:13 +01:00
round off + increase amount
This commit is contained in:
parent
c0d7682e38
commit
fccf8bc2bc
@ -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">
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user