Skip to content

Commit

Permalink
Merge pull request #10 from BTI-US/master
Browse files Browse the repository at this point in the history
Update airdrop result
  • Loading branch information
Phillweston authored Apr 2, 2024
2 parents 103fe68 + 6f17174 commit 507eea2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/claim-airdrop.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,9 @@ async function initiateTransaction() {
displayMessage('You have already claimed your airdrop.', 'info');
updateProgressBar(100, 'red');
} else {
displayMessage(`Your airdrop amount is: ${contractReadResult}, press the button above to confirm your airdrop.`, 'success');
const divisor = BigInt("1000000000000000000");
let airdropAmount = addCommasToBigInt(((contractReadResult / divisor) + (contractReadResult % divisor > 0 ? 1n : 0n)).toString());
displayMessage(`Your airdrop amount is: ${airdropAmount}, press the button above to confirm your airdrop.`, 'success');
document.getElementById('claimAirdrop').textContent = 'Confirm Your Airdrop';
}
} catch (error) {
Expand Down

0 comments on commit 507eea2

Please sign in to comment.