-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stop storing StakeRequest object in OSTComposer contract's storage #770
Comments
|
Gas Analysis keeping StakeRequests object storage
|
Gas Analysis after removing StakeRequests storage
|
@abhayks1 the large amount of gas consumed in We'll need to update the StakerProxy to a proxy contract in the other sense, to further bring down the gas cost in another ticket. |
cc: @benjaminbollen |
Storing
StakeRequest
objects in contract's storage are very expensive. Instead, we can change interfaces of the following external functions:acceptStakeRequest()
,revokeStakeRequest()
andrejectStakeRequest()
, to pass all needed params to calculate hash of aStakeRequest
.The text was updated successfully, but these errors were encountered: