From ad149301d7b404d906c7bc1a68338c35d13f8e1a Mon Sep 17 00:00:00 2001 From: NeOMakinG <14963751+NeOMakinG@users.noreply.github.com> Date: Mon, 27 Jan 2025 09:39:37 +0100 Subject: [PATCH] fix: oops --- src/lib/fees/model.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/fees/model.ts b/src/lib/fees/model.ts index c5693047a57..211f74983c0 100644 --- a/src/lib/fees/model.ts +++ b/src/lib/fees/model.ts @@ -111,7 +111,7 @@ export const calculateFees: CalculateFeeBps = ({ // No discount if we cannot fetch FOX holdings if (isFallbackFees) return bn(0) - return BigNumber.maximum(foxDiscountPercent, currentFoxWifHatDiscountPercent) + return BigNumber.minimum(foxDiscountPercent, currentFoxWifHatDiscountPercent) })() // the fee bps before the fox discount is applied, as a floating point number