SDK contract (Library) consisting of utilities for the Sovryn Zero Protocol
npm install @sovryn-zero/contracts @sovryn-zero/sdk-contracts
To install early access releases (pre-releases) - specify a version:
npm install @sovryn-zero/sdk-contracts@1.0.0-early.access.0
The actual early access release version is here.
Sovryn Zero Solidity Contracts SDK is a set of solidity libraries that users can import and use in their contracts.
All contracts are libraries, each containing set of functionalities related to utilities of the Sovryn Zero ecosystem.
The library cover several major utilities such as:
- BorrowerLib.sol - Borrower operations (Opening, Adjusting line of credit)
- LiquidationLib.sol - Liquidation & Redemption operations.
- StabilityPoolLib.sol - Pool Stability operations.
- TroveStatiscticsLib.sol - View function related to the troves (get nominal collateral ratio, borrowing fee calculation, get borrower's debt of the troves).
TestIntegration.sol provides a sample integration