Skip to content

Commit

Permalink
fix wrong math
Browse files Browse the repository at this point in the history
  • Loading branch information
kyzia551 committed Jun 26, 2023
1 parent 4983bee commit e8d31fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BaseAaveToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ abstract contract BaseAaveToken is Context, IERC20Metadata {
_balances[from].balance = fromBalanceBefore - uint104(amount);
}

_balances[to].balance += toBalanceBefore + uint104(amount);
_balances[to].balance = toBalanceBefore + uint104(amount);

_afterTokenTransfer(from, to, fromBalanceBefore, toBalanceBefore, amount);
}
Expand Down

0 comments on commit e8d31fa

Please sign in to comment.