💻Internals

Internals of Stardust

Welcome to the Internals page of Stardust, where we delve into the technical workings of our project. Here's a comprehensive overview of how Stardust operates behind the scenes:

Frontend Development

Our frontend is built using React and Vite, ensuring a fast and responsive user interface. Vite, known for its lightning-fast build times, enables us to deliver a smooth user experience. The user interface allows DAOs to easily navigate through the platform, perform signups, manage wallets, and access various dashboards.

User Signup with Dynamic

We use Dynamic for the signup process. This integration ensures a seamless and secure registration experience for DAOs joining our platform. Once the signup is complete, users can proceed to select their wallets.

Wallet Management with Argent

We have integrated Argent's multi-signature wallet setup to provide secure wallet management for DAOs. The Cairo contracts for setting up these multi-sig wallets are located in the server folder. This setup ensures that only authorized members of a DAO can access and manage the funds.

Smart Contracts

Our backend relies heavily on a series of smart contracts written in Cairo. These contracts are essential for managing various aspects of the Stardust platform. Here’s a brief overview of the key contracts:

  • Collateral Manager: Manages the collateral submitted by DAOs to secure liquidity.

  • Vault : Handles the storage and management of assets within the platform.

  • Stable Coin: The contract for our platform’s stablecoin, used for transactions and liquidity.

  • Staking Rewards Token: Manages the issuance and distribution of rewards tokens for staking activities.

  • DAO Factory: Facilitates the creation and management of new DAOs on the platform.

  • Pool Manager: Oversees the liquidity pools and ensures efficient liquidity management.

  • Auction File: Handles the auction mechanisms within the platform, including collateral liquidation processes.

  • Governance File : Handles the governance mechanism of our platform

These contracts are stored in the cairo and contracts folders, each meticulously designed to ensure robust and secure operations. They interact seamlessly with our frontend, enabling users to perform various actions like collateral management, liquidity requests, and governance activities.

In the following sub pages there is description about the major contracts in detail.

Interaction with Frontend

The smart contracts interact with the frontend to display real-time data and enable user actions. For instance, the Liquidity Provider Dashboard and the Credit Score Dashboard fetch data from these contracts to show the current state of liquidity, collateral, and DAO credibility scores. The Governance Dashboard uses the Voyage API to display all transactions, ensuring transparency and accountability.

By leveraging these technologies and contracts, Stardust ensures a secure, efficient, and user-friendly experience for DAOs. This integrated approach allows us to provide a comprehensive liquidity lending and DAO management solution.

Mathematical explanation

The maths behind the dynamic collateralization is shown in github repo with our white paper

Last updated