Hat Image URIs
Like any other NFT, hats have images. The image for a given hat is determined by the following logic:
If the hat's
imageURIproperty is set, use thatIf the hat's
imageURIproperty is not set, then use theimageURIof the hat's admin HatIf the admin hat's
imageURIproperty is not set, then use theimageURIof that hat's adminRepeat (3) until you find an
imageURIthat is setIf no set
imageURIis found within the original hat's hat tree (including the Top Hat), then use theglobalImageURIset in the Hats Protocol contract
This logic creates flexibility for DAOs to efficiently customize images for their hats, while keeping images as optional and hat creation relatively cheap.
Last updated