Skip to content

feat: update liquidity check - #899

Merged
vijayg10 merged 18 commits into
mojaloop:masterfrom
vijayg10:feat/update-liquidity-check
May 17, 2022
Merged

vijayg10 merged 18 commits into
mojaloop:masterfrom
vijayg10:feat/update-liquidity-check

Conversation

@vijayg10

@vijayg10 vijayg10 commented May 16, 2022 •

Copy link
Copy Markdown
Contributor
  • feat:

  • chore:

    • refactored fundsIn in admin handler
    • updated dependencies
    • fixed audit-resolve issues
    • fixed unit tests
  • fix:

    • changed the default config for running integration tests
    • fixed an issue with an integration test
      correctly into a object
    • Added unit tests for config changes

BREAKING CHANGE: Transfer will be successful only if the payer has settlement account balance. This is the additional check that has been added in this PR. And also the error message is changed for NDC limit check from PAYER_FSP_INSUFFICIENT_LIQUIDITY to PAYER_LIMIT_ERROR. Now the error message PAYER_FSP_INSUFFICIENT_LIQUIDITY occurs when the payer has insufficient settlement account balance.

@mdebarros mdebarros left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @vijayg10 ,

PR looks good with just some minor comments/suggestions for your attention.

Comment thread README.md Outdated
Comment thread src/models/position/facade.js
Comment thread test/integration/helpers/participantFundsInOut.js
Comment thread test/integration/helpers/participantFundsInOut.js Outdated
Comment thread test/integration/helpers/participantFundsInOut.js Outdated
Comment thread test/integration/models/transfer/transferStateChange.test.js
Comment thread test/unit/models/position/facade.test.js Outdated
Comment thread test/unit/models/position/facade.test.js Outdated
Comment thread test/unit/models/position/facade.test.js Outdated
Comment thread test/unit/models/position/facade.test.js Outdated
@vijayg10
vijayg10 requested a review from mdebarros May 17, 2022 11:07
Comment thread package.json Outdated
@vijayg10
vijayg10 requested a review from mdebarros May 17, 2022 13:51

@mdebarros mdebarros left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@vijayg10 please copy-paste your PR description in the squash-and-merge comment.

@vijayg10
vijayg10 merged commit 2e33a5a into mojaloop:master May 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants