orbland / contracts

🔮 Orb and related contracts. Auction + Harberger taxed ownership + invocations.
https://orb.land
MIT License
22 stars 5 forks source link

[INFO] onlyHolder and onlyHolderSolvent can be unified #21

Closed odyslam closed 1 year ago

odyslam commented 1 year ago

Description

The modifiers onlyHolderSolvent and onlyHolder are always used together in the codebase. That indicates that they should not be different modifiers.

Suggestion

Simplify the codebase, remove the modifiers, and introduce onlySolventHolder modifier that checks for both a) solvency and b) that msg.sender is the holder.