IncentivesController
IncentiveController is a contract that compounds incentives for strategies with supported incentives. It utilizes OpenOcean to swap these incentives.
Write functions
harvestAndCompound
function harvestAndCompound(
address swapRouter,
IStrategyWithIncentives strategyWithIncentives,
bytes[] calldata swapsData
)
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
function changeCompounder(address newCompounder)
Params
Param
Type
Description
newCompounder
address
Address of the new compounder
addSwapRouter
function addSwapRouter(address swapRouter)
Params
Param
Type
Description
swapRouter
address
Address of the swap router
removeSwapRouter
function removeSwapRouter(address swapRouter)
Params
Param
Type
Description
swapRouter
address
Address of the swap router
Read functions
routers
function routers()
Returns
Type
Description
address[]
Addresses of the swap routers
compounder
function compounder()
Returns
Type
Description
address
Address of the compounder
Last updated