Giter Club home page Giter Club logo

solnet.solend's Introduction

Build Status (master) Coverage Status
Code License Follow on Twitter Discord

What is Solnet.Solend?

Solnet is Solana's .NET integration library, a number of packages that implement features to interact with Solana from .Net applications.

Solnet.Solend is a package within the same Solnet. namespace that implements a Client for Solend, this project is in a separate repository so it is contained, as the goal for Solnet was to be a core SDK.

Features

  • Decoding of Solend data structures
    • LendingMarket
    • Obligation including ObligationCollateral and ObligationLiquidity
    • Reserve including ReserveCollateral and ReserveLiquidity
  • Calculation of APR, APYs, total supplied/borrowed value, account positions, etc
  • SolendProgram instructions implemented
    • InitializeObligation
    • RefreshReserve
    • RefreshObligation
    • DepositReserveLiquidity
    • RedeemReserveCollateral
    • BorrowObligationLiquidity
    • RepayObligationLiquidity
    • DepositObligationCollateral
    • WithdrawObligationCollateral
    • DepositReserveLiquidityAndObligationCollateral
    • WithdrawObligationCollateralAndRedeemReserveCollateral

Requirements

  • net 6.0

Dependencies

  • Solnet.Programs v6.0.7
  • Solnet.Wallet v6.0.7
  • Solnet.Rpc v6.0.7

Examples

The Solnet.Solend.Examples project features some examples on how to use the ISolendClient, these examples include:

  • Getting all lending markets
  • Getting all reserves
  • Getting all obligations for a given user and lending market
  • Calculating Solend's TVL

As well as examples on how to use the SolendProgram

  • Minting cTokens
  • Redeeming cTokens
  • Depositing and withdrawing liquidity
  • Borrowing liquidity and repaying the borrowed liquidity

Contribution

We encourage everyone to contribute, submit issues, PRs, discuss. Every kind of help is welcome.

Contributors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details

solnet.solend's People

Contributors

hoakbuilds avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.