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.






