Hooks.wtf

Token Importer

TokenImporter.sol

Allows external and pre-existing tokens to be flaunched onto the AnyPositionManager. Connects with a list of approved validation contracts that captures token information and then confirms if it is safe / approved to be imported.


[INFO] Creator is Hard Coded to msg.sender

The internal _initialize function sets the creator as the msg.sender. Should this be customisable to allow for the imported token to be assigned to a secondary creator address?


[LOW] Initialized Tokens Should Check Zero Address

If a verifier is not correctly validating tokens, then a zero address token could be incorrectly validated. We would recommend adding a check in both initialize functions to prevent this being passed in.


[LOW] Superfluous receive Function

There are no payable functions or requirement of ETH to be passed to the contract. We would recommend removing the receive function to prevent ETH being locked in the contract.

Previous
MarketCappedPriceV3.sol