Skip to content

Commit

Permalink
Fix amount calculation on Confirm page and pegin option
Browse files Browse the repository at this point in the history
  • Loading branch information
ronaldsg20 authored and alexjavabraz committed Sep 27, 2024
1 parent ab9c20d commit b28b5c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pegin/components/create/ConfirmationSteps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ export default defineComponent({
function getProviderFee(): SatoshiBig {
return selectedQuote.value.quote.productFeeAmount
.plus(selectedQuote.value.quote.callFee)
.plus(new SatoshiBig(selectedQuote.value.quote.gasFee.toRBTCString(), 'btc'));
.plus(SatoshiBig.fromWeiBig(selectedQuote.value.quote.gasFee));
}
const amountToTransfer = computed(() => (flyover.value
Expand Down
2 changes: 1 addition & 1 deletion src/pegin/components/create/PeginOptionCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default defineComponent({
if (!quote.value) return new SatoshiBig('0', 'btc');
return quote.value.productFeeAmount
.plus(quote.value.callFee)
.plus(new SatoshiBig(quote.value.gasFee.toRBTCString(), 'btc'));
.plus(SatoshiBig.fromWeiBig(quote.value.gasFee));
});
const PeginOptions = {
Expand Down

0 comments on commit b28b5c3

Please sign in to comment.