diff --git a/contracts/contracts/token/OUSD.sol b/contracts/contracts/token/OUSD.sol index 8bd07380bf..295b34053a 100644 --- a/contracts/contracts/token/OUSD.sol +++ b/contracts/contracts/token/OUSD.sol @@ -392,8 +392,9 @@ contract OUSD is Governable { view returns (uint256) { - if (alternativeCreditsPerToken[_account] != 0) { - return alternativeCreditsPerToken[_account]; + uint256 alternativeCreditsPerTokenMem = alternativeCreditsPerToken[_account]; + if (alternativeCreditsPerTokenMem != 0) { + return alternativeCreditsPerTokenMem; } else { return rebasingCreditsPerToken_; }