Code Monkey home page Code Monkey logo

flooz-trade-contracts's Introduction

Audit Notes

The existing contracts FloozRouter & FeeReceiver will continue to be used on Binance Smart Chain & faciliate the trades & buybacks.

In the next growth phase we'll be moving with our DeFi Wallet flooz.trade to additional networks:

  1. Ethereum Mainnet
  2. Polygon
  3. Avalanche
  4. Arbitrum & Optimism

For the next few weeks the token won't be migrated and continue to only life on BSC which makes it impossible to proof on-chain the token balance threshold for feeless trading. As a pragmatic approach for a short-time period the router contracts will be adjusted and expect a flag (true/false) which control if the given swaps pays fees or not. Our SDK will check the balance for the given wallet address on Binance Smart Chain and provides the matching flag. We're aware that this approach can easily be tricked and will be addressed with a more robust approach soon.

Flooz.trade Contracts

The Flooz Router powers trades on flooz.trade with an integrated referral system and combines different swap types into one compact router.

Getting started

To run the tests, follow these steps. You must have at least node v10 and yarn installed.

First clone the repository:y

git clone [email protected]:flooz-link/flooz-trade-contracts.git

Move into the flooz-trade-contracts working directory

cd flooz-trade-contracts/

Install dependencies

yarn

Building the contracts

yarn compile

Run tests

yarn test

Deploying Contracts

Create a new .env file based from the example.env template in the main directory with the following variables:

INFURA_KEY=""

PRIVATE_KEY_MAINNET=""

PRIVATE_KEY_TESTNET=""

PRIVATE_KEY_LOCALHOST=""

ETHERSCAN_API_KEY=""

  

TESTNET_PANCAKEROUTER=""

TESTNET_PANCAKEFACTORY=""

  

MAINNET_PANCAKEROUTER=""

MAINNET_PANCAKEFACTORY=""

To deploy on Binance Smart Chain Testnet run:

yarn deploy:binance-testnet

To deploy on Binance Smart Chain Mainnet run:

yarn deploy:binance-mainnet

flooz-trade-contracts's People

Contributors

nicoelzer avatar

Stargazers

FoolishEddy avatar

Watchers

 avatar  avatar cgero.eth avatar Marcello Ardizzone avatar redisun avatar

Forkers

ad-market bunsdev

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.