ExitMarket

Compound V2 Action Plugin - ExitMarket

Description

Exit a market - it is not an error to exit a market which is not currently entered. Exited markets will not count towards account liquidity calculations.

Method

exitMarket(address)

Input Parameters

No input parameters necessary

Method Parameters

NamePlugin TypeDescription

cToken

FctAddress

The addresses of the cToken market to exit.

Returned Values

No returned values

Example

Example with initParams

const exitMarket = new CompoundV2.actions.ExitMarket({
   chainId: 1,
   initParams: {
     methodParams: {
       cToken: "0x..."
     }
   }
})

Example without initParams

const exitMarket = new CompoundV2.actions.ExitMarket({ chainId: 1 })

exitMarket.input.set({
     methodParams: {
       cToken: "0x..."
     }
})

Learn more

Learn more about Compound V2 exit market method here

Last updated