Closed Dinonard closed 2 years ago
My only comment is usability of the precompile
changes to support withdraw_from_unregistered
and nomination_transfer
. Maybe Astar portal will have use of these but I do not see why would evm smart contract use these calls.
@Maar-io for the withdraw_from_unregistered
, if contract is staking on another contract that gets unregistered, they cannot get their staked tokens out otherwise.
For nomination_transfer
, I added it for consistency.
Nomination Transfer
Summary
A new functionality is introduced for the dapps-staking pallet -
nomination transfer
. The idea is to allow stakers to transfer their nomination fromcontract_A
tocontract_B
while bypassing the unbonding period. This is great for stakers who have already staked on some contract but found another one they would like to nominate instead. Prior tonomination_transfer
, they would have to wait first for the unbonding period to complete, not earning any staking rewards, before being able to re-stake their rewards.Requirements (useful for UI)
There are certain requirements that must be met in order for nomination transfer to work:
Registered
statebond_and_stake
andunbond_and_unstake
unbonding_period
since it's bypassed hereEraStake
values will be produced both for origin and target contract and will be checked againstMaxEraStakeValues
TODO
Check list