Replies: 2 comments 2 replies
-
That's wrong, it would barely affect the gas. It would fit in a non complete storage slot
Was it difficult to avoid it in the |
Beta Was this translation helpful? Give feedback.
2 replies
-
Locking, we ended up bringing this property back (#240). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The
stopTime
property redundant because the same information can be gleaned from the last segment milestone.The only place where it is needed is the
getWithdrawableAmount
. It might be slightly more gas efficient to keep it as is in thegetWithdrawableAmount
, but this comes at a cost of 20,000 gas for committing this property in storage and, more importantly, at the cost of making it difficult to avoid the StackTooDeep issue.Finally, I should clarify that this proposal is strictly about the
stopTime
storage property - thegetStopTime
getter is still helpful, and I am happy to keep it.Beta Was this translation helpful? Give feedback.
All reactions