Deposit ERC20
SmartCredit.io Lending SDK - depositERC20() deposits ERC20 tokens into a Fixed Income Fund to be matched with borrower loan requests and earn fixed-term lending income.
Last updated:
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 assetwalletAddress- is the address of the user.
const response = await this.LendingService.depositDai(
contractAddress, amount, fundAddress, walletAddress
);