diff --git a/src/collator/CollatorStakingPool.sol b/src/collator/CollatorStakingPool.sol index 00310bb..b131dad 100644 --- a/src/collator/CollatorStakingPool.sol +++ b/src/collator/CollatorStakingPool.sol @@ -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] // );