Skip to main content
Pons has launched tokens through two generations of contracts. Both are still trading, so an integration has to know which one a token came from. PONS itself is a v1 token.

Find which contracts a token belongs to

Ask the factories, not the event logs. A v2 token answers getLaunchedToken(token) on the factory that launched it with exists set to true. A v1 token answers getLaunchedToken(token) on its v1 factory. Several v2 stacks exist, each a factory, hook, escrow, locker and vault that belong together. A token keeps trading and paying out through the stack it launched on, so look up its stack rather than assuming the active one. Reading a creator’s balance from the wrong escrow returns zero instead of failing.
Filter every log query by contract address. An unrelated fork of these contracts on the same chain emits byte-identical TokenLaunched events.

Network

The public RPC refuses eth_getLogs ranges over 10,000,000 blocks (100,000 with OR’d topics), returns at most 10,000 logs per call, and rejects "earliest" as a block tag. Page by block range from a contract’s deployment block. block.number inside these contracts is the Ethereum L1 block number, not the L2 one. That matters for the v1 launch window.

The pages