Bot Auth
This contract handles authority of who can call strategy executions on StrategyExecutor
. The contract is registered in the DFSRegistry
and isApproved
function of the Bot Auth is called before each strategy execution.
In the current implementation, only DeFi Saver approved bots have access to calling strategy execution. While there are plans to allow other participants to run bots in the future, this is currently not allowed.
Besides checking the caller, BotAuth also has the subId
as an input, allowing it to make decisions on who can execute based on the subscription or strategy.
Below is the interface of the contract:
Last updated