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.
- Decoding of Solend data structures
LendingMarket
Obligation
includingObligationCollateral
andObligationLiquidity
Reserve
includingReserveCollateral
andReserveLiquidity
- Calculation of APR, APYs, total supplied/borrowed value, account positions, etc
SolendProgram
instructions implementedInitializeObligation
RefreshReserve
RefreshObligation
DepositReserveLiquidity
RedeemReserveCollateral
BorrowObligationLiquidity
RepayObligationLiquidity
DepositObligationCollateral
WithdrawObligationCollateral
DepositReserveLiquidityAndObligationCollateral
WithdrawObligationCollateralAndRedeemReserveCollateral
- net 6.0
- Solnet.Programs v6.0.7
- Solnet.Wallet v6.0.7
- Solnet.Rpc v6.0.7
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
We encourage everyone to contribute, submit issues, PRs, discuss. Every kind of help is welcome.
- Hugo - Maintainer - murlokito
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE file for details