diff --git a/src/components/PositionManager/PositionCallout.tsx b/src/components/PositionManager/PositionCallout.tsx index 3a491b7..86c840a 100644 --- a/src/components/PositionManager/PositionCallout.tsx +++ b/src/components/PositionManager/PositionCallout.tsx @@ -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";