Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use BigInt for bond and unbond #3

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1226,7 +1226,7 @@ watch(accountStore, async () => {
const amountToBond = ref(0);
const bondAmount = () => {
// Handle the bonding process here
const amount = amountToBond.value * Math.pow(10, 12);
const amount = BigInt(amountToBond.value) * BigInt(Math.pow(10, 12));
console.log(`Bonding ${amount}`);
txStatus.value = "⌛ Bonding. Please sign the transaction in your wallet.";
openStatusOverlay();
Expand Down Expand Up @@ -1255,7 +1255,7 @@ const bondAmount = () => {
const amountToUnbond = ref(0);
const unbondAmount = () => {
// Handle the bonding process here
const amount = amountToUnbond.value * Math.pow(10, 12);
const amount = BigInt(amountToUnbond.value) * BigInt(Math.pow(10, 12));
console.log(`Unbonding ${amount}`);
txStatus.value = "⌛ Unbonding. Please sign the transaction in your wallet.";
openStatusOverlay();
Expand Down
Loading