diff --git a/remote/http/service.go b/remote/http/service.go index 86a856a..7bad334 100644 --- a/remote/http/service.go +++ b/remote/http/service.go @@ -239,6 +239,11 @@ func resolveAliasAddress(ctx context.Context, alias string) (*models.AliasAddres return &r, err } +func (as *HTTPAccountService) FetchTopPools(ctx context.Context) ([]models.Pool, error) { + svc := dev.NewDevAccountService(ctx, as.SS) + return svc.FetchTopPools(ctx) +} + func (as *HTTPAccountService) PoolDeposit(ctx context.Context, amount, from, poolAddress, tokenAddress string) (*models.PoolDepositResult, error) { var r models.PoolDepositResult @@ -292,6 +297,14 @@ func (as *HTTPAccountService) GetPoolSwapQuote(ctx context.Context, amount, from return &r, nil } +func (as *HTTPAccountService) GetPoolSwappableFromVouchers(ctx context.Context) ([]models.SwappableVoucher, error) { + return as.GetPoolSwappableFromVouchers(ctx) +} + +func (as *HTTPAccountService) GetPoolSwappableVouchers(ctx context.Context) ([]models.SwappableVoucher, error) { + return as.GetPoolSwappableVouchers(ctx) +} + func (as *HTTPAccountService) PoolSwap(ctx context.Context, amount, from, fromTokenAddress, poolAddress, toTokenAddress string) (*models.PoolSwapResult, error) { var r models.PoolSwapResult