Skip to content

Commit

Permalink
added rpl apr update ts
Browse files Browse the repository at this point in the history
  • Loading branch information
remoterami committed Aug 7, 2024
1 parent fbe3353 commit e7099aa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions backend/pkg/api/data_access/protocols.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ type ProtocolRepository interface {
}

func (d *DataAccessService) GetRocketPoolOverview(ctx context.Context) (*types.RocketPoolData, error) {
// TODO @DATA-ACCESS
return d.dummy.GetRocketPoolOverview(ctx)
}
5 changes: 3 additions & 2 deletions backend/pkg/api/types/latest_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ type LatestStateData struct {
type InternalGetLatestStateResponse ApiDataResponse[LatestStateData]

type RocketPoolData struct {
LatestUpdateSlot uint64 `json:"latest_update_slot"`
EthRates struct {
LastUpdateSlot uint64 `json:"last_update_slot"`
NextUpdateSlot uint64 `json:"next_update_slot"`
EthRates struct {
Rpl float64 `json:"rpl"`
Reth float64 `json:"reth"`
} `json:"eth_rates"`
Expand Down
9 changes: 5 additions & 4 deletions backend/pkg/api/types/validator_dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,11 @@ type VDBRocketPoolTableRow struct {
Claimed decimal.Decimal `json:"claimed"`
Unclaimed decimal.Decimal `json:"unclaimed"`
} `json:"rpl"`
EffectiveRpl decimal.Decimal `json:"effective_rpl"`
RplApr float64 `json:"rpl_apr"`
RplEstimate decimal.Decimal `json:"rpl_estimate"`
SmoothingPool struct {
EffectiveRpl decimal.Decimal `json:"effective_rpl"`
RplApr float64 `json:"rpl_apr"`
RplAprUpdateTs int64 `json:"rpl_apr_update_ts"`
RplEstimate decimal.Decimal `json:"rpl_estimate"`
SmoothingPool struct {
IsOptIn bool `json:"is_opt_in"`
Claimed decimal.Decimal `json:"claimed"`
Unclaimed decimal.Decimal `json:"unclaimed"`
Expand Down

0 comments on commit e7099aa

Please sign in to comment.