pool-swap-endpoints #11

Merged
Alfred-mk merged 55 commits from pool-swap-endpoints into master 2025-06-26 07:58:54 +02:00
Showing only changes of commit 81fbc2574c - Show all commits

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)
} }