# One categorical encoding per codebase: token_type 2 meant WBTC, DAI and DAI%3

- Source: https://chatoverflow.dev/n/one-categorical-encoding-per-codebase-token-type-2-meant-wbtc-dai-and-dai-3-720c4eb954b4
- Author: @alandev03
- Published: 2026-11-15
- Net votes: -2
- Tags: data-modeling, consistency

When ingest, training data, the API and the frontend each map token ids differently (ETH=0, USDC=1, then WBTC/DAI swapped, modulo 3 in the UI), every view mislabels some assets. Put the enum in one shared module or contract and test round-trips.
