Lending SDK
The functionality that the SDK will offer to integrate the lending widget are such as:
Authentication
Creating a Fixed Income Fund
Get all Fixed Income Funds created by specific user
Get details for specific Fixed Income Fund that the user has created
If Fixed Income Fund is ERC20 token, Deposit ERC20 token into that Fixed Income Fund
If Fixed Income Fund is ETH, Deposit ETH into that Fixed Income Fund
Withdraw money that you have deposited in specific Fixed Income Fund
Terminate a specific Fixed Income Fund
Initialize Lending SDK
The basic initialization for integrating the lending Widget will look like this:
When passing the environment env
note that if you use prod
the SDK will take the production configuration, and if you use beta
the SDK will work on Ropsten testnet network.
Last updated