Open code423n4 opened 3 years ago
hickuphh3
It would be beneficial to index certain arguments in events (eg. marketIndex and user in LongShort.sol), For example, it would be easy to filter through event emissions (using web3js / ethersjs / polygonscan APIs), and for the creation of subgraphs.
marketIndex
user
Thanks. This uses more gas and doesn't provide benefit to subgraphs (which is what we are using - maybe a bit too much vendor lock-in :see_no_evil:).
We will consider this however.
Handle
hickuphh3
Vulnerability details
Impact
It would be beneficial to index certain arguments in events (eg.
marketIndex
anduser
in LongShort.sol), For example, it would be easy to filter through event emissions (using web3js / ethersjs / polygonscan APIs), and for the creation of subgraphs.