AVSManager
Last updated
Last updated
Looking much like WorkerManager, this smart contract manages everything around AVS. It handles enrollment and exit and manages AVS accounts. As a PoolManager and WorkerManager, AVSManager has a unique account for AVS/token pair.
AVS need accounts to hold funds that will be paid to workers for their work, so before any work can be scheduled for this AVS. If the amount is sufficient, then the work can be scheduled and executed. Further, different payment options and models for AVS will be introduced to increase flexibility and customisability.
In the current implementation, the conditions for delegating AVS work are quite simple and are as follows:
Number of workers with minimum stake is more or equal to minimum workers
AVS has enough funds on its accounts to pay for the services (number of workers used * fee)