MiniByte
Source:Verified
Read Functions / calculateReward
Overview

The calculateReward function in the MiniByte contract computes the total reward for a specified user based on their registered power grants. It checks if the user is registered, iterates through their power grants to calculate the reward based on the duration of each grant, and returns the total accumulated reward.

Inputs
  • userAddr (address): The Ethereum address of the user for whom the reward is being calculated.
Outputs
  • uint256: The total reward calculated for the user, returned as a uint256 value.
Emits Zero Events
Functions will often emit events during execution, often signifying key changes in state. There are no events emited by this function
Recent Transactions Calling This Function
This returns the latest 20 times that this function was called directly by a wallet or internally by another contract.
Looking for transactions where this function was called...