From ba8d2a19c2edef703878062565d8bb50eccd3a3b Mon Sep 17 00:00:00 2001 From: alfred-mk Date: Mon, 10 Mar 2025 16:39:37 +0300 Subject: [PATCH] Use the DevAccountService functions to retrieve the data --- remote/http/service.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/remote/http/service.go b/remote/http/service.go index 3792f5b..48bf678 100644 --- a/remote/http/service.go +++ b/remote/http/service.go @@ -298,11 +298,13 @@ func (as *HTTPAccountService) GetPoolSwapQuote(ctx context.Context, amount, from } func (as *HTTPAccountService) GetPoolSwappableFromVouchers(ctx context.Context, publicKey string) ([]dataserviceapi.TokenHoldings, error) { - return as.GetPoolSwappableFromVouchers(ctx, publicKey) + svc := dev.NewDevAccountService(ctx, as.SS) + return svc.GetPoolSwappableFromVouchers(ctx, publicKey) } func (as *HTTPAccountService) GetPoolSwappableVouchers(ctx context.Context, publicKey string) ([]dataserviceapi.TokenHoldings, error) { - return as.GetPoolSwappableVouchers(ctx, publicKey) + svc := dev.NewDevAccountService(ctx, as.SS) + return svc.GetPoolSwappableVouchers(ctx, publicKey) } func (as *HTTPAccountService) PoolSwap(ctx context.Context, amount, from, fromTokenAddress, poolAddress, toTokenAddress string) (*models.PoolSwapResult, error) {