fix: Fix typo in method name

This commit is contained in:
Lasse Herskind 2021-09-14 13:07:45 +02:00
parent e541f43763
commit 73e4bb2b1c

View File

@ -513,7 +513,7 @@ contract StaticATokenLM is ERC20 {
}
if (reward > 0) {
_unclaimedRewards[msg.sender] = 0;
_updateUserSnapshoRewardsPerToken(msg.sender);
_updateUserSnapshotRewardsPerToken(msg.sender);
REWARD_TOKEN.safeTransfer(receiver, reward);
}
}
@ -526,7 +526,7 @@ contract StaticATokenLM is ERC20 {
* @dev Update the rewardDebt for a user with balance as his balance
* @param user The user to update
*/
function _updateUserSnapshoRewardsPerToken(address user) internal {
function _updateUserSnapshotRewardsPerToken(address user) internal {
_userSnapshotRewardsPerToken[user] = _accRewardsPerToken;
}
@ -540,7 +540,7 @@ contract StaticATokenLM is ERC20 {
uint256 pending = _getPendingRewards(user, balance, false);
_unclaimedRewards[user] = _unclaimedRewards[user].add(pending);
}
_updateUserSnapshoRewardsPerToken(user);
_updateUserSnapshotRewardsPerToken(user);
}
/**