Get in touch

VORPAL

AMM decentralized exchange on BNB Smart Chain, built on a PancakeSwap fork in 6 sprints.
Users swap tokens, farm and stake from their Web3 wallets and see their earnings calculated in real time.
#Cryptocurrency
#DeFi & Swaps
#Exchange
#WEB3
Vorpal
Location Kazakhstan
Our Role DEX development
Duration 11.2021 - 08.2022
Type of work Time and Materials

Background

The client, based in Kazakhstan, had a ready design and needed it turned into a working AMM exchange modeled after PancakeSwap. The DEX had to run on BNB Smart Chain, let users swap, farm and stake from their own wallets, and show exactly how much each position earns. The timeline was tight, so the client needed one team to cover smart contracts, frontend and DevOps.

Results:

  • Delivered a working AMM DEX in 6 sprints (11.2021 – 08.2022)
  • Moved the exchange to BNB Smart Chain with BNB for transactions
  • Connected MetaMask and other Web3 wallets
  • Launched token swaps, farming and staking
  • Added earnings tracking and income reports for every position
Number of sprints 6
Technologies
CSS
CSS
HTML
HTML
React JS
React JS
Solidity
Solidity

Tasks and challenges

What we had to do

The hardest part was not the swap itself but the money math. Farming and staking rewards change with every block, pool share and token price, and users expect to see exactly what they earn. On top of that, the DEX had to move to BNB Smart Chain, work with popular Web3 wallets and launch on a short timeline without cutting reliability.

  • Fork PancakeSwap as a tested AMM core
  • Move the DEX to BNB Smart Chain with BNB for transactions
  • Connect MetaMask and other Web3 wallets
  • Build swaps, farming and staking
  • Calculate and show earnings for every position
Let’s talk
Building an AMM DEX with farming and staking?
Get an estimate for a PancakeSwap-based or custom DEX on BSC or another EVM chain.
Screens
Binance Smart Chain DEX Development: Vorpal by Peiko
Binance Smart Chain DEX Development: Vorpal by Peiko
Binance Smart Chain DEX Development: Vorpal by Peiko
Binance Smart Chain DEX Development: Vorpal by Peiko
Binance Smart Chain DEX Development: Vorpal by Peiko
Binance Smart Chain DEX Development: Vorpal by Peiko
Binance Smart Chain DEX Development: Vorpal by Peiko
Binance Smart Chain DEX Development: Vorpal by Peiko
Binance Smart Chain DEX Development: Vorpal by Peiko
Binance Smart Chain DEX Development: Vorpal by Peiko
Binance Smart Chain DEX Development: Vorpal by Peiko
Binance Smart Chain DEX Development: Vorpal by Peiko
Binance Smart Chain DEX Development: Vorpal by Peiko
Binance Smart Chain DEX Development: Vorpal by Peiko
Binance Smart Chain DEX Development: Vorpal by Peiko
Binance Smart Chain DEX Development: Vorpal by Peiko
Binance Smart Chain DEX Development: Vorpal by Peiko
Binance Smart Chain DEX Development: Vorpal by Peiko
Binance Smart Chain DEX Development: Vorpal by Peiko
Binance Smart Chain DEX Development: Vorpal by Peiko
Binance Smart Chain DEX Development: Vorpal by Peiko
Binance Smart Chain DEX Development: Vorpal by Peiko
Binance Smart Chain DEX Development: Vorpal by Peiko
Binance Smart Chain DEX Development: Vorpal by Peiko
Binance Smart Chain DEX Development: Vorpal by Peiko
Binance Smart Chain DEX Development: Vorpal by Peiko
Binance Smart Chain DEX Development: Vorpal by Peiko
Binance Smart Chain DEX Development: Vorpal by Peiko

Solution

What was done

Peiko forked PancakeSwap as the AMM core and moved it to BNB Smart Chain, with BNB used for transactions and fees. On top of the core, the team connected Web3 wallets, wired the frontend to the smart contracts and built token swaps, farming and staking. The main custom work went into earnings: the team optimized the reward contracts and built calculations that show users what each trade, farm and staking position earns, plus income reports across all their investments. DevOps set up the deployment so the DEX could launch on schedule.

  • AMM DEX based on a PancakeSwap fork
  • BNB Smart Chain and BNB for transactions and fees
  • MetaMask and other Web3 wallets
  • Token swaps, farming and staking
  • Earnings calculation and income reports for every position

our point of view

“With a tight deadline, writing new AMM contracts made no sense: PancakeSwap’s core was already tested by real trading volume on BNB Smart Chain. Forking it let us spend most of the Solidity hours on what users judge a DEX by once they start farming and staking: correct reward math and a clear view of their earnings. That is where users lose trust fastest if numbers don’t match their wallet.”
Dima
Dima Lebed
Chief Technical Officer at Peiko

Take a closer look

Hire us
Created enhanced UX/UI design
The team turned the client’s design into a working React interface and refined navigation and layouts along the way. Swap, farm and stake screens follow the same pattern, so users who learn one action can easily handle the others.
Vorpal
Conducted transition to Binance Smart Chain (BSC) and Binance Coin (BNB)
The DEX was adapted to BNB Smart Chain, with BNB used for gas and transactions. BSC gives fast confirmations and low fees, which matters on an AMM where users claim rewards and move liquidity often.
Vorpal
Integrated Web3 wallets
Users connect MetaMask or another popular Web3 wallet and trade directly from it. Vorpal never holds user funds: every swap, farm and stake is signed in the user’s own wallet.
Vorpal
Implemented token exchange, farming, and staking
Vorpal covers the three core AMM actions. Users swap tokens through liquidity pools, add liquidity and earn farming rewards for it, or stake tokens to receive additional rewards.
vorpal
Ensured correct calculation of cryptocurrency earnings
Rewards on an AMM depend on pool share, block rewards and token prices, all of which keep changing. The team built calculations that track these inputs and show users up-to-date earnings from trades, farming and staking, so the numbers on screen match what lands in their wallet.
vorpal
Included systems for calculating income from investments
Beyond single positions, Vorpal shows income across all of a user’s investments. Reports break earnings down by pool, farm and staking position, so users can compare where their tokens work best and move funds accordingly.
vorpal

How long it took

What the client got
Hire us
100 hours
PM
384 hours
Frontend
118 hours
Solidity
12 hours
DevOps
Let's build something great together
decor
decor
Drag & Drop Your Files or Browse
You can upload ZIP, PDF, PAGES, DOC, or DOCX up to 8 MB each.
Maksym Privalov
PRODUCT MANAGER, SENIOR BDM
manager
Share the basic information about your project — like expectations, challenges, and timeframes.
We’ll come back within 24 hours
We will sign the NDA if required, and start the project discussion
Get in touch
Valerii
Online
bg
Hi there 👋

How can I help you?