Hashflow

From DefiLlama
Jump to navigation Jump to search

Hashflow is a decentralized exchange designed for interoperability, zero slippage, and MEV-protected trades.

What makes Hashflow unique?

  • Most DEXs rely on automated market makers (AMMs) to enable the buying and selling of assets, and although important, they’re far from perfect. AMMs are capital inefficient, routinely prone to risks like sandwich attacks and impermanent loss, and cannot price non-spot assets.
  • By using a request-for-quote (RFQ) model to allow professional market makers to manage liquidity pools, Hashflow solves these issues. In turn, traders and liquidity providers (LPs) gain access to enhanced efficiency, security, and products previously impossible in DeFi.

Bridgeless Cross-Chain Swaps

How Does it Work?

Hashflow uses DeFi-native RFQs to fetch quotes from market makers who are responsible for managing liquidity in the pools. Market makers are required to cryptographically sign quotes that remain unchanged for the duration of the trade. This ensures that the price is guaranteed and cannot be front-run or sandwich attacked. It also protects traders against slippage if there is significant price movement between the time it takes to validate the transaction on the source chain and relay the payload on to the destination chain.

An example Cross-Chain

  1. Trader requests a quote to sell 10 ETH on Ethereum (source chain) and buy 20 AVAX on the Avalanche (destination chain)
  2. Market maker provides a signed quote to the trader
  3. Trader submits the transaction on Ethereum with the signed quote as the payload
  4. The liquidity pool smart contract on the source chain performs security checks, transfers funds from trader's wallet into the pool, sends the payload, and calls the gateway smart contract on the source chain
  5. Once the transaction on the source chain is successful, the gateway smart contract triggers an event
  6. The validators then use the event to validate the transaction and submit the proof along with the payload to the gateway endpoint on the destination chain
  7. The relayers then submit the payload to the destination chain and transfer AVAX to the trader’s wallet on the destination chain

Is Hashflow a bridge

No, Hashflow is not a bridge. Hashflow does not require users to escrow their assets to mint wrapped assets on the destination chain. Instead, Hashflow allows users to swap natively across chains without the need for a bridge.

How long does it take to complete a cross-chain swap

Most chains should take anywhere between 3-6 minutes except for Polygon. Because Polygon reorgs happen far more frequently compared to other chains, we currently need to wait for 500 block confirmations before initiating the transaction on the destination chain. As a result, selling an asset on Polygon will take approximately 15-20 minutes.

Sources: