Fix: use the correct getPoolSwappableVouchers

This commit is contained in:
Alfred Kamanda 2025-05-20 15:50:35 +03:00
parent 334aa07f9f
commit 81fbc2574c
Signed by: Alfred-mk
GPG Key ID: 7EA3D01708908703

View File

@ -392,7 +392,7 @@ func (as *HTTPAccountService) getPoolSwappableFromVouchers(ctx context.Context,
func (as *HTTPAccountService) GetPoolSwappableVouchers(ctx context.Context, poolAddress, publicKey string) ([]dataserviceapi.TokenHoldings, error) { func (as *HTTPAccountService) GetPoolSwappableVouchers(ctx context.Context, poolAddress, publicKey string) ([]dataserviceapi.TokenHoldings, error) {
svc := dev.NewDevAccountService(ctx, as.SS) svc := dev.NewDevAccountService(ctx, as.SS)
if as.UseApi { if as.UseApi {
return as.getPoolSwappableFromVouchers(ctx, poolAddress, publicKey) return as.getPoolSwappableVouchers(ctx, poolAddress, publicKey)
} else { } else {
return svc.GetPoolSwappableVouchers(ctx, poolAddress, publicKey) return svc.GetPoolSwappableVouchers(ctx, poolAddress, publicKey)
} }