Hats-Protocol / hats-protocol

Core contracts for Hats Protocol v1.0
https://www.hatsprotocol.xyz
GNU Affero General Public License v3.0
83 stars 25 forks source link

Prevent unlinking for tophats with no wearers #121

Closed spengrah closed 1 year ago

spengrah commented 1 year ago

This PR prevents linked tophats that have no wearer from being unlinked, plus a couple other small QoL additions.

topocount commented 1 year ago

@spengrah You've probably considered this, but maybe if the local tophat of the tree to be pruned isn't worn by an eligible user, the failsafe could be passing in a wearer of The Root Tophat and minting a local tophat to that address.

Just an idea for a secure way of eliminating that extra step. The increased complexity might not be worth it though.