From eb957f1f98820f89a3d68fdbc0e470fa30f84af3 Mon Sep 17 00:00:00 2001 From: Daniel Von Fange Date: Tue, 17 Dec 2024 11:56:05 -0500 Subject: [PATCH] Only empty accounts can rebaseOptIn if already rebasing --- contracts/contracts/token/OUSD.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/contracts/token/OUSD.sol b/contracts/contracts/token/OUSD.sol index 6435c966eb..d2c2a896cc 100644 --- a/contracts/contracts/token/OUSD.sol +++ b/contracts/contracts/token/OUSD.sol @@ -512,7 +512,7 @@ contract OUSD is Governable { alternativeCreditsPerToken[_account] > 0 || // Accounts may explicitly `rebaseOptIn` regardless of // accounting if they have a 0 balance. - balance == 0 + creditBalances[_account] == 0 , "Account must be non-rebasing" );