[dTWAP]

Time-weighted average price protocol for decentralized exchanges

Extend existing on-chain DEX/AMMs with a decentralized on-chain protocol for executing advanced time-spread algorithmic trades. Reduce large orders’ impact on the market.

[BENEFITS]

The two benefits of TWAP

TWAP (Time-Weighted Average Price) is an algorithmic trading strategy that divides an order into multiple smaller trades that are executed at regular intervals over a specified period of time.

  • Price Impact Reduction

    When a trade is relatively large or involves a low-liquidity pair, price impact will be high and cause significant losses to traders.

    TWAP eliminates price impact by spreading the trade over several minutes. This gives arbitrageurs a time window to close price discrepancies and bring the reserves back to the fair market spot price.

  • Automation of Dollar-Cost Averaging (DCA)

    DCA is an investing strategy that purchases an asset on a recurring long-term schedule (ie. on every Monday).

    The goal behind DCA is to average out abnormal market conditions and lessen the impact of short-term volatility on the overall purchase. A TWAP strategy can fully automate the DCA process.

[INTEGRATIONS]

Recent and Ongoing Integrations to DEX/AMMs

[INTERFACE]

User-friendly and flexible UI

  1. Users can set a limit on the price at which trades will be executed or choose to execute at the best market price.

  2. Users can control the total duration of the order, the number of smaller trades and how frequently they are executed.

  3. Users can see their current orders, what part of every order was already fulfilled and manage order execution, pause or cancel.

[DEVELOPERS]

Easy integration into every DEX frontend based on React

No need to modify your DEX smart contracts. Integration is frontend-only and relies on existing contracts of the dTWAP protocol.

const TWAP = (props: Props) => {

  return (
    <TwapAdapter
      connect={props.connect}
      config={Configs.Pangolin}
      maxFeePerGas={props.maxFeePerGas}
      priorityFeePerGas={props.priorityFeePerGas}
      translations={translations as Translations}
      provider={props.provider}
      account={props.account}
      connectedChainId={props.connectedChainId}
    >
      <GlobalStyles styles={globalStyles} />
      <AdapterContextProvider value={props}>
        <div className="twap-container">
          <TokenPanel isSrcToken={true} />
          <ChangeTokensOrder />
          <TokenPanel isSrcToken={false} />
          <LimitPriceDisplay />
          <TradeSize />
          <MaxDuration />
          <TradeInterval />
          <SubmitButton />
          <OrderSummary />
        </div>
      </AdapterContextProvider>
    </TwapAdapter>
  );
};

export default TWAP;

[HOW IT WORKS]

Decentralized Execution of TWAP Orders

Makers - The first entity in the dTWAP protocol are DEX traders that submit new orders to the dTWAP EVM contract. They set all order parameters such as limit price and expiration. The dTWAP contract enforces these requirements in a trustless manner.

Takers - Incentivized third-party participants that monitor all live orders and submit bids on the best path to execute their next segment. The dTWAP contract selects the best bid and guarantees that the path that provides the best price to makers is the one executed.

Orbs Network has dozens of independent validators running Proof-of-Stake consensus with over $100 million staked. The network has been running in mainnet since 2019. All Orbs Network validators are takers and participate as honest bidders in the protocol, guaranteeing that orders are executed 24/7 with high redundancy and best price.

  • One API.
  • Every on-chain order type.
  • Institutional-grade execution.