Ax3Effect / xdefi-testtask

Swap tokens using Uniswap API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

xdefi-testtask

This is a repository for a swap app that allows to swap any tokens within the Ethereum network through Uniswap.

Architecture

Backend is built using FastAPI along with Graphene for GraphQL integration. Frontend is built using React, Tailwind (for styling) and wagmi (for web3 integration). Data about Uniswap pairs and available pools is fetched from Uniswap Subgraph. Real-time prices are fetched from Coingecko, and token list is provided by Via.

How to install and run

Frontend installation & how to run: npm install npm run dev

Backend installation & how to run: pip install -r requirements.txt uvicorn main:app --reload

Both frontend and backend processes should be run in order for the app to work (either with 'screen' or two terminal screens)

About

Swap tokens using Uniswap API


Languages

Language:Python 63.3%Language:JavaScript 31.9%Language:CSS 4.8%