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

Improve comment regarding settlement check #1739

Merged
merged 1 commit into from
Jul 9, 2024
Merged

Conversation

iamacook
Copy link
Member

@iamacook iamacook commented Jul 8, 2024

Summary

We do not check the transaction data when mapping a swap transfer to ensure it is a settle call. The addition of this check was marked with a TODO.

Having looked into the inclusion of this showed that we do not always have access to the transaction data, e.g. when getting all incoming transfers, we only have the Transfer. As such, a detailed comment as been added explaining this, including assurance that the current implementation is sufficient.

Changes

  • Rename method to be more declarative
  • Improve comment

@iamacook iamacook self-assigned this Jul 8, 2024
@iamacook iamacook requested a review from a team as a code owner July 8, 2024 16:01
@coveralls
Copy link

Pull Request Test Coverage Report for Build 9842951190

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage remained the same at 48.257%

Files with Coverage Reduction New Missed Lines %
src/routes/transactions/mappers/transfers/swap-transfer-info.mapper.ts 1 13.64%
Totals Coverage Status
Change from base Build 9840890988: 0.0%
Covered Lines: 4225
Relevant Lines: 7022

💛 - Coveralls

@iamacook iamacook merged commit 7559a52 into main Jul 9, 2024
16 checks passed
@iamacook iamacook deleted the settlement-comment branch July 9, 2024 11:11
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.

3 participants