Skip to content

Commit

Permalink
audit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hujw77 committed Jun 7, 2024
1 parent c79c8bf commit a5b90d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/collator/CollatorStakingPool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ contract CollatorStakingPool {
}

function earned(address account) public view returns (uint256) {
return _balances(account) * (rewardPerToken() - userRewardPerTokenPaid[account]) / 1e18 + rewards[account];
return _balances[account] * (rewardPerToken() - userRewardPerTokenPaid[account]) / 1e18 + rewards[account];
// return _balances[account].mul(rewardPerToken().sub(userRewardPerTokenPaid[account])).div(1e18).add(
// rewards[account]
// );
Expand Down

0 comments on commit a5b90d5

Please sign in to comment.