Hat Image URIs
Last updated
Like any other NFT, hats have images. The image for a given hat is determined by the following logic:
If the hat's imageURI property is set, use that
If the hat's imageURI property is not set, then use the imageURI of the hat's admin Hat
If the admin hat's imageURI property is not set, then use the imageURI of that hat's admin
Repeat (3) until you find an imageURI that is set
If no set imageURI is found within the original hat's hat tree (including the Top Hat), then use the globalImageURI set 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