Skip to content

Commit

Permalink
remove double instance of epoch
Browse files Browse the repository at this point in the history
  • Loading branch information
bryzettler committed Oct 28, 2024
1 parent d85b995 commit d7e4471
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ export const useClaimPositionRewards = () => {
if (enrolledPosAcc) {
const { lastClaimedEpoch, claimedEpochsBitmap } = enrolledPosAcc;
const epoch = lastClaimedEpoch.add(new BN(1));
const epoch = lastClaimedEpoch.add(new BN(1));
const epochsCount = isDecayed
? decayedEpoch.sub(epoch).add(new BN(1)).toNumber()
: currentEpoch.sub(epoch).toNumber();
Expand Down

0 comments on commit d7e4471

Please sign in to comment.