From bca42566faf1d719de465e08b8e12729ae5765f3 Mon Sep 17 00:00:00 2001 From: Jarsen <31397967+Jarsen136@users.noreply.github.com> Date: Sat, 5 Oct 2024 17:43:29 +0200 Subject: [PATCH] feat: offer fees displayed in the modal --- components/offer/MakeOffer.vue | 21 +++++++++++++++++++-- locales/en.json | 1 + 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/components/offer/MakeOffer.vue b/components/offer/MakeOffer.vue index d4db16a6c4..23fd867e34 100644 --- a/components/offer/MakeOffer.vue +++ b/components/offer/MakeOffer.vue @@ -28,6 +28,15 @@ +
+
+ {{ $t('offer.offerFees') }} + {{ teleportTransitionTxFees }} +
+
+
([]) @@ -104,6 +113,14 @@ const getAction = (items: MakingOfferItem[]): Actions => { } } +const teleportTransitionTxFees = computed(() => + format( + (autoTeleportButton.value?.optimalTransition.txFees || 0) + OFFER_MINT_PRICE, + decimals.value, + chainSymbol.value, + ), +) + const { action, autoTeleport, autoTeleportButton, autoTeleportLoaded } = useAutoTeleportActionButton({ getActionFn: () => getAction(itemsInChain.value), }) diff --git a/locales/en.json b/locales/en.json index 0fd11b81e2..ecaceecb47 100644 --- a/locales/en.json +++ b/locales/en.json @@ -1485,6 +1485,7 @@ "newOffer": "New Offer", "offerAccept": "Accepting Offer", "offerCreation": "Offer Creation", + "offerFees": "Offer Fee", "offerWithdrawl": "Offer Cancelation", "typeOffer": "Type An Offer", "yourOffer": "Your Offer",