All work

Palmswap · Perpetuals DEX on BNB Chain

A perpetuals DEX with $210M traded

Palmswap was a perpetuals exchange on BNB Chain. We led its engineering and project management, across the stack around its contracts.

  • $210M+in trading volume
  • ~2,000traders
  • 50xmaximum leverage

The client

Palmswap was a decentralised exchange for perpetual futures on BNB Chain. In its second version a single USDT liquidity pool took the other side of every trade, with leverage up to 50x and prices from its own Chainlink oracle network. Keepers updated the prices and executed the orders.

It reached more than $210M in trading volume and nearly 2,000 traders.

What we did

We led the engineering across the parts around the contracts:

  • Interfaces. The trading interface, with browser tests that run every hour: a test wallet deposits, opens long and short trades and closes them.
  • Automation. A price keeper that pushes prices on-chain and executes queued positions, a position keeper, and liquidation, limit-order, funding-rate and open-interest bots.
  • Data. The subgraphs, and a notification service that emails traders about deposits, filled orders and liquidations, and alerts the team when prices diverge or the insurance fund runs low.
  • Infrastructure. A Chainlink node on AWS for the exchange’s own oracle network, set up so a new node can start before the old one stops.

Where it stands

Palmswap merged with Foxify, and its perpetuals platform moved to Arbitrum under the Foxify name.