Skip to content

Commit

Permalink
fix: candidate block number maths
Browse files Browse the repository at this point in the history
  • Loading branch information
0xyaco committed Oct 24, 2024
1 parent 0d0ba6b commit b494c94
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export class EvmBlockNumberProvider implements BlockNumberProvider {
const timestampDeltaBN = new BigNumber((lastBlock.timestamp - timestamp).toString());

let candidateBlockNumberBN = new BigNumber(lastBlock.number.toString())
.dividedBy(timestampDeltaBN.dividedBy(estimatedBlockTimeBN))
.minus(timestampDeltaBN.dividedBy(estimatedBlockTimeBN))
.integerValue();

const baseStepBN = new BigNumber(lastBlock.number.toString())
Expand Down

0 comments on commit b494c94

Please sign in to comment.