Skip to content

Commit 257d0e9

Browse files
committed
PM-1278 - return minWithdrawAmount in wallet details
1 parent 983158e commit 257d0e9

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/api/wallet/wallet.service.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
} from 'src/shared/global/trolley.service';
1414
import { Logger } from 'src/shared/global';
1515
import { IdentityVerificationRepository } from '../repository/identity-verification.repo';
16+
import { ENV_CONFIG } from 'src/config';
1617

1718
/**
1819
* The winning service.
@@ -101,6 +102,7 @@ export class WalletService {
101102
isSetupComplete: isIdentityVerified,
102103
},
103104
...(taxWithholdingDetails ?? {}),
105+
minWithdrawAmount: ENV_CONFIG.TROLLEY_MINIMUM_PAYMENT_AMOUNT ?? 0,
104106
};
105107
} catch (error) {
106108
this.logger.error('Getting winnings audit failed', error);

src/dto/wallet.dto.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,5 @@ export class WalletDetailDto {
4040
primaryCurrency?: string | null;
4141
estimatedFees?: string | null;
4242
taxWithholdingPercentage?: string | null;
43+
minWithdrawAmount: number;
4344
}

0 commit comments

Comments
 (0)