From 24224e553de57f7414f05638163cb6988abd7a70 Mon Sep 17 00:00:00 2001 From: alfred-mk Date: Thu, 22 May 2025 15:31:08 +0300 Subject: [PATCH] use the correct PoolSwapURL when performing the actual swap --- remote/http/service.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/remote/http/service.go b/remote/http/service.go index 4d124de..2a7fce5 100644 --- a/remote/http/service.go +++ b/remote/http/service.go @@ -351,6 +351,7 @@ func (as *HTTPAccountService) GetPoolSwapQuote(ctx context.Context, amount, from if err != nil { return nil, err } + req, err := http.NewRequest("POST", config.PoolSwapQuoteURL, bytes.NewBuffer(payloadBytes)) if err != nil { return nil, err @@ -444,7 +445,8 @@ func (as *HTTPAccountService) PoolSwap(ctx context.Context, amount, from, fromTo if err != nil { return nil, err } - req, err := http.NewRequest("POST", config.PoolSwapQuoteURL, bytes.NewBuffer(payloadBytes)) + + req, err := http.NewRequest("POST", config.PoolSwapURL, bytes.NewBuffer(payloadBytes)) if err != nil { return nil, err }