StabilityNexus / FairFund

5 stars 8 forks source link

Implement Safeguard Against Multiple Executions of Distribute Funds Function. #20

Closed adityabhattad2021 closed 3 months ago

adityabhattad2021 commented 3 months ago

Currently, there are no restrictions preventing multiple calls to the distributeFunds function after the tally date. This could potentially lead to abuse, if there are remaining tokens in the vault after the initial distribution. We need to implement a safeguard both in the smart contract and on the client side to prevent this.

Tasks (tentative):