[ ] (smart-contract) implement Action::Stake
get
the address of a validatortransfer
VARA from user to the validatormint
gVARA for the userThe criteria points to select a validator will be:
$VARA
token[ ] (smart-contract) implement rewards functionality
claim
the VARA rewards from the validatortransfer
the VARA to the owner of the GuardianProtocolregister
the rewards in the stake register of the userCurrently, the GuardianProtocol will claim the rewards to the validators. The gVARA tokens will then allow the user to eventually withdrawn more VARA than the amount deposited.
[ ] (smart-contract) implement Action::Withdrawn
burn
the amount of gVARA tokenstransfer
the corresponding VARA to the user