Network and token identity网络与代币身份
Validate the chain ID, exact contract address, contract source, name(), symbol(), decimals() and totalSupply() against independent explorers or RPC calls. Do not assume the same metadata on Ethereum and TRON.通过独立浏览器或 RPC 调用核验链 ID、准确合约地址、合约源码以及 name()、symbol()、decimals() 和 totalSupply()。不要假设以太坊与 TRON 的元数据相同。
Transaction validation交易验证
Verify the receiving address, token contract, chain, transaction status, amount in base units and confirmation policy. Avoid trusting a transaction hash submitted by a user without independent verification.核验收款地址、代币合约、链、交易状态、最小单位金额和确认策略。不要仅凭用户提交的交易哈希进行确认。
Decimal-safe accounting安全处理小数位
Store amounts as integers in smallest token units and convert for display using each contract’s verified decimals. Avoid floating-point rounding in payment logic.以最小代币单位的整数存储金额,并使用各合约已核验的小数位进行显示转换。支付逻辑中应避免浮点舍入误差。
Monitoring and support监控与支持
Plan for chain congestion, reorg or confirmation anomalies, RPC outages, duplicate notifications and customer disputes.为网络拥堵、链重组或确认异常、RPC 故障、重复通知及客户争议做好预案。