Skip to content

Commit

Permalink
fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
bryzettler committed Dec 10, 2024
1 parent cdc8096 commit bc8cf20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/PositionManager/PositionCallout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const PositionCallout: FC<{
: lockup.endTs.lte(new BN(unixNow)));
const elapsedTime = new BN(unixNow).sub(lockup.startTs);
const totalTime = isDelegated
? lockup.endTs.add(new BN(EPOCH_LENGTH)).sub(lockup.startTs)
? decayedEpoch.add(new BN(1)).mul(new BN(EPOCH_LENGTH)).sub(lockup.startTs)
: lockup.endTs.sub(lockup.startTs);
const decayedPercentage = elapsedTime.muln(100).div(totalTime);
const canDelegate = network === "hnt";
Expand Down

0 comments on commit bc8cf20

Please sign in to comment.