Files
dex/pkg
zeekay e8bd1a1521 fix(trading): address code review — security limits, dead code, stub docs
- Add io.LimitReader on all HTTP response body reads (1MB broker, 4KB EVM)
- Add http.MaxBytesReader on all POST handlers (1MB request bodies)
- Add Swapper field to SwapRequest, use as tx From address
- Fix writeJSON to log encoding errors
- Remove dead code: isNativeVenue, unused fmt import, amount blank assign
- Document stub endpoints (handleSwapStatus, handleCheckApproval)
- Clarify V3 fee conversion (BPS * 100 = V3 fee units)
- Remove duplicate precompile address constants from venue_native.go
- Add uint256 overflow panic in padUint256

Coverage: 77.1% (40 tests, all pass)
2026-03-29 18:23:14 -07:00
..
…
…
…