Arbit

Arbit is a simple and intuitive arbitrage platform designed for decentralized trading on the Ergo and Cardano blockchains. It aims to simplify the arbitrage process, enabling users to identify and execute profitable swaps with minimal setup.

Work in Progress

This project is a work in progress and is not yet ready for production use. The platform is being actively developed by the ConnecMent team.

Overview

Arbit streamlines the process of arbitrage trading by providing a clean and simple interface. The platform identifies opportunities where a user can buy and sell tokens across different decentralized exchanges to make a profit.

Supported Tokens

  • ERG (Ergo)
  • ADA (Cardano)
  • RSN (Rosen)

Supported Exchanges

  • Ergo Dex
  • Splash

What is an Arbit?

An Arbit is a series of swaps that generate profit. For example:

  1. Sell 100 X tokens on Exchange A for $100.
  2. Buy 105 Y tokens on Exchange B for the same $100.
  3. Profit from the additional 5 Y tokens.

Simplicity and Usability

Designed for users with basic blockchain knowledge. Clear interface with no distractions or unnecessary complexity.

Fixed Arbitrage Strategies

Supports predefined arbitrage paths like ERG ↔ ADA and RSN ↔ ADA with fixed USD values ($50 and $100).

Profit Calculation

Profitability of swaps displayed prominently with calculations based on fixed USD values to avoid complexity.

Multi-Chain Support

Supports both Ergo and Cardano blockchains with Rosen Bridge integration for cross-chain arbitrage.

Predefined Strategies

Core arbitrage logic implemented in src/arbitrategy.ts with predefined strategies for supported tokens and providers.

Provider Integrations

Integrates with Ergo Dex SDK and Splash API for order book data and liquidity calculations.

How It Works

Arbitrage Strategy Execution

  • Predefined paths calculate profitability based on current market conditions
  • Fixed token values ($50 and $100) are used for calculations
  • Both direct and reverse swap paths are considered

Supported Providers

  • Ergo Dex: Facilitates ERG and ADA swaps
  • Splash: Enables swapping of RSN and ADA tokens
  • Rosen Bridge: Cross-chain asset bridging

Arbitrage Strategies

ERG ↔ ADA Arbitrage

Leverages Ergo Dex and Splash to identify profitable swaps between ERG and ADA. Calculations consider both direct and reverse swap paths for maximum opportunities.

RSN ↔ ADA Arbitrage

Utilizes Ergo Dex and Splash for swaps between RSN and ADA tokens. Similar profit calculation methods as the ERG ↔ ADA strategy.

Technical Details

Core Arbitrage Logic

The core logic for arbitrage is implemented in src/arbitrategy.ts. It defines a set of predefined strategies for swapping between supported tokens and providers.

Provider Integrations

  • Ergo Dex (src/providers/ergodex.ts): Interacts with Ergo Dex SDK
  • Splash (src/providers/splash.ts): Uses Splash API for order book data

Deployment

Local Setup

  1. Clone the Repository: git clone https://github.com/ConnecMent/arbit.git
  2. Set Up Environment Variables: Create a .env file with SPLASH_API_URL and ERGO_EXPLORER_API_URL
  3. Install dependencies: pnpm install
  4. Run development server: pnpm run dev

Usage Guide

  1. Prepare Tokens: Ensure you have supported tokens (ERG, ADA, RSN) on Ergo and Cardano chains.
  2. Use Rosen Bridge: Bridge assets if necessary for cross-chain arbitrage.
  3. Visit the App: Open the application and review the displayed arbitrage opportunities.
  4. Execute a Swap: If a profitable Arbit is available, execute the swap by following the on-screen instructions.

Team & Contributing

The project is maintained by ConnecMent. Contributions are welcome via pull requests.

Mentors

  • @mkermani144
  • @fatemeh-ra

Mentee

  • @SeyedMojtaba1

Special thanks to @zargarzadehm for Ergo Dex SDK insights.