diff --git a/contracts/protocol/tokenization/StaticATokenLM.sol b/contracts/protocol/tokenization/StaticATokenLM.sol index d670ecbc..61004c2e 100644 --- a/contracts/protocol/tokenization/StaticATokenLM.sol +++ b/contracts/protocol/tokenization/StaticATokenLM.sol @@ -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); } /**