Deposit ERC20

async depositERC20()

Depositing in ERC20 Fixed Income Fund, you should use:

The contractAddress information you will get after getting a successful response from Get FIF List.

  • amount– will be the amount entered by the user in the form times 10 and squared decimal places ( amount = amount * 10 ** decimalPlaces )

  • fundAddress:string – Is the eth address of the asset

  • walletAddress - is the address of the user.

const response = await this.LendingService.depositDai(
 contractAddress, amount, fundAddress, walletAddress

Last updated