MAAT Finance
  • Introduction
  • Integration
    • Deposit
    • Withdraw
    • Supported Chains
    • Supported Tokens
    • Supported Protocols
    • Widget
  • Smart Contracts
    • Architecture Overview
    • MaatVaultV1
    • MaatOracleGlobalPPS
    • MaatAddressProviderV1
    • StargateAdapter
    • Strategy
    • IncentivesController
  • Additional Info
    • Resources
    • Vision
  • Legal
    • Terms of Service
    • Privacy Policy
Powered by GitBook
On this page
  • Write functions
  • harvestAndCompound
  • changeCompounder
  • addSwapRouter
  • removeSwapRouter
  • Read functions
  • routers
  • compounder
  1. Smart Contracts

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

PreviousStrategyNextResources

Last updated 6 months ago