Bang

Cross-chain atomic swaps for a fragmented liquidity environment. Buy tokens in atomic swaps and resell them asynchronously, using bridges and intents.

ETHGlobal BangkokShipped November 15, 2024Prize winner#defi#payments#infra
Repo
Bang banner

About

Traditional atomic DEXes operate isolated, without any information but the on-chain liquidity of tokens traded. This is particularly bad in a multi-chain context with fragmented liquidity.

Intents and cross-chain intents are great solutions for this problem. Still, the asynchronicity doesn't fit well for many use cases: liquidations, vaults, interoperability, fee collection, or just hurried-up users.

In Bang, we tackle this problem by providing atomic one-side swaps based on Oracle prices for listed tokens.

The protocol efficiently manages shared cross-chain liquidity in USDC to acquire these tokens in low liquidity chains (secondary chains). Then the tokens are sold asynchronously using bridges, cross-chain intents, or different strategies.

This effectively connects the demand for atomic swaps with asynchronous and cross-chain solutions, efficiently managing liquidity and risk.

On the other hand, the acquired tokens should be sold at a better price than the acquisition cost. There's a risk in the operation, so we apply discounts to the oracle price and swap capacity limits, and the discounts increase with the utilization of the capacity.

Two key aspects drive the design of the solution:

  • Liquidity efficiency

Since our intention is to develop a multi-chain protocol that exists in many small chains, then it's critical to efficiently allocate the available USDC liquidity across them.

The design of the protocol is such that the secondary chains communicate the trades to the main chain, as fast as possible (using a fast bridge) and the main chain refills their USDC capacity also as fast as possible, without waiting for the liquidation of the acquired tokens.

This way we don't need to allocate big amounts of idle liquidity on each small chain.

  • Risk Management

Buying tokens based on oracle prices, that will be sold minutes after transferring them to a chain with more liquidity, is a risky business.

The protocol was designed to allow a granular parametrization of the markets, defining capacity per market and token, discount ranges, and fixed costs per trade.

These parameters operate on time-windows, with explicit renewals for each period.

The different liquidation strategies operate in a trade-off between finding the best price and selling as soon as possible.

In the future, we might off-load the risk, by transferring it to an insurance protocol like NexusMutual or Ensuro.

Presentation here: https://docs.google.com/presentation/d/1EzMW1LkIZHdbroOg6wGrCZZy1VeiuxmxggemsROKDVY/edit?usp=sharing

Prizes

  • Pyth Network · Most Innovative use of Pyth pull oracle (Price Feeds) · 3rd place

From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

Aruswap

Cross-chain swap leveraging CCTP. We allow users to swap any token crosschain without the hustle and danger of bridges.

Blockenthu

Cross-chain DEX aggregator using 1inch APIs for seamless swaps across 10+ blockchains

Fusion Plus Bridge

Trustless cross-chain swaps using 1inch atomic swaps - no bridges, no custody, pure mathematics