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

Catch swapOrderHelper.getOrder errors #1699

Merged
merged 2 commits into from
Jun 27, 2024
Merged

Conversation

hectorgomezv
Copy link
Member

Changes

  • Adds a catch block when calling swapOrderHelper.getOrder on TwapOrderMapper, so the transaction is mapped to a TWAP order even if some partial orders are not found on the CowSwap API.

@hectorgomezv hectorgomezv self-assigned this Jun 27, 2024
@hectorgomezv hectorgomezv requested a review from a team as a code owner June 27, 2024 21:09
@coveralls
Copy link

coveralls commented Jun 27, 2024

Pull Request Test Coverage Report for Build 9703685918

Details

  • 3 of 12 (25.0%) changed or added relevant lines in 1 file are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.04%) to 48.767%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/routes/transactions/mappers/common/twap-order.mapper.ts 3 12 25.0%
Files with Coverage Reduction New Missed Lines %
src/routes/transactions/mappers/common/twap-order.mapper.ts 2 28.05%
Totals Coverage Status
Change from base Build 9692747087: -0.04%
Covered Lines: 4195
Relevant Lines: 6937

💛 - Coveralls

@hectorgomezv hectorgomezv merged commit 8ca961a into main Jun 27, 2024
16 checks passed
@hectorgomezv hectorgomezv deleted the catch-order-not-found-errors branch June 27, 2024 21:20
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