Github username: @0xmahdirostami
Twitter username: 0xmahdirostami
Severity: minor
Description
The farm::owner_stop_farm and farm::owner_start_new_farm functions in the farm contract are crucial, and emitting events when these actions occur is essential for transparency and informing users about important changes. Adding events for these functions will provide users with a clear record of when the farm is stopped or started.
Impact
The absence of events for these critical functions may result in a lack of transparency, making it difficult for users to track important changes in the farm contract. Emitting events for the start and stop of the farm ensures that users are informed and can make informed decisions about their farming activities.
These changes will ensure that events are emitted when the farm is started or stopped, providing users with critical information about the state of the farm contract.
Github username: @0xmahdirostami Twitter username: 0xmahdirostami Severity: minor
Description
The
farm::owner_stop_farm
andfarm::owner_start_new_farm
functions in the farm contract are crucial, and emitting events when these actions occur is essential for transparency and informing users about important changes. Adding events for these functions will provide users with a clear record of when the farm is stopped or started.Impact
The absence of events for these critical functions may result in a lack of transparency, making it difficult for users to track important changes in the farm contract. Emitting events for the start and stop of the farm ensures that users are informed and can make informed decisions about their farming activities.
Recommended Changes
Add the following event definitions:
Modify the
farm::owner_start_new_farm
andfarm::owner_stop_farm
functions to emit these events:These changes will ensure that events are emitted when the farm is started or stopped, providing users with critical information about the state of the farm contract.