From 9067f57a8ad0aa9b97739cf4bfa675700befe686 Mon Sep 17 00:00:00 2001 From: David Cumps Date: Fri, 2 Feb 2024 03:33:35 +0100 Subject: [PATCH] fix: if you are too fast, lost destination address --- swappy-bot/Commands/Swap/Swap.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swappy-bot/Commands/Swap/Swap.cs b/swappy-bot/Commands/Swap/Swap.cs index a8a7671..da7990b 100644 --- a/swappy-bot/Commands/Swap/Swap.cs +++ b/swappy-bot/Commands/Swap/Swap.cs @@ -504,8 +504,6 @@ await Context.Channel.SendMessageAsync( // var quotePlatformFee = 0.01; // var quoteChainflipFee = 5.49; - swapState.DestinationAddress = address; - swapState.QuoteTime = quoteTime; swapState.QuoteDeposit = quoteDeposit; swapState.QuoteReceive = quoteReceive; @@ -514,6 +512,8 @@ await Context.Channel.SendMessageAsync( // swapState.QuoteChainflipFee = quoteChainflipFee; } + swapState.DestinationAddress = address; + var swapButtons = BuildSwapButtons("swap-step6", stateId); await Context.Channel.SendMessageAsync(