This guide covers steps to deploy Fee Calculator hook.
Prerequisites
AVS contracts
Access to AVS governance multisig
1
Set Up the Contract
Create a contract called FeeCalculator , use IFeeCalculator interface to override calculateBaseRewardFees, calculateFeesPerId and isBaseRewardFee hook functions for custom logic.
contractFeeCalculatorisIFeeCalculator {}
2
Deploy the contract
After implementation, deploy the contract on the same L2 network as the AttestationCenter.
3
Register AVSLogic with AttestationCenter
After deployment, you must call the setFeeCalculator function on the AttestationCenter and provide the address of the FeeCalculator contract as the parameter, as shown in the script below.