Skip to main content

πŸ“˜ Swap

πŸ“– Swap​

  • πŸ“˜ Swap - Complete functional documentation πŸ›« 2024-03-02 πŸ“… 2024-03-19

Try to create the diagram using this tool

Initial support for BNB/USDT. The goal is to get benefits in πŸ’° USDT. Whenever the trader sells πŸ’° BNB, from the πŸ’° USDT profit:

  • Firelabs will obtain a 10%,
  • the trader will obtain a 20% (who can withdraw or keep working with it)
  • the remaining 70% will go proportionally distributed to users (who can withdraw their earnings at any time too)

For the MVP the pool will be only for BNB/USDT.

What should be visible in the UI:

  • The amount of πŸ’° BNB invested by the trader
  • The total amount of πŸ’° BNB in the pool (captured from the Smart Contract)
  • Every single operation executed by the trader in a table

Exchanges we could support:

  • Uniswap in BSC - it uses Uniswap V3 so we'll need to make a research on how this works
  • PancakeSwap in BSC
  • Nimbus Platform
  • BakerySwap
  • BurgerSwap
  • AnySwap
  • ZeroSwap
  • DoDoSwap
  • DeFiLlama
  • . . . let's focus on connect to just one for the MVP

Token Details and Assets​

Token information (including decimals, symbol, name, etc.) is pulled from token contracts directly. Logo images are pulled from TrustWallet. If you'd like your token logo updated make a pull request into the TrustWallet assets repoΒ https://github.com/trustwallet/assets.

Actors​

πŸ‘¨β€πŸ³ Traders πŸ™‹β€β™‚οΈ Users (who follows the operations of a trader) 🚰 Pools (assets' pool)

UI prototype​

2024-02-21 04.00.35 - Trading in Firelabs.excalidraw

Should I make the users to accept something like this so they are aware that nobody from Firelabs can move their funds? It could add some friction but it would be really helpful probably so in the way we can avoid users to be scammed by some "smarty" guy. Here we can see a disclaimer of https://quickswap.exchange/#/ even after the user can see anything about the website and here are the legal terms:

Use cases​

πŸ‘¨β€πŸ³ Trader registration​

Given I am an user

When I enable my account as a trader account

Then I will be able to do swaps

πŸ”‘ [signing and verifying the sign up](https://dev.to/chandrapenugonda/learn-how-to-generate-and-verify-signatures-using-ethers-76j) will be needed for this