Skip to content

Commit

Permalink
fix: if you are too fast, lost destination address
Browse files Browse the repository at this point in the history
  • Loading branch information
CumpsD committed Feb 2, 2024
1 parent 74d4732 commit 9067f57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions swappy-bot/Commands/Swap/Swap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -514,6 +512,8 @@ await Context.Channel.SendMessageAsync(
// swapState.QuoteChainflipFee = quoteChainflipFee;
}

swapState.DestinationAddress = address;

var swapButtons = BuildSwapButtons("swap-step6", stateId);

await Context.Channel.SendMessageAsync(
Expand Down

0 comments on commit 9067f57

Please sign in to comment.