FlokiChain Rug Pull
What happened
FlokiChain (FC) is a BEP-20 token traded on PancakeSwap. Its constructor mints the whole 10 trillion supply to one hard-coded address, address _owner = 0x19c943B6557a17176B4eD8c2D6081c7E71A5fD35; followed by _mint(_owner, totalSupply);, and makes that address fee-exempt and the contract owner. The owner can also change the sell tax to any value up to 100%, can switch fee-swapping off, and nothing in the contract locks the pool liquidity that the owner provides.
CertiK's Skynet alert of 11 October 2022 reported that the project owner removed liquidity worth about 110k USD, dropping the price by more than 99%. The earlier record puts the profit at 111,162 USD, adds that the funds were swapped for 407 BNB and sent to another EOA, and names 0x19c943b6…a5fd35 as the scammer address and 0x9df83e40…63044a as the liquidity removal transaction (De.Fi listing). The owner address in the code is the same address.
How it happened
- The constructor mints the full supply to the hard-coded owner:
_mint(_owner, totalSupply);thentransferOwnership(_owner);, andexcludeFromFees(_owner, true);exempts that address from every fee. - Trading is gated by the owner:
if(!tradingActive){ require(_isExcludedFromFees[from] || _isExcludedFromFees[to], "Trading is not active."); }.enableTrading()isonlyOwnerand cannot be undone. - The sell tax is owner-adjustable with a ceiling of 100%:
function updateSellFees(uint256 _liquidityFee) external onlyOwner { ... require(sellTotalFees <= 100, "Must keep fees at 100% or less"); }. At 100% a sell is debited from the seller (super._transfer(from, address(this), fees); amount -= fees;) while 0 tokens reach the pool, so the code allows a total sell block. This is what the code ALLOWS; no transaction is cited showing the tax was changed. - The contract has no liquidity lock; the pool's LP tokens are held by whoever added the liquidity, which the source does not show.
- What was reported: CertiK's alert says the owner removed liquidity for about 110k USD, causing a price drop of more than 99%. The earlier record adds a swap into 407 BNB and a transfer to another EOA (transaction 0x9df83e40…63044a removed the liquidity per De.Fi).
Protocol details
Evidence
- report CertiK Alert tweet, 11 Oct 2022 (via fxtwitter) twitter.com
- transaction bscscan.com transaction 0x9df8…044a bscscan.com
- address BscScan verified source, FlokiChain (FC) 0xa48d94e1cca09c4867d710cd24f002cb6aa196d3 bscscan.com
- address bscscan.com address 0x19c9…fd35 bscscan.com
- analysis Sourcify repository copy, same contract repo.sourcify.dev
- analysis De.Fi REKT database listing for FlokiChain (FC) de.fi
Build your security review skills
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.