-
Notifications
You must be signed in to change notification settings - Fork 88
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
Define and review the interface of the stake table #673
Comments
There is an important aspect left unspecified so far: How to interpret overall voting weight from dual-stakingIn contract (see #748 ), we specify the dual-staking interfaces where validators can stake both native token and re-stake ETH. In stake table module (see impl here), we only attach a single This bears the question of the deterministic derivation function to compute this final effective voting power (i.e. the There are some potential caveats I can think of when designing it:
|
I agree with only reading native stake for now, since it will be a while before we have restaking implemented. I'm not sure we really need to do this reading through a trait, since we never plan to have more than one implementation at the same time. I think we can just directly implement a function to read the stake table from L1, for now it will only return native stake, later we will change the implementation to read both stake types and combine them. |
true. but I suggested that with "future upgrade" in mind. I was hoping a trait would help ease the migration. but maybe too many abstraction also complicates code. Alright, then we keep it simple for now then. |
interfaces need to support:
READ:
Snapshot::LastEpochStart
andSnapshot::EpochStart
)WRITE:
The text was updated successfully, but these errors were encountered: