Skip to content

Commit

Permalink
Only empty accounts can rebaseOptIn if already rebasing
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielVF committed Dec 17, 2024
1 parent 5e57112 commit eb957f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/contracts/token/OUSD.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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"
);
Expand Down

0 comments on commit eb957f1

Please sign in to comment.