project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4
project screenshot 5

Alpha Blue

Alpha Blue enables secure, peer-to-peer asset swaps across multiple blockchains. Our technology eliminates the need for liquidity pools on both sides, reducing gas fees and providing a safer, more efficient, and trustless experience for users.

Alpha Blue

Created At

ETHGlobal Brussels

Winner of

Dynamic - Best Cross Chain Experience

1inch - Enhance your app with 1inch Developer Portal APIs Cool Project

Project Description

AlphaBlue strengthens the DeFi market by allowing simple peer-to-peer cross-chain asset trading. Users can place orders on one blockchain and specify the assets and chain they're willing to trade with, creating opportunities for cross-chain arbitrage without relying on centralized liquidity or incurring high gas fees.

At its core, AlphaBlue leverages Chainlink's Cross-Chain Interoperability Protocol (CCIP) for secure cross-chain communication. The trade starts with an initial order. The orderer must facilitate a 1% stake of his order to help mitigate stagnant orders since they remain open until filled or canceled. Once an order is filled completely, the orderer has 24 hours to confirm and execute the transfer. The platform supports both ERC20 tokens and NFTs, allowing users to trade a wide range of digital assets.

AlphaBlue, being modeled more like an order book, doesn't require liquidity pools on both sides for swaps unlike AMMs or atomic swaps. By adopting a model similar to a traditional order book and extending it across multiple chains, AlphaBlue bypasses slippage, eliminates the need for liquidity providers, and mitigates toxic order flow while essentially allowing users to move funds across chains seamlessly.

The platform addresses a significant gap in the DeFi landscape by providing a user-friendly and secure solution for regular users to bridge their assets in a truly decentralized way. It creates a vibrant marketplace where users can engage in peer-to-peer asset swaps, not just for arbitrage but also for trading digital collectibles and NFTs, adding a unique aspect to asset swapping without the need for centralized exchanges.

AlphaBlue offers practical features like partial order fills, which aren't typically available with cross-chain atomic swaps. This makes it a versatile tool for various trading strategies, whether users are seeking arbitrage opportunities or simply looking to move funds to another chain without incurring high fees. The platform's architecture, built with a Next.js frontend and an AWS Serverless backend, ensures a smooth user experience and efficient data management across supported networks, including various testnets with the potential to expand to all Chainlink CCIP-compatible networks.

In essence, AlphaBlue represents a significant step forward in cross-chain asset trading, offering a unique blend of security, efficiency, and user-centric features that cater to both casual users and sophisticated traders in the ever-evolving world of decentralized finance.

How it's Made

Alpha Blue was built using a blend of advanced technologies to create a secure, efficient, and user-friendly cross-chain asset swapping platform.

We started with Dynamic for multi-chain wallet authentication, allowing users to sign in across different blockchains seamlessly. This setup provides a smooth login experience and helps us understand user behavior to enhance security.

To simplify user interactions, we integrated ENS. By using human-readable names instead of complex wallet addresses, ENS makes our platform easier to use and sets the stage for future features like reputation systems and ENS-gated DAOs.

Our cross-chain communication relies heavily on Chainlink CCIP. Chainlink oracles handle transaction data and execute cross-chain operations, ensuring that swaps are processed securely and reliably. Each order on Alpha Blue goes through a series of CCIP operations to maintain transaction integrity.

We used Blockscout for transaction data verification. By integrating Blockscout’s API, we can fetch and verify transaction details across various blockchains, ensuring transparency and trust in our platform.

We initially deployed our smart contracts on one blockchain to manage the escrow process and facilitate swaps securely. After getting the first chain working, we expanded to additional blockchains. Our contracts handle complex transaction logic, including asset transfers and escrow management, with advanced security measures to ensure transaction integrity.

A key feature of Alpha Blue is the support for partial order fills and NFT swaps. Implementing partial fills required custom smart contracts capable of handling fractional transactions. For NFT swaps, we integrated ERC-721 and ERC-1155 token standards to facilitate the exchange of non-fungible assets. We started with a single token and gradually added more options as we refined our process.

On the frontend, we used Next.js, scaffold-eth, wagmi, and viem. This stack helped us build an intuitive user interface with real-time notifications and visual transaction progress feedback. Using React and Web3.js, we created a responsive and interactive user experience.

To automate smart contract deployment, we developed custom scripts with Truffle and Hardhat, reducing manual errors and saving time. We also implemented a proprietary algorithm to optimize gas fees, making transactions more cost-effective for users.

By integrating these technologies, Alpha Blue stands out as a versatile and efficient platform for cross-chain asset swaps, offering unique features and a seamless user experience.

Anatomy of a AlphaBlue cross chain trade, facilitated by CCIP.

BOB creates a trade offer between Base and Arbitrum, this offer taken a 1% deposit fee to prevent pollution: https://sepolia.basescan.org/tx/0xf57f7aa789997db64b61803c5f37da12d50f2fa39e8ca04c6eb6c3a11418b9ae

ADA sees BOB's offer, and calls createFill https://sepolia.arbiscan.io/tx/0x5fcc8668ecd661f95acfe20940300a9786cb3901efc601248e4af25dd0ece74d

a CCIP message indicating ADAs interest in bob's offer is sent from Base to Arbitrum. https://ccip.chain.link/msg/0x55adcc593791c049dba906694688c7014c878853e60b3855b4d5127e365a296c

when it reaches arbitrum, this transaction is called: https://sepolia.arbiscan.io/tx/0x5fcc8668ecd661f95acfe20940300a9786cb3901efc601248e4af25dd0ece74d

which in turn sends a CCIP message from Arbitrum to Base, taking approximately 30 minutes https://ccip.chain.link/msg/0x7e39679970df6bb093a3f96096792a775231859099046aef1361e1c924e65363

tokens are traded in the final step on bob's taregt chain: https://sepolia.basescan.org/tx/0x14af3ef68da320720a84fb3193830418901fdb2e78f343f8ec06c32a328ef7ed

background image mobile

Join the mailing list

Get the latest news and updates