
SilkSwap
Bounty Range
$5,000 - $169,420
external program
This project aims to create a decentralized exchange (DEX) protocol, allowing users to swap tokens in a trustless, permissionless, and decentralized manner. The project leverages smart contracts on the Bahamut chain to facilitate token swaps and liquidity provision.
Additional information: The app is the copy of Uniswap.
Only smart contracts are auditable.
Critical: $69,420 - $169,420 Loss or inaccessibility of overall liquidity provided. For example someone somehow takes all the tokens of one or more pairs which was not provided by him. Or for existing pairs blocking the withdrawal or swaps making the pair useless. Loss of custom ERC20s which were designed in a way that they can be blocked or manipulated in one way the other is not within the scope of this audit.
High: $30,000 - $69,420 Loss of users personal tokens during swap or any other operations (providing liquidity, removing it, pair creation). Loss of custom ERC20s which were designed in a way that they can be blocked or manipulated in one way the other is not within the scope of this audit.
Medium: $5,000 - $10,000 Any unexpected behaviour that is not described by uniswap v2 doccumentations and can lead to misbehavior of the smart contract. Inability to perform a swap. Loss of custom ERC20s which were designed in a way that they can be blocked or manipulated in one way the other is not within the scope of this audit.
Low Not eligible
Informational Not eligible
Features:
Token Swapping: Users can exchange one token for another directly on the Bahamut blockchain without the need for intermediaries.
Liquidity Provision: Liquidity providers can contribute funds to liquidity pools and earn fees for facilitating trades.
Automated Market Making (AMM): The exchange relies on an AMM model to determine token prices based on the available liquidity in the pools.
Pair-based Exchanges: Exchanges take place through pairs of tokens, enabling users to trade any token listed on the platform with any other token in existing pairs.
Add Your Own Token: Users can add their own ERC-20 tokens to the token list.
Create a pair: Creating a pair on the Bahamut blockchain enables a direct exchange of tokens without intermediaries. Users choose two tokens to form a pair, initiating a liquidity pool. This facilitates the seamless exchange of tokens and diversifies trading options.
Add in liquidity: Adding liquidity to a pair is simple and profitable. Users place equal values of two tokens into the liquidity pool of the selected pair, earns commissions proportional to their investment.
Remove liquidity: Liquidity removal provides asset flexibility and control. Users withdraw their share of the liquidity pool by returning invested tokens (LP) and accumulated fees.
UniswapV2Factory https://www.ftnscan.com/address/0xd0C5d23290d63E06a0c4B87F14bD2F7aA551a895
UniswapV2Router02 https://www.ftnscan.com/address/0xF660558a4757Fb5953d269FF32E228Ae3d5f6c68
The following vulnerabilities are considered out of scope and are not eligible for payout: