Use the DevAccountService functions to retrieve the data

This commit is contained in:
Alfred Kamanda 2025-03-10 16:39:37 +03:00
parent e3b6c25792
commit ba8d2a19c2
Signed by: Alfred-mk
GPG Key ID: 7EA3D01708908703

View File

@ -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) {