Skip to content

The first and leading lending protocol on Fuel Network.

License

Notifications You must be signed in to change notification settings

nickgore/swaylend-monorepo

 
 

Repository files navigation

Introduction

Swaylend is a decentralized lending platform operating on the Fuel Network, which utilizes an Ethereum consensus layer. Our platform offers a secure and trustworthy environment for crypto users to earn passive income by supplying liquidity to the market.

With Swaylend, users can supply up to six different crypto assets as collateral and borrow USDC, the base asset. Suppliers earn passive income by providing liquidity, while borrowers can borrow in either an overcollateralized (perpetually) or undercollateralized manner.

The Swaylend protocol is built on a re-engineered solution from the Ethereum blockchain, rewritten in the Sway programming language. Our platform reimagines the Compound architecture, offering all its features and benefits with the added security and stability of the Fuel Network. Our dedicated team continuously monitors and improves the platform, always available to answer questions or provide support.

Swaylend is live at https://swaylend.com.

Project Structure

At the first level, the monorepo is divided into contracts , apps , scripts , and libs .

  • abis: Contains ABI (Application Binary Interface) files, specifically for the market contract.
  • apps: Houses different applications related to the project:
    • frontend: Frontend interface for Swaylend.
    • indexer: Envio indexer for the Market contract.
    • indexer-sentio: Sentio indexer for the Market contract.
  • contracts: Contains smart contracts for various functionalities:
    • market: The main market contract.
    • pyth-mock: Mock contract for Pyth oracle, used in tests.
    • src-20: SRC-20 contract, SLEND governance token.
    • token: Token contract, used in tests.
  • libs: Includes shared libraries used across the project:
    • market_sdk: Custom SDK for interacting with the market contract, used in tests.
    • pyth_mock_sdk: Custom SDK for the Pyth mock contract, used in tests.
    • token_sdk: Custom SDK for the token contract, used in tests.
  • scripts: Contains scripts for various network operations:
    • src: Containing actual .rs scripts that can be run using cargo run --bin <script>.
    • configs: Different market configurations for various networks.
    • devnet: Scripts related to the local development network.
    • testnet: Scripts related to the public test network.

ℹ️ Note: The instructions for each component can be found in their corresponding README.md files.

Deployments

There is a dedicated DEPLOYMENTS.md for contracts. For the dapp's releases, see Releases and CHANGELOG.md.

Socials / Contact

Licensing

The primary license for all Swaylend components is the MIT License.

About

The first and leading lending protocol on Fuel Network.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 65.1%
  • Rust 24.4%
  • Sway 9.8%
  • CSS 0.2%
  • Shell 0.2%
  • HTML 0.2%
  • JavaScript 0.1%