mirror of
https://github.com/oceanprotocol/faucet.git
synced 2024-11-22 01:36:57 +01:00
round off + increase amount
This commit is contained in:
parent
c0d7682e38
commit
fccf8bc2bc
@ -45,7 +45,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-12 col-xl-12 text-center">
|
<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>
|
<h6 class="balance">Faucet Balance - <%= balance %> OCEAN</h6>
|
||||||
</div>
|
</div>
|
||||||
<div class="notify text-center">
|
<div class="notify text-center">
|
||||||
|
@ -100,7 +100,7 @@ async function getBalance() {
|
|||||||
let tokenInst = getTokenInstance();
|
let tokenInst = getTokenInstance();
|
||||||
let bal = await tokenInst.methods.balanceOf(process.env.FROM).call();
|
let bal = await tokenInst.methods.balanceOf(process.env.FROM).call();
|
||||||
let balance = web3.utils.fromWei(bal, "ether");
|
let balance = web3.utils.fromWei(bal, "ether");
|
||||||
return balance;
|
return Math.floor(balance);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getTokenInstance() {
|
function getTokenInstance() {
|
||||||
|
Loading…
Reference in New Issue
Block a user