Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

A simple web interface to interact with the FiatDex protocol

License

Notifications You must be signed in to change notification settings

happypsyduck/fiatdex-gateway

Repository files navigation

FiatDex Gateway v2 (Now retired)

Github Web Interface: https://happypsyduck.github.io/fiatdex-gateway/

This is a simple browser-based interface to interact with the FiatDex protocol. All code is client based via javascript and it does not connect to any centralized server. The marketplace listed below uses a centralized server to store offer data. FiatDex is a trustless fiat to crypto swap process. It uses game theory to incentivise each trader to complete a swap, otherwise face punishment for misbehaving. There are no arbitrators required or verification needed. There are no trade limits but as this is new software, trade responsibly and do not trade more than you are willing to lose.

Contract source: https://etherscan.io/address/0x75a2a05b8a21568f5e052b6bbcfb799624fb2d8e

FiatDex Marketplace

Github Web Interface: https://happypsyduck.github.io/fiatdex-gateway/#marketplace

The FiatDex Marketplace is a simple interface to post buy and sell DAI offers. Users do not need to login and the offer data is stored up to 7 days from posting. This requires a centralized service to store offer data as SQLite database. Currently that server location is at: http://happypsyduck.mywebcommunity.org/interface/

Check the database folder to view the server code to setup your own orderbook interface. A proxy is used to allow cross site requests at: https://fiatdex-proxy.herokuapp.com/

Learn More

Read the whitepaper to learn more about the process and how to trade or you can check out the website.

How to run

This is a browser based application and is mobile ready. You need to follow these steps to start running the application:

  • Download entire git onto your computer
  • Setup a localhost server which has access to the downloaded index.html file
  • Open file in browser via localhost server

Or if you are unable to setup a localhost server, you can access the gateway via here: https://happypsyduck.github.io/fiatdex-gateway/

However, it is still recommended to run the application locally.

Requirements

  • MetaMask (https://metamask.io) installed into browser
  • MakerDAO's DAI (DAI) for collateral (for both buyer and seller of DAI, 150% of trade amount)

Automated Audit Reports

Chainsecurity: https://securify.chainsecurity.com/report/136f91623c216b2d1dcde8f0288c697b694628688095d7d7fd888c0e3e842975

Anchain AI: https://happypsyduck.github.io/fiatdex-gateway/anchain_audit.pdf (using solidity version 0.4.25)

Disclaimer

The FiatDex protocol is based on audited smart contract code and has had automated audits but has not had a comprehensive human auditor. Keep this in mind when trading and do not trade with more funds then you are willing to lose. The code has been tested but please look at the smart contract itself and learn it before sending DAI to it. The code is provided as is without warranty. Use at your own risk.

About

A simple web interface to interact with the FiatDex protocol

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published