Contract acts as delegate for sub-stakers*
Defines base fraction and precision of worker fraction. E.g., for a value of 10000, a worker fraction of 100 represents 1% of reward (100/10000)
Transfer tokens as delegator
Amount of tokens to transfer
Get available ether for delegator
Get available reward in tokens for delegator
Get available reward for all delegators and owner
Get available reward in tokens for worker node owner
Get cumulative reward. Available and withdrawn reward together to use in delegator/owner reward calculations
Calculate worker’s fraction depending on deposited tokens Override to implement dynamic worker fraction.
Interface router contract address
Initialize function for using with OpenZeppelin proxy
Share of token reward that worker node owner will get. Use value up to BASIS_FRACTION (10000), if _workerFraction = BASIS_FRACTION -> means 100% reward as commission. For example, 100 worker fraction is 1% of reward
Owner of worker node, only this address can withdraw worker commission
deposit() is allowed
Calling fallback function is allowed only for the owner
msg.senderis the owner of the contract.
withdrawAll() is allowed
the address of the owner.
Allows the current owner to relinquish control of the contract.
Renouncing to ownership will leave the contract without an owner. It will not be possible to call the functions with the
Returns address of StakingInterfaceRouter
Set worker owner address
Allows the current owner to transfer control of the contract to a newOwner.
The address to transfer ownership to.
Withdraw reward, deposit and fee to delegator
Withdraw available amount of ETH to delegator
Withdraw reward to delegator
Amount of tokens to withdraw
Withdraw reward in tokens to worker node owner