Skip to content

Commit 7a066c6

Browse files
committed
fix: use latest value from beaconcha.in
"650" was pulling data from 650 days after Beacon Chain genesis, not the latest
1 parent 94dfbce commit 7a066c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Staking/StakingStatsBox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ const StakingStatsBox: React.FC<IProps> = () => {
140140
data: { apr },
141141
} = await getData<{
142142
data: { apr: number }
143-
}>("https://beaconcha.in/api/v1/ethstore/650")
143+
}>("https://beaconcha.in/api/v1/ethstore/latest")
144144
const valueCurrentApr = formatPercentage(apr)
145145
setCurrentApr(valueCurrentApr)
146146
} catch (error) {

0 commit comments

Comments
 (0)