Skip to content

Conversation

@samparsky
Copy link
Contributor

Fixes #91

Copy link
Contributor

@OisinKyne OisinKyne left a 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 {
Copy link
Contributor

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?

Copy link
Contributor Author

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()

Copy link
Contributor Author

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()
);
}
}
Copy link
Contributor

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 :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, definitely

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

deposit Ether (ETH) to the beacon chain collectively

3 participants