nexlabs22 / Nex-Dex-Contracts

MIT License
5 stars 6 forks source link

limit gas costs for setFundingRate by max users and min collateral deposit #87

Open Waltermelon-lang opened 1 year ago

Waltermelon-lang commented 1 year ago

Set a minimal collateral deposit size to be $1, f.e. -> 10$ probably not needed (but let me know your opinion) because its only the fundingRate is computed onchain and we can pay for that

Set the maximal amount of users to be 5K for example. -> We can still charge the fundingRate at this price

Morteza3123 commented 1 year ago

Yes that's a good idea I do that