Skip to content

Feature/add pegin report endpoint#673

Merged
Luisfc68 merged 16 commits intoflyover-2.3.0from
feature/addPeginReportEndpoint
Apr 30, 2025
Merged

Feature/add pegin report endpoint#673
Luisfc68 merged 16 commits intoflyover-2.3.0from
feature/addPeginReportEndpoint

Conversation

@gsoares85
Copy link
Copy Markdown
Contributor

Moved to the new branch, since financial reports will go only on version 2.3.0

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 7, 2025

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Files

@gsoares85 gsoares85 requested a review from Luisfc68 April 8, 2025 19:13
@gsoares85 gsoares85 requested a review from Luisfc68 April 11, 2025 12:57
Copy link
Copy Markdown
Collaborator

@Luisfc68 Luisfc68 left a comment

Choose a reason for hiding this comment

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

I think the general idea of the approach related to the query to the db is correct because its similar to the criteria pattern which is the proper solution for this kind of scenarios. However the implementation has multiple things to improve, it lacks of type safety and operands abstracted from the db. My recommendation is to address the comments and we can assume the proper implementation of criteria pattern as technical debt, because this PR has been pending for a long time.

@gsoares85 gsoares85 requested a review from Luisfc68 April 24, 2025 19:14
AverageFeePerQuote: entities.NewWei(0),
}

states := []quote.PegoutState{quote.PegoutStateRefundPegOutSucceeded}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

this is not the last step of the pegout

retainedQuotes, err := useCase.pegoutQuoteRepository.GetRetainedQuoteByState(ctx, states...)

if err != nil {
return GetPegoutReportResult{}, usecases.WrapUseCaseError(usecases.GetPeginReportId, err)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

the use case id is the pegin one

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

in the rest of the file too

@Luisfc68 Luisfc68 merged commit fd87b99 into flyover-2.3.0 Apr 30, 2025
5 checks passed
@Luisfc68 Luisfc68 deleted the feature/addPeginReportEndpoint branch April 30, 2025 15:18
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