Note: This project is not maintained. Most of the frontend and Subgraph code is broken. However, smart contracts are still alive on the blockhain.
Spectrrfi is the first project that I ever made. Back then, I only knew some C++, and I was really into bitcoin, ethereum and other cryptos. Actually, this project was a submission to the Fantom Q1 2023 Hackaton (we didn’t win 😔).
Now, this project is an interest free lending and borrowing like decentralised app. I don’t want to explain the intricate details about how it works here, but you can check the README of the repo.
This project is divided into three main parts:
- solidity smart contracts (business logic):
- logic for creating and accepting sell and buy offers.
- logic for adding tradeable tokens by the contract.
- logic for dividend tokens, that users can redeem for tokens 1:1 after they make profit from offers.
- Chainlink oracles price fetching
- subgraph
- uses The Graph subgraphs to query blockchain data on the frontend.
- frontend
- website written in vanilla javascript that interacts with smart contracts on the blockchain.
Here is a screenshot of the website:
When I actually think about it, writing this project was really fun. I learned a lot about how the ethereum ecosystem works, the fundamentals of web development, and the basics of linux.
While i’m at it, s/o to a friend of mine (that I shall not name) for covering the costs of making this project (mainly the eth domains, and hosting).
Thank you for reading.