Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checking Pending Liquidity #4014

Open
PhyuSinMyat8 opened this issue Oct 24, 2024 · 2 comments
Open

Checking Pending Liquidity #4014

PhyuSinMyat8 opened this issue Oct 24, 2024 · 2 comments
Assignees
Labels
vNext vNext Platform Development (inline with RefArch)

Comments

@PhyuSinMyat8
Copy link

Acceptance Criteria for Clearing Pending/Reserved Amounts

Scenario: Pending/Reserved amount for failed transfers in Account and Balance BC should be cleared after the transaction status is changed to aborted.

Acceptance Criteria:

  1. Transaction Status Change:
  • Given a transfer transaction with a status of "Pending" or "Reserved,"
  • When the transaction status is updated to "Aborted,"
  • Then the system should automatically clear the Pending/Reserved amount associated with that transaction.
  1. Account Balance Update:
  • Given an account with a Pending/Reserved amount due to a failed transfer,
  • When the transaction status is updated to "Aborted,"
  • the available balance should be updated accordingly.
  1. Error Handling:
  • Given a scenario where clearing the Pending/Reserved amount fails,
  • When the transaction status is updated to "Aborted,"
  • Then the system should log the error,
  • And an alert should be sent to the support team for manual intervention.
  1. Consistency Check:
  • Given an account with multiple transactions,
  • When one or more transactions change status to "Aborted,"
  • Then the system should ensure that all Pending/Reserved amounts related to these transactions are accurately cleared,
  • And the account balance remains consistent and accurate.
@PhyuSinMyat8 PhyuSinMyat8 added the vNext vNext Platform Development (inline with RefArch) label Oct 24, 2024
@PhyuSinMyat8
Copy link
Author

PhyuSinMyat8 commented Oct 24, 2024

As per testing result ,Pending/Reserved amount for failed transfers in Account and Balance BC still remaining after the transaction status is changed to aborted.

Aborted Transaction (Testing with ILP packet)
image (16).png

Check expired timestamp for short period like 1 hr
image (17).png
image (18).png

Check in DB after expiring but remain pending debit balance at payer side
image (19).png

@elnyry-sam-k
Copy link
Member

elnyry-sam-k commented Oct 24, 2024

hi @PhyuSinMyat8 , Thanks for catching and documenting this; I'm very eager to see whats happening here.

Are there any equations or specification somewhere in the docs that show how the balances are updated with the terminology used here?

I'm asking because currently - technically there's no pending balance at any given point. The update is clearly made to the position of the Payer FSP account (subject to NDC check and other validations) and then once it is finalized, another change is made to the position - if committed, then to the Payee FSP side (position updated to reflect the incoming amount) and if aborted, then position of the Payer FSP updated again to reflect the amount that wasn't sent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vNext vNext Platform Development (inline with RefArch)
Projects
None yet
Development

No branches or pull requests

3 participants