diff --git a/basicswap/static/js/offerstable.js b/basicswap/static/js/offerstable.js index 8d86448..815783d 100644 --- a/basicswap/static/js/offerstable.js +++ b/basicswap/static/js/offerstable.js @@ -1434,7 +1434,7 @@ function createTooltipContent(isSentOffers, coinFrom, coinTo, fromAmount, toAmou const percentDiffDisplay = formattedPercentDiff === "0.00" ? "0.00" : (percentDiff > 0 ? `+${formattedPercentDiff}` : formattedPercentDiff); - const profitLabel = (isSentOffers || isOwnOffer) ? "Profit" : "Savings"; + const profitLabel = (isSentOffers || isOwnOffer) ? "Max Profit" : "Max Loss"; const actionLabel = (isSentOffers || isOwnOffer) ? "selling" : "buying"; const directionLabel = (isSentOffers || isOwnOffer) ? "receiving" : "paying"; @@ -1442,7 +1442,7 @@ function createTooltipContent(isSentOffers, coinFrom, coinTo, fromAmount, toAmou

Profit/Loss Calculation:

You are ${actionLabel} ${fromAmount.toFixed(8)} ${coinFrom} ($${fromValueUSD.toFixed(2)} USD)
and ${directionLabel} ${toAmount.toFixed(8)} ${coinTo} ($${toValueUSD.toFixed(2)} USD).

Percentage difference: ${percentDiffDisplay}%

-

USD ${profitLabel}: ${profitUSD > 0 ? '+' : ''}$${profitUSD.toFixed(2)} USD

+

USD ${profitLabel}: ${profitUSD > 0 ? '' : '-'}$${profitUSD.toFixed(2)} USD

Calculation:

Percentage = ${(isSentOffers || isOwnOffer) ? "((To Amount in USD / From Amount in USD) - 1) * 100" :