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

Return combined v1 and v2 FP list #156

Closed
wants to merge 2 commits into from

Conversation

jeremy-babylonlabs
Copy link
Contributor

  • Added transition_required field to finality provider.
  • Combined v1 and v2 FP list
Screenshot 2024-11-29 at 5 19 44 PM

- Added `transition_required` field to finality provider.
- Combined v1 and v2 FP list
@jeremy-babylonlabs jeremy-babylonlabs force-pushed the feat/155-fp-not-transitioned-state branch from 40a267a to c5a2136 Compare November 29, 2024 11:26
Copy link
Collaborator

@jrwbabylonlab jrwbabylonlab left a comment

Choose a reason for hiding this comment

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

Approved, but best wait for @gusin13 's review as well

return providersPublic, nil
}

// For V1: getFinalityProvidersFromGlobalParams returns the finality providers from the global params.
Copy link
Contributor

Choose a reason for hiding this comment

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

can you help me understand this -

why do we need global params here, don't we just need to fetch v1 and v2 fp's and then mark transitioned to those not in v2?

}

for _, fp := range resultMap.Data {
var paramsPublic *FinalityProviderStatsPublic
Copy link
Contributor

Choose a reason for hiding this comment

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

i kind of don't understand some parts of this code,

we are getting fp's from global params and then also looking for the v1 fp stats and then injecting in response but if the v1 fp's have not transitioned why do we need the stats?

can you please help me understand purpose of this func?

Copy link
Collaborator

Choose a reason for hiding this comment

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

agreed here. we do not need the FP from phase-1 that do not have tvl

@jrwbabylonlab
Copy link
Collaborator

Closing as discussion in slack. FE will no longer show the pending transition hence we shall move the logic to the v1 endpoint instead

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