From 511dcaa68949f95e07f902939d0295c293812d08 Mon Sep 17 00:00:00 2001 From: Domen Grabec Date: Fri, 15 Nov 2024 17:45:45 +0100 Subject: [PATCH] remove overwriting the same value to alternativeCreditsPerToken --- contracts/contracts/token/OUSD.sol | 3 --- 1 file changed, 3 deletions(-) diff --git a/contracts/contracts/token/OUSD.sol b/contracts/contracts/token/OUSD.sol index 4985837e55..b586fa2a18 100644 --- a/contracts/contracts/token/OUSD.sol +++ b/contracts/contracts/token/OUSD.sol @@ -296,7 +296,6 @@ contract OUSD is Governable { _creditBalances[account] = newBalance; _creditBalances[target] = targetNewCredits; - alternativeCreditsPerToken[account] = 1e18; } else if (state == RebaseOptions.YieldDelegationTarget) { uint256 newCredits = _balanceToRebasingCredits( newBalance + _creditBalances[yieldFrom[account]] @@ -694,9 +693,7 @@ contract OUSD is Governable { // Local _creditBalances[from] = fromBalance; - alternativeCreditsPerToken[from] = 1e18; _creditBalances[to] = toNewCredits; - alternativeCreditsPerToken[to] = 0; // Is needed otherwise rebaseOptOut check will not pass // Global nonRebasingSupply += fromBalance;