StabilityNexus / FairFund

6 stars 9 forks source link

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

Closed adityabhattad2021 closed 4 months ago

adityabhattad2021 commented 4 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):