Skip to content

Commit 8f3cefe

Browse files
committed
more
2 parents 72f4ec4 + 8508edc commit 8f3cefe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/loopring_v3/contracts/impl/UserStakingPool.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ contract UserStakingPool is IUserStakingPool, Claimable
154154
total.balance = total.balance.add(claimedAmount);
155155
total.claimedReward = total.claimedReward.add(claimedAmount);
156156
total.claimedAt = (totalPoints >= userPoints) ?
157-
totalPoints.sub(userPoints) / total.balance : now;
157+
now.sub(totalPoints.sub(userPoints) / total.balance) : now;
158158

159159
Staking storage user = stakings[msg.sender];
160160
user.balance = user.balance.add(claimedAmount);

0 commit comments

Comments
 (0)