Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public FundTransferResponse fundTransfer(FundTransferRequest fundTransferRequest
log.error("account status is pending or inactive, please update the account status");
throw new AccountUpdateException("account is status is :pending", GlobalErrorCode.NOT_ACCEPTABLE);
}
if (fromAccount.getAvailableBalance().compareTo(fundTransferRequest.getAmount()) <= 0) {
if (fromAccount.getAvailableBalance().compareTo(fundTransferRequest.getAmount()) < 0) {
log.error("required amount to transfer is not available");
throw new InsufficientBalance("requested amount is not available", GlobalErrorCode.NOT_ACCEPTABLE);
}
Expand Down