Skip to content

Step-by-step demo for opening a Compound V3 lending position using @protocolink/lending

Notifications You must be signed in to change notification settings

dinngo/compound-v3-lending-sdk-demo

Repository files navigation

Compound-v3 Lending SDK Open Position Demo

This is a demo application that showcases the usage of the @protocolink/lending package. It demonstrates how to open a position by providing collateral on the Compound V3 lending protocol.

Usage

  • In the project directory, run the following command to start the demo: yarn start
  • The demo will guide you through the process of opening a position on the Compound V3 lending protocol.
  • Follow the prompts in the terminal and press Enter when instructed.
  • The demo will output the necessary data for sending the transaction, including the estimated funds, balances, approvals, permit data, and fees.
  • You can use the generated transaction request to send the transaction using your preferred method (e.g., a web3 provider or a wallet interface).

Dependencies

  • @protocolink/api: The Protocolink API SDK for interacting.
  • @protocolink/common: Common utilities for Protocolink packages.
  • @protocolink/lending: The Protocolink Lending SDK, which provides adapters for various lending protocols.
  • readline: A Node.js module for reading input from the terminal.

About

Step-by-step demo for opening a Compound V3 lending position using @protocolink/lending

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published