@lawrenceliang-btc/atel-sdk 1.1.37 → 1.1.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/atel.mjs +4 -2
- package/package.json +1 -1
package/bin/atel.mjs
CHANGED
|
@@ -336,8 +336,10 @@ async function pushTradeNotification(eventType, payload, body) {
|
|
|
336
336
|
return `❌ 里程碑 M${p.milestoneIndex ?? '?'} 被拒绝\n订单: ${p.orderId || body?.orderId || '?'}${desc}\n原因: ${p.rejectReason || '未说明'}`;
|
|
337
337
|
},
|
|
338
338
|
'order_settled': (p) => {
|
|
339
|
-
const
|
|
340
|
-
|
|
339
|
+
const cl = chainLabel(p);
|
|
340
|
+
const amount = p.priceAmount ? `\n金额: $${p.priceAmount} USDC${cl}` : '';
|
|
341
|
+
const dest = cl === ' (Fast)' ? '\n资金已到达执行方 Fast 钱包' : '\nUSDC 已支付';
|
|
342
|
+
return `💰 订单已结算完成\n订单: ${p.orderId || body?.orderId || '?'}${amount}${dest}`;
|
|
341
343
|
},
|
|
342
344
|
};
|
|
343
345
|
const tmpl = templates[eventType];
|