This commit introduces changes related to vault registrations in the stake manager.
The stake manager needs to keep track of the vaults a users creates so it can aggregate accumulated MP across vaults for any given user.
The StakeVault now comes with a register() function which needs to be called to register itself with the stake manager. StakeManager has a new onlyRegisteredVault modifier that ensures only registered vaults can actually stake and unstake.
Closes #70
Checklist
Ensure you completed all of the steps below before submitting your pull request:
This commit introduces changes related to vault registrations in the stake manager.
The stake manager needs to keep track of the vaults a users creates so it can aggregate accumulated MP across vaults for any given user.
The
StakeVault
now comes with aregister()
function which needs to be called to register itself with the stake manager.StakeManager
has a newonlyRegisteredVault
modifier that ensures only registered vaults can actuallystake
andunstake
.Closes #70
Checklist
Ensure you completed all of the steps below before submitting your pull request:
pnpm adorno
?pnpm verify
?