Disclosure: STON.fi Protocol Fee Collection Permanently Blocked in Unidirectional Markets (Research)
Article by @Zer0day_sec | www.0daysec.xyz Target: STON.fi DEX v2 - contracts/pool.fc Researcher: Zeroday Sec Disclosure URL: https://www.0daysec.xyz/research/ston-fi-protocol-fee Full POC: https://gist.github.com/Zee99y/7143ff27791222d45f3de8486f3f49dc Submitted Severity: Major (ZerodaySec) - Classified Minor (CertiK SkyShield) Status: Disputed, Unpatched as of disclosure date Disclosure Authorization Public disclosure of this finding was expressly authorized by STON.fi via CertiK SkyShield in written email correspondence dated April 17, 2026. STON.fi requested that their official response accompany the disclosure. That response is included in full under Official Response & Rebuttal below. Executive Summary A logical flaw in STON.fi DEX v2’s protocol fee collection mechanism permanently blocks fee withdrawal in any pool experiencing unidirectional swap flow. The AND-gate condition in protocolfee.fc requires both token fee buckets to be nonzero simultaneously before any collection is permitted, a condition that is never satisfied in pools where swaps flow predominantly or exclusively in one direction. ...