-
Notifications
You must be signed in to change notification settings - Fork 124
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
[CLOB-1036] organizational update for liquidation daemon #855
Conversation
WalkthroughThe changes involve updates to a Go package that handles liquidation processes in a financial protocol. New functions for querying subaccounts and checking their collateralization status have been added, along with the ability to send liquidatable subaccount IDs to a gRPC server. Additionally, there's been a refactoring effort that includes the removal of certain functions and the streamlining of function calls, as well as minor adjustments to testing imports and telemetry measurements. Changes
TipsChat with CodeRabbit Bot (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (3)
- protocol/daemons/liquidation/client/grpc_helper.go (1 hunks)
- protocol/daemons/liquidation/client/grpc_helper_test.go (2 hunks)
- protocol/daemons/liquidation/client/sub_task_runner.go (3 hunks)
Files skipped from review due to trivial changes (1)
- protocol/daemons/liquidation/client/grpc_helper_test.go
Additional comments: 5
protocol/daemons/liquidation/client/grpc_helper.go (1)
- 1-155: The changes in
grpc_helper.go
add new functions and modify existing ones, which is consistent with the summary's mention of significant alterations to the declarations of exported entities. However, the summary also mentions the removal of certain functions fromsub_task_runner.go
, which is not reflected in the provided code. Ensure that the removal of these functions is intentional and that their responsibilities have been correctly migrated togrpc_helper.go
.protocol/daemons/liquidation/client/sub_task_runner.go (4)
51-55: The summary indicates that the
GetAllSubaccounts
function was refactored for better readability, which is consistent with the changes seen in the hunk. The parameters are now aligned in a single line, improving the readability of the function call.52-55: The function
GetAllSubaccounts
is still being used here, which contradicts the summary that states it was removed. This needs to be clarified as it may impact the understanding of the code changes.79-80: The summary mentions the removal of the
SendLiquidatableSubaccountIds
function, but it is still present and being called in the code. This discrepancy needs to be addressed.82-84: The summary also mentions the removal of the
CheckCollateralizationForSubaccounts
function, yet it is clearly being used within theGetLiquidatableSubaccountIds
function. This is another inconsistency that should be resolved.
Changelist
Test Plan
[Describe how this PR was tested (if applicable)]
Author/Reviewer Checklist
state-breaking
label.indexer-postgres-breaking
label.PrepareProposal
orProcessProposal
, manually add the labelproposal-breaking
.feature:[feature-name]
.backport/[branch-name]
.refactor
,chore
,bug
.