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):
Update the distributeFunds function to check if the function has been called once and revert if true.
Add a similar check on the client side to disable the distribute funds action after it's been executed
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):