ClaimCOMP

Compound V2 Action Plugin - EnterMarkets

Description

Every Compound user accrues COMP for each block they are supplying to or borrowing from the protocol. Users may call the Comptroller’s claimComp method at any time to transfer COMP accrued to their address.

Method

claimComp(address)

Input Parameters

No input parameters necessary

Method Parameters

NamePlugin TypeDescription

holder

FctAddress

Returned Values

No returned values

Example

Example with initParams

const claimCOMP = new CompoundV2.actions.ClaimCOMP({
   chainId: 1,
   initParams: {
     methodParams: {
       holder: "0x..."
     }
   }
})

Example without initParams

const claimCOMP = new CompoundV2.actions.ClaimCOMP({ chainId: 1 })

claimCOMP.input.set({
     methodParams: {
       holder: "0x..."
     }
})

Learn more

Learn more about Compound V2 claim COMP method here

Last updated