Use the DevAccountService functions to retrieve the data
This commit is contained in:
parent
e3b6c25792
commit
ba8d2a19c2
@ -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) {
|
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) {
|
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) {
|
func (as *HTTPAccountService) PoolSwap(ctx context.Context, amount, from, fromTokenAddress, poolAddress, toTokenAddress string) (*models.PoolSwapResult, error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user