From 73e4bb2b1c27388fcbde0c5c9add362aa387bf28 Mon Sep 17 00:00:00 2001 From: Lasse Herskind <16536249+LHerskind@users.noreply.github.com> Date: Tue, 14 Sep 2021 13:07:45 +0200 Subject: [PATCH] fix: Fix typo in method name --- contracts/protocol/tokenization/StaticATokenLM.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } /**