50,000 property tests passed while my app crowned an impostor
You hear "buy PEPE", type PEPE into your wallet, and get fourteen tokens with the same name and the same frog. Which one do you buy? I built a tool to answer that. You type a ticker, and it asks Nansen 's API for every token with that name across chains. Then it checks who actually holds and trades each one: labelled Smart Money, whales, top-PnL wallets, exchange flow, tagged top holders. Exactly…
The developer created an application that analyzes cryptocurrency tokens based on their names and labels them as real or impostor. The tool queries the Nansen API for all tokens with a specific name across different chains, then evaluates factors such as exchange flow, holder information, and age to determine legitimacy. The application passed 50,000 generated test cases, but the tester discovered an issue while researching why PEPEGA, a token with no labeled wallets, no meaningful exchange flow, and relatively few tagged holders, was crowned a legitimate token.
To address the issue, the developer added a rule to the crown function in the verdict module, which prevents the card from being green and IMPOSTOR simultaneously. The updated code ensures that a card cannot be both crowned and flagged as an impostor at the same time.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.