We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ace9032 commit a926f68Copy full SHA for a926f68
backend/src/beacon/beacon.service.ts
@@ -167,15 +167,15 @@ export class BeaconService {
167
current_epoch_active_gwei,
168
} = data.data;
169
170
- const rate = Math.round(
+ const rate =
171
(previous_epoch_target_attesting_gwei / current_epoch_active_gwei) *
172
- 100,
173
- );
+ 100;
+ const truncatedRate = Math.trunc(rate * 100) / 100;
174
175
- const status = getStatus(rate);
+ const status = getStatus(truncatedRate);
176
177
return {
178
- rate,
+ rate: truncatedRate,
179
status,
180
};
181
},
0 commit comments