primitivefinance / portfolio

Portfolio is an automated market making protocol for implementing custom strategies at the lowest cost possible.

Home Page:https://www.primitive.xyz/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Explore: Pool Ids and Non-global Pool nonces

Alexangelj opened this issue · comments

Description

Everytime a pool is created the poolNonce is incremented. This occurs for every pool even if they have separate tokens. This means that a poolNonce can only be used for a single pair. This works, but it might make more sense to increment the poolNonce for each pair. This can be solved by having a mapping from the pairId to a poolNonce.

Need to investigate how this affects contract size.