Keeper Registration and Update
To participate in PowerAgent network, the user has to register their keeper worker address in the Agent contract.
Overview
Specification
Keeper registration
function registerAsKeeper(
//address of the keeper worker account
address worker_,
//initial CVP deposit amount to stake for this worker
uint256 initialDepositAmount
//returns id of the newly registered keeper
) public virtual returns (uint256 keeperId)
{
//worker address is not already assigned to any registered keeper in the Agent contract
_assertWorkerNotAssigned();
//CVP is not less than the minimal allowed CVP stake
_minKeeperCvpAssertion();
}Worker address update
Last updated
Was this helpful?