IncentivesController
IncentiveController is a contract that compounds incentives for strategies with supported incentives. It utilizes OpenOcean to swap these incentives.
Write functions
harvestAndCompound
Harvest incentives for a given strategy, swap them through OpenOcean and compound them. Only callable by the compounder and only for supported routers.
Params
Param
Type
Description
swapRouter
address
Address of the swap router
strategyWithIncentives
IStrategyWithIncentives
Address of strategy with incentives
swapsData
bytes[]
Swap data from OpenOcean
changeCompounder
Params
Param
Type
Description
newCompounder
address
Address of the new compounder
addSwapRouter
Params
Param
Type
Description
swapRouter
address
Address of the swap router
removeSwapRouter
Params
Param
Type
Description
swapRouter
address
Address of the swap router
Read functions
routers
Returns
Type
Description
address[]
Addresses of the swap routers
compounder
Returns
Type
Description
address
Address of the compounder
Last updated