Now, enum AMM (and Factory) compare be compared nor inserted into a HashMap. This is a bit inconvenient.
Solution:
I offer to implement Hash, Eq and PartialEq for AMM and Factory macros.
Moreover, I think it will be sufficient (to save up compute time) to just use Addresses for the comparison as they are unique Hashes a priori.
P.S. Feel free to suggest a better idea. Always open for discussion :)
Problem:
Now, enum AMM (and Factory) compare be compared nor inserted into a HashMap. This is a bit inconvenient.
Solution:
I offer to implement Hash, Eq and PartialEq for AMM and Factory macros. Moreover, I think it will be sufficient (to save up compute time) to just use Addresses for the comparison as they are unique Hashes a priori.
P.S. Feel free to suggest a better idea. Always open for discussion :)