Skip to content

Commit 129e1ea

Browse files
committed
fee calculation
1 parent 2d38155 commit 129e1ea

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/api/withdrawal/withdrawal.service.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,7 @@ export class WithdrawalService {
258258
trolleyRecipientPayoutDetails.payoutMethod === 'paypal' &&
259259
ENV_CONFIG.TROLLEY_PAYPAL_FEE_PERCENT
260260
) {
261-
const feePercent =
262-
1 - 1 / (1 + Number(ENV_CONFIG.TROLLEY_PAYPAL_FEE_PERCENT) / 100);
261+
const feePercent = Number(ENV_CONFIG.TROLLEY_PAYPAL_FEE_PERCENT) / 100;
263262
feeAmount = Math.max(
264263
ENV_CONFIG.TROLLEY_PAYPAL_FEE_MAX_AMOUNT,
265264
feePercent * paymentAmount,

0 commit comments

Comments
 (0)