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

Conversation

@isreallee82
Copy link
Contributor

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:
Added functionalities to enable interaction with Pancakeswap on the Ethereum mainnet.
Ensured compatibility and seamless integration with the existing Pancakeswap connector architecture.
Implemented appropriate handling for chain-specific differences and features.

Tests performed by the developer:
curl test

Tips for QA testing:
curl test

@isreallee82
Copy link
Contributor Author

Good for a review now @nikspz

@nikspz nikspz requested review from fengtality and nikspz March 27, 2024 13:47
nikspz
nikspz previously approved these changes Mar 29, 2024
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.

Test performed:

  • Cloned and installed latest development branch and gwPR299
  • Set up gateway successfully
  • connected pancakeswap ethereum mainnet successfully
  • check wallet now showing on gateway connect command
  • check gateway balance show balance for the ethereum mainnet wallet
  • curl
    • chain/status: ok
    • /chain/balances
    • add/ remove wallet: ok
    • /amm/price: ok

@notion-workspace
Copy link

@isreallee82
Copy link
Contributor Author

Good for a review now @nikspz

@nikspz
Copy link
Contributor

nikspz commented Apr 2, 2024

Test performed:

gw299.zip

logs_pancake_arbiturm.log
logs_gateway_app.log.2024-04-02.log

logs_hummingbot.log

image

@isreallee82
Copy link
Contributor Author

I will make a few test @nikspz will give you heads up if things runs fine possibly by end of tomorrow.

@isreallee82
Copy link
Contributor Author

fixed @nikspz

@nikspz
Copy link
Contributor

nikspz commented Apr 4, 2024

  • commit [e812844](e812844)
    • Test performed:
      • cloned and installed development + gwPR299
      • connected pancakeswap_ethereum_arbitrum
      • check balance succesfully
      • Failed to approved token using gateway approve-tokens pancakeswap_ethereum_arbitrum WETH

image

image

  • created/started amm_arb strategy using pancakeswap_ethereum_arbitrum
    • price query failed: Cannot find a valid swap

logs_gateway_app.log.2024-04-04.log
logs_conf_amm_arb_1.log
logs_hummingbot.log

Error on POST https://localhost:15888/amm/price Error: {'message': 'Price query failed: Cannot find a valid swap route', 'httpErrorCode': 500

image

pancake

@isreallee82
Copy link
Contributor Author

sorry pancakeswap doc havent be updated, I see this have to do with subgraph api, I just noticed it was on their GitHub will push in a min @nikspz

@isreallee82
Copy link
Contributor Author

that should solve the price query error @nikspz

@nikspz
Copy link
Contributor

nikspz commented Apr 5, 2024

Still failing @isreallee82

Test performed:
cloned and installed development + gwPR299
connected pancakeswap_ethereum_arbitrum
check balance succesfully
Created/started amm_arb using pancakeswap_ethereum_arbitrum
Review

logs_gateway_app.log.2024-04-05.log

logs_conf_amm_arb_1.log
logs_hummingbot.log

image

@isreallee82
Copy link
Contributor Author

isreallee82 commented Apr 5, 2024

I just change the endpoints to the second one provided @nikspz, also tested it against pairs available on arbitrum network. https://pancakeswap.finance/info/v3/arb/pairs, https://pancakeswap.finance/info/arb/pairs

@isreallee82
Copy link
Contributor Author

what market pair are you using @nikspz

@nikspz
Copy link
Contributor

nikspz commented Apr 8, 2024

what market pair are you using @nikspz

WETH-USDC

@isreallee82
Copy link
Contributor Author

With curl test all seem to work fine @nikspz can you try with last push.

@nikspz
Copy link
Contributor

nikspz commented Apr 9, 2024

logs_gateway_app.log.2024-04-09.log
logs_pancake-arb.log

image

Curl:

  • chain/tokens : ok
  • amm/price: had instances when able to check price, then failing @isreallee82
    image

Note: Not usable for amm_arb, will discuss and check to finalize PR

@isreallee82
Copy link
Contributor Author

isreallee82 commented Apr 10, 2024

Alright @nikspz, Also I guess the subgraph is api rate limited, made a clean-up on the pr for instances of chain preventing more iterations, no change in functionality, I will await your feedback

@nikspz nikspz dismissed their stale review April 11, 2024 08:24

to discuss what to do this the amm/price issue

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.

Note: There's still cases of amm/price failing when using amm_arb strategy using pancakeswap arbitrum

image

@rapcmia rapcmia merged commit 343793c into hummingbot:development Apr 15, 2024
@rapcmia
Copy link
Contributor

rapcmia commented Apr 15, 2024

Merged to development and part of release version 1.27.0

@notion-workspace
Copy link

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.

Pancakeswap - add Ethereum Mainnet, arbitrum and zkSync for current Pancakeswap connector

4 participants