mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
fix: Fix typo in method name
This commit is contained in:
parent
e541f43763
commit
73e4bb2b1c
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user