MintETH

Compound V2 Action Plugin - MintETH

Description

The mint function transfers an asset into the protocol, which begins accumulating interest based on the current Supply Rate for the asset. The user receives a quantity of cTokens equal to the underlying tokens supplied, divided by the current Exchange Rate.

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

Method

mint()

Input Parameters

NamePlugin TypeSolidity TypeDescription

value

FctValue

uint256

Amount to mint

Method Parameters

No method parameters for this plugin function

Returned Values

No returned values

Example

Example with initParams

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

Example without initParams

const mintETH = new CompoundV2.actions.MintETH({ chainId: 1 })

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

Learn more

Learn more about Compound V2 mint/deposit ETH method here

Last updated