Closed chasebrownn closed 5 months ago
The VestingSchedule structure will reserve two 256-bit slots for storing a timestamp in each which is guaranteed to fit in a smaller value of bits.
VestingSchedule
struct VestingSchedule { /// @dev lock epoch start time. uint256 startTime; /// @dev lock epoch end time. uint256 endTime; ///@dev amount of tokens locked. uint256 amount; }
We advise the code to reduce the storage needs of the referenced variables, optimizing the code's gas cost when creating and deleting vesting schedule entries.
Acknowledged
VEV-03C: Optimization of Storage Space
Description:
The
VestingSchedule
structure will reserve two 256-bit slots for storing a timestamp in each which is guaranteed to fit in a smaller value of bits.Example:
Recommendation:
We advise the code to reduce the storage needs of the referenced variables, optimizing the code's gas cost when creating and deleting vesting schedule entries.