RageTrade / core

Perpetuals on Uniswap V3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple Array based Set Lib

134dd3v opened this issue · comments

Need seperate libraries implemented using uint32[8] and uint48[5] array. Since this is a set, the library should not expose any index related information. Only following methods need to be exposed

  • ‘include’ method, that includes a given element in the data structure if possible; if inclusion failed (due to space full) then revert.
  • ‘exclude’ method, that excludes a given element from the data structure. If element does not exist still it should not revert.