-
Notifications
You must be signed in to change notification settings - Fork 16
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
Feat/safe module #107
base: main
Are you sure you want to change the base?
Feat/safe module #107
Conversation
fb11745
to
a6bb0da
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Want to understand whether this can break if the amount of contribution addresses goes beyond a transfer()
s gas mainly
depositContract = IETH2DepositContract(eth2DepositContract); | ||
} | ||
|
||
receive() external payable { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we calculate at how many contributors might this break with 2100 gas, because the free gas in a receive
is lower than the allocation of a new storage slot to write down their contribution?
We don't have to worry about fallback() when receive() is set, yes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not we don't have to worry about fallback()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The 2100 gas limit doesn't hold here. Any interaction via transfer/send
will revert with OOG
handler.ghost_depositSum() - mockDepositContract.ghost_depositSum() - handler.ghost_rageQuitSum() | ||
); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really understand this testing much, walk me through it on our next one on one call :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, definitely
Fixes #91