Skip to content

Commit

Permalink
Add user protected maker function
Browse files Browse the repository at this point in the history
  • Loading branch information
SinaKhalili committed Dec 24, 2024
1 parent b34d51b commit c27e219
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/driftpy/math/user_status.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from driftpy.types import UserAccount, UserStatus


def is_user_protected_maker(user_account: UserAccount) -> bool:
return (user_account.status & UserStatus.PROTECTED_MAKER) > 0

0 comments on commit c27e219

Please sign in to comment.