mojaloop / project

Repo to track product development issues for the Mojaloop project.
Other
23 stars 15 forks source link

Participant Fund withdrawal constraint #3845

Open ei-nghon-phoo opened 5 months ago

ei-nghon-phoo commented 5 months ago

User Story

As a hub operator, I want to implement a control mechanism that prevents the withdrawal of funds if the balance is higher than the settlement account balance so that I can mitigate the risk of liquidity shortages and ensure that the DFSP maintains sufficient funds to settle transactions.

Acceptance Criteria:

  1. When creating a fund movement request by clicking withdraw button, I would like to see error message if withdraw amount is greater than settlement account balance + position account's (if position account has negative value).
  2. And also when approving a fund withdraw request, system need to check whether withdraw amount is greater than settlement account balance + position account's (if position account has negative value).