Skip to content

Commit

Permalink
print out partial amount + update cashu-ts
Browse files Browse the repository at this point in the history
  • Loading branch information
lollerfirst committed Jan 4, 2025
1 parent 86c7b9f commit 626cb7a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/components/MultinutPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ export default defineComponent({
// await this.activateMintUrl(mintUrl);
const partialAmountFloat = totalQuoteAmount * weights[i] + carry;
const partialAmount = Math.round(partialAmountFloat);
console.log(`partialAmount for mint ${mint.url}: ${partialAmount}`);
carry = partialAmountFloat - partialAmount;
if (partialAmount > 0) {
const quote = await this.meltQuote(
Expand Down

0 comments on commit 626cb7a

Please sign in to comment.