Conversation
PR SummaryLow Risk Overview Wires SVM subcommands to a small Written by Cursor Bugbot for commit 1b64179. Configure here. |
| return "0.00" | ||
| } | ||
| return fmt.Sprintf("%.2f", v) | ||
| } |
There was a problem hiding this comment.
Duplicated formatUSD utility across EVM and SVM packages
Low Severity
The formatUSD function in cmd/sim/svm/balances.go is an exact copy of the one in cmd/sim/evm/balances.go. This utility has no package-specific type dependencies and could live in the shared output package to avoid duplicated logic and the risk of the two copies diverging over time.
| formatUSD(b.PriceUSD), | ||
| formatUSD(b.ValueUSD), | ||
| } | ||
| } |
There was a problem hiding this comment.
Display uses optional Balance field instead of required Amount
Low Severity
The text table displays b.Balance (tagged json:"balance,omitempty") in the BALANCE column, but this field is optional per its struct definition. The required Amount field (no omitempty) is never displayed. If the API omits balance for any entry, that table cell will be blank with no fallback to Amount.
1b64179 to
d5e475f
Compare
2208ba0 to
234d2c4
Compare
d5e475f to
9de6e43
Compare
04fc294 to
c682cc0
Compare
3e08956 to
a2dc2be
Compare
c682cc0 to
2879e1f
Compare
a2dc2be to
cae8577
Compare
98674c2 to
ebd4cf0
Compare
cae8577 to
05b2645
Compare
05b2645 to
440d4dd
Compare
5d7bdb0 to
1af3a07
Compare
6501618 to
f0ef4d7
Compare
1af3a07 to
a7987f1
Compare
f0ef4d7 to
b3a1bb9
Compare
6c9eec5 to
0046a00
Compare
b3a1bb9 to
bad2eef
Compare
0046a00 to
b4dff39
Compare
9e733a1 to
de31d1d
Compare
747053a to
9daf3f4
Compare
de31d1d to
bee2c11
Compare
bee2c11 to
691a8b0
Compare
9daf3f4 to
1df3c1d
Compare



Add
dune sim svm balances <address>for querying SVM token balances across Solana/Eclipse chains with USD valuations. Supports --chains, --limit, --offset flags, text table and JSON output.