这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@vic-en
Copy link
Collaborator

@vic-en vic-en commented Jun 12, 2023

Before submitting this PR, please make sure:

  • Your code builds clean without any errors or warnings
  • You are using approved title ("feat/", "fix/", "docs/", "refactor/")

A description of the changes proposed in the pull request:
This pr upgrade TraderJoe to use sdk V2.

Tests performed by the developer:

  • Curl tested traderJoe connector
  • End-to-end testing with HB client

Tips for QA testing:

  • Curl test
  • End-to-end testing with client.

@vic-en vic-en changed the title upgrade traderjoe feat/ upgrade traderjoe Jun 12, 2023
@vic-en vic-en mentioned this pull request Jun 12, 2023
2 tasks
Copy link
Contributor

@nikspz nikspz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests performed:

  • Cloned and install feature branch and Client on development
  • Set up gateway and reviewed its ONLINE
  • successfully connected traderjoe
  • review client shows correct balance
  • created/started amm_Arb strategy using traderjoe avalanche
  • Review client shows profitability rates
  • Set low profitability and reviewed order execution successful
  • Tests Curl: allowances/price/trade etc. return expected responses

@fengtality fengtality self-assigned this Jun 14, 2023
@nikspz nikspz requested a review from fengtality June 14, 2023 14:03
Copy link
Contributor

@david-hummingbot david-hummingbot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docker Ubuntu 20.04 (amd64)

  • build docker image locally successful
  • run client and connect traderjoe ok
  • balance command works
  • run amm_arb strategy ok
  • run curl tests ok

Copy link
Contributor

@fengtality fengtality left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See question about MAX_HOPS

import { createPublicClient, http } from 'viem';
import { avalanche, avalancheFuji } from 'viem/chains';

const MAX_HOPS = 2;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would users need to modify this parameter? if so, I think it should be a param in traderjoe.yml

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not a parameter regular users should modify in this case. Changing that value without adding more path tokens would have no effect on the final route. It would be a different case if there is an auto/smart router.

@fengtality fengtality merged commit 8cec685 into hummingbot:development Jun 16, 2023
@fengtality fengtality deleted the feat/traderjoe_upgrade_to_v2 branch June 16, 2023 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants