NFDAO Rug Pull
What happened
NFDAO (NFD) is a BNB Chain token at 0xe1afc0a3…edfda3 with 300,000 NFD minted to the deployer and a PancakeSwap pool against USDT. Its code blocks all pool trades except liquidity adds until the owner calls startTrade, takes 99% of every buy in the first 100 blocks after that and sends it to the marketing wallet, and charges an 8% fee on later trades, part of it paid through an invite contract the owner could replace. Liquidity removals are exempt from fees.
On 5 June 2023 De.Fi reported that a deployer-related wallet removed all liquidity from the NFD/USDT pool, about $88,000, and the token price fell 90%. According to De.Fi's REKT database, the removal (tx 0xb6d28af3…857d5f) was made by 0x91b6854e…62c6cb, linked to deployer 0xA90ab5bE…9b6970, and the funds were moved to 0x7E0E658a…922eEc (tx 0x45317e4c…84471a).
How it happened
- The constructor mints the full 300,000 NFD to the deployer, creates the NFD/USDT pair, and excludes the owner, the marketing wallet and the contract from fees.
- Before launch, a trade with the pool by a non-excluded wallet hits
require(startBlock > 0 && isAdd, "!Trade"), so only liquidity adds go through. The owner opens trading withstartTrade(). - For 100 blocks after
startTrade,if (isMarketPair[sender] && startTradeBlock + 100 >= block.number) { feeAmount = _amount.mul(99).div(100); _balances[marketingAddress] = ...gives the buyer 1% of the tokens they bought and the marketing wallet the rest. - After that, pool trades pay 1% burn, 1% to the marketing wallet, 2% to
nodeAddressand 4% to referrers, whose amounts and addresses come fromInvite(invite). The owner could repointinvitewithsetInviteAddressand switch fees withsetFeeEnable; ownership now reads as the zero address, so these settings are fixed as last set. isRemoveLPmakes a liquidity withdrawal fee-free, and nothing in the token restricts who can withdraw liquidity.- On 5 June 2023 a deployer-related wallet removed all liquidity from the NFD/USDT pool, about $88,000, and the price fell 90%, according to De.Fi.
Protocol details
Evidence
- report @DeDotFiSecurity incident report twitter.com
- report De.Fi Antivirus Web3: ~$88,000 NFD Token rug pull twitter.com
- transaction bscscan.com transaction 0x4531…471a bscscan.com
- transaction bscscan.com transaction 0xb6d2…7d5f bscscan.com
- address NFDAO (NFD) verified contract code on BscScan bscscan.com
- address bscscan.com address 0x7E0E…2eEc bscscan.com
- address bscscan.com address 0x91b6…c6cb bscscan.com
- address bscscan.com address 0xA90a…6970 bscscan.com
- analysis Sourcify match for 0xe1afc0a3c9aa2537deea233ef7dc0952ceedfda3 on BNB Chain repo.sourcify.dev
Build your security review skills
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.