. @GeniusTerminal
⚠️ BUG REPORT: Trade value ("Value") is incorrect for aggregator multi-hop routes.
This is an accounting / measurement logic bug, not intended behavior.
1) Direct USDC → USDT (single stable pool):
Trade value ≈ input notional ✅
2) Same notional via aggregator
(e.g. USDC → WSOL → USDT, multi-hop):
Only a small sub-swap amount is counted as “Value” ❌
Root cause:
Value is derived from a single swap leg (often the final hop),
instead of the user’s input notional.
Result:
Works for direct stable pools,
but deterministically undercounts volume for multi-hop routes.
This is a deterministic BUG and should be fixed ASAP.
------------------------
BUG 反馈:聚合器多跳路径下的交易金额(Value)计算是错误的,
这是明确的统计 / 计量逻辑 BUG。
1)直连 USDC → USDT(单一稳定币池)
交易金额 ≈ 输入名义金额(正确)
2)相同名义金额走聚合器路径
(如 USDC → WSOL → USDT,多 hop)
系统仅按某一子 swap 的极小金额计算 Value(错误)
原因判断:
Value 实际取自某一跳(通常是最后一跳)的 token 输出,
而非用户的输入名义交易额。
结果:
直连路径下问题不明显,
多跳路径下会必然、可复现地低估交易量。
这是一个确定性的 BUG,建议尽快修复。