diff --git a/apps/machine/src/views/CashInView.vue b/apps/machine/src/views/CashInView.vue index 3316a2c..3f069a2 100644 --- a/apps/machine/src/views/CashInView.vue +++ b/apps/machine/src/views/CashInView.vue @@ -3,7 +3,6 @@ import { watch, computed, ref } from 'vue' import { useRouter } from 'vue-router' import { useAtmStore } from '@/stores/atm' import { Button } from '@/components/ui/button' -import { Badge } from '@/components/ui/badge' import { Alert, AlertDescription } from '@/components/ui/alert' import { Input } from '@/components/ui/input' import QRCode from '@/components/QRCode.vue' @@ -502,12 +501,45 @@ const isProcessing = computed(() => atmStore.isPayingInvoice || atmStore.isReque >
🎉

Transaction Complete!

-

- You received - {{ formatSats(context.satsAmount) }} sats -

+ + +
+
+ Inserted + {{ atmStore.fiatSymbol }}{{ (context.fiatAmount / 100).toFixed(2) }} +
+
+ Rate + {{ formatSats(context.exchangeRate) }} sats/{{ atmStore.fiatSymbol }} +
+
+ Commission ({{ (context.feePercent * 100).toFixed(2) }}%) + -{{ + formatSats( + Math.floor( + Math.floor((context.fiatAmount / 100) * context.exchangeRate) * + context.feePercent + ) + ) + }} + sats +
+
+
+ You received + {{ formatSats(context.satsAmount) }} sats +
+
+

Thank you!

diff --git a/apps/machine/src/views/CashOutView.vue b/apps/machine/src/views/CashOutView.vue index 5a4e426..5428156 100644 --- a/apps/machine/src/views/CashOutView.vue +++ b/apps/machine/src/views/CashOutView.vue @@ -362,6 +362,43 @@ function formatFiat(cents: number): string { >
🎉

Transaction Complete!

+ + +
+
+ You paid + {{ formatSats(context.satsAmount) }} sats +
+
+ Rate + {{ formatSats(context.exchangeRate) }} sats/{{ atmStore.fiatSymbol }} +
+
+ Commission ({{ (context.feePercent * 100).toFixed(2) }}%) + -{{ + formatSats( + context.satsAmount - + Math.floor((context.fiatAmount / 100) * context.exchangeRate) + ) + }} + sats +
+
+
+ Cash received + {{ atmStore.fiatSymbol }}{{ formatFiat(context.fiatAmount) }} +
+
+

Thank you!