DTXT's contract misclassified a taxed sell as a fee-exempt liquidity addition by comparing its own USDT balance to a deposited amount an attacker could nudge with a one-wei transfer. PeckShield, cited by Cryptonews, and DeFiHackLabs both reconstruct a loss of approximately 35,041 USDT, funded by a Moolah flash loan.
Security ·
Logged as “2026-06-05: Liquidity Misclassification Fee Bypass on DTXT”.
DTXT is a BEP-20 token trading against USDT on a single BNB Smart Chain PancakeSwap pair, with a contract that applies a sell-side fee by distinguishing ordinary transfers, which should be taxed, from liquidity additions, which should not. According to PeckShield's analysis, cited by Cryptonews, the contract drew that line by comparing its own USDT balance against the USDT amount a caller had just deposited into the pair: when the deposited amount matched what the contract already held, the call was treated as a liquidity add and the sell fee was waived, rather than charged as an ordinary sell.
That comparison is the missing check, and it is also the entire attack surface, since nothing resembling a real liquidity addition needed to happen, only the appearance of one. The attacker, at 0xd304ea1592f733e0A46436A01fe54bD504009526, borrowed 1,077,400 USDT from the Moolah lending protocol by flash loan and routed it through a seed helper contract that added real liquidity to the DTXT/USDT pair using DTXT and the borrowed USDT, then promptly removed the resulting LP tokens, closing out that round trip. The attacker then sent a single wei of USDT, a fraction of a cent, directly to the pair, nudging its recorded USDT balance just enough to make a subsequent, far larger DTXT sell register as a liquidity operation rather than a taxed sell. The sell then executed against the pair's stale reserve ratio at full size with no fee deducted, and the flash loan was repaid out of the proceeds, leaving the remainder as the attacker's profit. Cryptonews' own commentary notes the vulnerability was in the DTXT token's custom contract code rather than the DEX's core trading logic, and says custom token integrations with non-standard fee or balance-check logic require rigorous auditing.
DeFiHackLabs reconstructs the drain at 35,041.11 USDT. Cryptonews, drawing on PeckShield, independently reports the loss as "approximately $35,041," attributing it to the same transaction-classification bug rather than to any flaw in Moolah, which functioned only as the flash-loan source. The attack transaction's full trace has not been independently confirmed on BscScan; the reconstruction here relies on PeckShield's account and DeFiHackLabs' proof of concept. Neither source records any statement from the DTXT team: no pause, no patch announcement, no compensation plan.
What would have prevented it is straightforward given the mechanism: a liquidity-add detection that checks the LP token mint event itself, or a nonce-gated liquidity flag set only by the router during addLiquidity, rather than inferring intent from a balance delta that any caller can nudge with a trivial, unprofitable-looking transfer. A fee bypass that depends on reading the contract's own balance at an arbitrary moment will always be vulnerable to whoever controls what that balance looks like at that moment.
Query every incident yourself — free, no signup
Updated 9 Nov 2026. Figures are as reported by the sources listed above and are not independently verified.