Skip to content

Commit

Permalink
unify the variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
sparrowDom committed Nov 18, 2024
1 parent c94cd5f commit c3684a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/contracts/token/OUSD.sol
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ contract OUSD is Governable {
address to = yieldTo[from];
uint256 fromBalance = balanceOf(from);
// these are credits of from account if it were rebasing
uint256 fromCredits = _balanceToRebasingCredits(fromBalance);
uint256 creditsFrom = _balanceToRebasingCredits(fromBalance);

// Remove the bidirectional links
yieldFrom[to] = address(0);
Expand All @@ -666,8 +666,8 @@ contract OUSD is Governable {

// Local
_creditBalances[from] = fromBalance;
_creditBalances[to] -= fromCredits;
_creditBalances[to] -= creditsFrom;

_adjustGlobals(-(fromCredits).toInt256(), fromBalance.toInt256());
_adjustGlobals(-(creditsFrom).toInt256(), fromBalance.toInt256());
}
}

0 comments on commit c3684a5

Please sign in to comment.