Update messaging
This commit is contained in:
@@ -859,18 +859,18 @@ public class LiveTradingBotGrain : Grain, ILiveTradingBotGrain, IRemindable
|
||||
try
|
||||
{
|
||||
var message = isSuccess
|
||||
? $"🔄 **Automatic Swap Successful**\n\n" +
|
||||
$"🎯 **Bot:** {_tradingBot?.Identifier}\n" +
|
||||
$"💰 **Amount:** {amount} USDC → ETH\n" +
|
||||
$"✅ **Status:** Success\n" +
|
||||
$"🔗 **Transaction:** {transactionHash}\n" +
|
||||
$"⏰ **Time:** {DateTime.UtcNow:yyyy-MM-dd HH:mm:ss} UTC"
|
||||
: $"❌ **Automatic Swap Failed**\n\n" +
|
||||
$"🎯 **Bot:** {_tradingBot?.Identifier}\n" +
|
||||
$"💰 **Amount:** {amount} USDC → ETH\n" +
|
||||
$"❌ **Status:** Failed\n" +
|
||||
$"⚠️ **Error:** {errorMessage}\n" +
|
||||
$"⏰ **Time:** {DateTime.UtcNow:yyyy-MM-dd HH:mm:ss} UTC";
|
||||
? $"🔄 Automatic Swap Successful\n\n" +
|
||||
$"🎯 Bot: {_tradingBot?.Identifier}\n" +
|
||||
$"💰 Amount: {amount} USDC → ETH\n" +
|
||||
$"✅ Status: Success\n" +
|
||||
$"🔗 Transaction: {transactionHash}\n" +
|
||||
$"⏰ Time: {DateTime.UtcNow:yyyy-MM-dd HH:mm:ss} UTC"
|
||||
: $"❌ Automatic Swap Failed\n\n" +
|
||||
$"🎯 Bot: {_tradingBot?.Identifier}\n" +
|
||||
$"💰 Amount: {amount} USDC → ETH\n" +
|
||||
$"❌ Status: Failed\n" +
|
||||
$"⚠️ Error: {errorMessage}\n" +
|
||||
$"⏰ Time: {DateTime.UtcNow:yyyy-MM-dd HH:mm:ss} UTC";
|
||||
|
||||
// Send notification via webhook service
|
||||
await ServiceScopeHelpers.WithScopedService<IWebhookService>(_scopeFactory,
|
||||
|
||||
Reference in New Issue
Block a user