You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After we've implemented two different staking solutions,
it's time for us to compose them into something that uses the best properties of both worlds.
Right now there's logos-co/staking and vacp2p/staking-reward-streamer.
We've reached consensus that the latter is the better solution for the problem at hand, as it allows for real-time balance updates in the protocol.
However, the former comes with a few architectural benefits that we'd like to leverage as well.
Namely the composition of StakeVault and StakeManager and its whitelisting capabilities.
This bigger task is putting together a codebase that makes use of the StakeVault <-> StakeManager architecture, while also implementing the multiplier point system from the staking-reward-streamer solution.
The text was updated successfully, but these errors were encountered:
…dsStreamerMP
This commit adds the following changes:
- Add the contract `StakeVault` so funds can be stored safely by the user. #14
- Added the interface `ITrustedCodehashAccess` and contract `TrustedCodehashAccess` in the `src/access` directory, which implements the `ITrustedCodehashAccess` interface and provides functionality to set or update the trust status for a contract's codehash and implemented it on `RewardStreamerMP`. #15
- added the interface `IStakeManager` and implemented it on `RewardStreamerMP` #13
These changes are necessary to enforce security measures and restrict access based on the codehash of the caller, and allow for better reuse of code between StakeManager and RewardStreamerMP.
After we've implemented two different staking solutions,
it's time for us to compose them into something that uses the best properties of both worlds.
Right now there's logos-co/staking and vacp2p/staking-reward-streamer.
We've reached consensus that the latter is the better solution for the problem at hand, as it allows for real-time balance updates in the protocol.
However, the former comes with a few architectural benefits that we'd like to leverage as well.
Namely the composition of
StakeVault
andStakeManager
and its whitelisting capabilities.This bigger task is putting together a codebase that makes use of the
StakeVault
<->StakeManager
architecture, while also implementing the multiplier point system from thestaking-reward-streamer
solution.The text was updated successfully, but these errors were encountered: