Rewards Fee Calculator

Overview

The Othentic Stack enables developers to create a FeeCalculator contract, which functions as a hook for configuring rewards, offering flexible and customizable logic tailored to specific needs.

Interface

The interface defines two functions: calculateBaseRewardFees and calculateFeesPerId. You should select one of these options.

These functions are invoked within the AttestationCenter contract as part of the submitTask function by the Task Aggregator.

calculateBaseRewardFees function is called in the _calculateBaseRewardFees function.

calculateFeesPerId is called in the _submitTaskBusinessLogic function.


Use cases

Dynamic Fee Adjustment Based on Voting Power

The FeeCalculator hook can be used to distribute rewards among Operators based on their voting power. You can also enforce below depending on the usecase.

  • Skipping Operators: Operators below a predefined threshold (e.g., ID < 6) can be excluded.

  • Enforcing a Maximum Reward Cap: Ensures that total allocated rewards never exceed the predefined reward per task.

  • On-Chain Calculation: Provides transparency and efficiency.

Full Implementation

Last updated