RepayBorrowETH

Compound V2 Action Plugin - RepayBorrowETH

Description

The repay function transfers an asset into the protocol, reducing the user’s borrow balance.

This plugin only supports cETH cToken. By default to has been set as cETH address

Method

repayBorrow()

Input Parameters

NamePlugin TypeSolidity TypeDescription

value

FctValue

uint256

Amount to repay

Method Parameters

No method parameters

Returned Values

No returned values

Example

Example with initParams

const repayBorrowETH = new CompoundV2.actions.RepayBorrowETH({
   chainId: 1,
   initParams: {
     value: "100000",
     methodParams: {}
   }
})

Example without initParams

const repayBorrowETH = new CompoundV2.actions.RepayBorrowETH({ chainId: 1 })

repayBorrowETH.input.set({
     value: "100000",
     methodParams: {}
})

Learn more

Learn more about Compound V2 repay borrow ETH method here

Last updated