feat: support TON and USDT Jetton payments

- add TON chain, token, RPC, address normalization, and order matching support
- add liteclient scanner with masterchain/shard catch-up and Jetton validation
- add TON manual payment verification and focused tests
This commit is contained in:
line-6000
2026-06-11 14:47:46 +08:00
parent 225cae2c24
commit 9b397bd45e
34 changed files with 3131 additions and 57 deletions
+7 -1
View File
@@ -352,7 +352,13 @@ func GetRateForCoin(coin string, base string) float64 {
if coin == "usdt" && base == "usd" {
return 1
}
return getRateForCoinFromAPI(coin, base)
if rate := getRateForCoinFromAPI(coin, base); rate > 0 {
return rate
}
if coin == "ton" {
return getRateForCoinFromAPI("toncoin", base)
}
return 0
}
func getForcedRateForCoin(coin string, base string) float64 {