Skip to content

SesatGuy/mysticSwap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MysticSwap

A Demo Manual crypto exchange

A simple and lightweight crypto exchange where you have to manually process the orders. Supporting every cryptocurrencies since it's manual.

Why this exist?

It's because ___________. This thing suck anyway.

Features

This exchange is very lightweight

  • Price in USD
  • Daily 'Volumes' (Buy only)
  • Basic security and foolproof
  • Work on every cryptocurrencies
  • Stored in Json
  • Can toggle between Buy/Sell and Buy only for each coins

Exchange

  • Reddcoin (RDD)
  • Duinocoin (DUCO)
  • Likecoin (LKE)
  • Magi (XMG)

(It's manual so just add anything)

How the price work?

Yes, manual price update

// Prices in USD
const duinoPriceInUSD = 0.000011; // Price of 1 DUCO in USD
const reddcoinPriceInUSD = 0.00008029; // Price of 1 RDD in USD

 const exchangeRates = {
    DUCO: {
        LKE: 3,  // 1 DUC = 3 LIKE
        RDD: duinoPriceInUSD / reddcoinPriceInUSD * 0.8,  // 1 DUC = 0.109 RDD
    },
    LKE: {
        DUC0: 0.8 / 3,  // 1 LIKE = 1/3 DUC
        RDD: (0.6 / 3) * (duinoPriceInUSD / reddcoinPriceInUSD),  // 1 LIKE = (1/3) * 0.109 RDD
    },
    RDD: {
        DUC0: reddcoinPriceInUSD / duinoPriceInUSD,  // 1 RDD = 7.3 DUC
        LKE: (reddcoinPriceInUSD / duinoPriceInUSD) * 3,  // 1 RDD = 7.3 * 3 LIKE
    },
};

Notice

This thing is very basic with basic security. Admin data were store in json and encrypt with bcrypt, which is used to login to the page. This suck

Want to use it?

I don't mind since this is very basic thing that people should able to recreate this.