Skip to content

tHeStRyNg/swapStation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEFI - DEX - swapStation -

DeFi - SushiSwap/UniSwap Similar Crypto Decentralized Exchange Cross 18 Diff Networks

Dvelopment URL

devUrl - https://swapstation.algorithmic.one/

Fees Structure

  • 0.3% is taken on every swap made
  • 0.25% of this fee is immediately redistributed to users in the form of LP rewards
  • 0.05% of this fee is sent to the SwapStation treasury

Install Procedure

Use Node 16 as required

error detective-postcss@5.1.1: The engine "node" is incompatible with this module. Expected version "12.x || 14.x || 16.x". Got "20.12.0"

Install Node 16

nvm use 16 # nvm install 16 and then nvm use 16

If you don thave nvm use the following --> https://heynode.com/tutorial/install-nodejs-locally-nvm

Yarn/NPM Install

yarn install or npm install

Yarn/NPM Build

yarn build or npm run build

Yarn/NPM Start

yarn start or npm run start

NPM Clear Cache (optional if needed for dev env)

npm cache clean --force

Start in Background

nohup npm start >> app.log 2>&1 &

Troubleshooting - Install / Build / Start Process

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

Set value of max-space-size (in MB and only if your server sucks ass an doesnt have enough mem)

export NODE_OPTIONS="--max-old-space-size=8192"

See the current value of max-old-space-size (in MB)

node -e 'console.log(v8.getHeapStatistics().heap_size_limit/(1024*1024))'

Browserslist: caniuse-lite is outdated

npx update-browserslist-db@latest

  • If you use it and you like it, give us a star. Thanks.