diff --git a/backend/pkg/api/data_access/protocols.go b/backend/pkg/api/data_access/protocols.go index ccaebe685..4abb5a97c 100644 --- a/backend/pkg/api/data_access/protocols.go +++ b/backend/pkg/api/data_access/protocols.go @@ -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) } diff --git a/backend/pkg/api/types/latest_state.go b/backend/pkg/api/types/latest_state.go index 5d24cca78..8adae8062 100644 --- a/backend/pkg/api/types/latest_state.go +++ b/backend/pkg/api/types/latest_state.go @@ -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"` diff --git a/backend/pkg/api/types/validator_dashboard.go b/backend/pkg/api/types/validator_dashboard.go index cd8153163..f388d5dbd 100644 --- a/backend/pkg/api/types/validator_dashboard.go +++ b/backend/pkg/api/types/validator_dashboard.go @@ -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"`