SwapBorrowRateMode

Aave V2 Action Plugin - SwapBorrowRateMode

Description

Swaps the senders borrow rate modes between stable and variable.

Method

swapBorrowRateMode(address, uint256)

Input Parameters

No required parameters.

Method Parameters

Returned Values

No returned values

Example

Example with initParams

const swapBorrowRateMode = new AaveV2.actions.SwapBorrowRateMode({
   chainId: 1,
   initParams: {
     methodParams: {
       asset: "0x...",
       rateMode: "1",
     }
   }
})

Example without initParams

const swapBorrowRateMode = new AaveV2.actions.SwapBorrowRateMode({ chainId: 1 })

swapBorrowRateMode.input.set({
    methodParams: {
       asset: "0x...",
       amount: "100000000",
       rateMode: "1",
       onBehalfOf: "0x..."
    }
})

Learn more

Learn more about Aave V2 swap borrow rate mode function here

Last updated