-
-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/pancake swap v3 #247
Feat/pancake swap v3 #247
Conversation
…nto feat/pancake_swap_v3
@vic-en this PR introduces bad changes to
I spent some time fixing |
@fengtality I'll do that soon. |
@fengtality @nikspz @rapcmia |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Setup this PR with latest development client
- Pancakeswap LP must be tested on BSC mainnet
- API test using Thunderclient
- GET/port ok
- GET/Wallet ok
- POST/add ok
- GET/connectors ok
- API test using Curl
curl -s -X GET -k --key $GATEWAY_KEY --cert $GATEWAY_CERT https://localhost:15888/ | jq
okcurl -s -X GET -k --key $GATEWAY_KEY --cert $GATEWAY_CERT https://localhost:15888/chain/status | jq
okcurl -s -X POST -k --key $GATEWAY_KEY --cert $GATEWAY_CERT -H "Content-Type: application/json" -d "$(envsubst < ./requests/add_bsc_key.json)" https://localhost:15888/wallet/add | jq
okcurl -s -X POST -k --key $GATEWAY_KEY --cert $GATEWAY_CERT -H "Content-Type: application/json" -d "$(envsubst < ./requests/bsc_balances.json)" https://localhost:15888/chain/balances | jq
okcurl -s -X POST -k --key $GATEWAY_KEY --cert $GATEWAY_CERT -H "Content-Type: application/json" -d "$(envsubst < ./requests/eth_uniswap_add_liquidity.json)" https://localhost:15888/amm/liquidity/add | jq
okcurl -s -X POST -k --key $GATEWAY_KEY --cert $GATEWAY_CERT -H "Content-Type: application/json" -d "$(envsubst < ./requests/eth_uniswap_position.json)" https://localhost:15888/amm/liquidity/remove | jq
ok
Ran tests using uniswap_v3_lp
- Token approved for WBNB and CAKE
- Liquidity added on position successfully
- When a position is closed, strategy proceeds with creating one again
- Stop strategy and start again, retrieve the active position from pancakeswapLP
- Stop and exit the client. Open, import and start strategy, successfully retrieved position with exact ID
Hi @vic-en github checks are still failing after 3/3 reruns 🙇🏼 |
@rapcmia I'm still finding a good solution to the issue causing the workflow to fail. |
@vic-en Don't worry about the workflow issues, as they appear to be related to the XRP chain and connector. I'll exclude them from the standard tests. |
I ran a test for fetching the trading prices of a pool and the new codebase does not seem to fetch the prices from a V3 pool correctly. Steps to replicate:
Am I missing any steps in retrieving V3 prices compared to only V2 prices of a token? In addition, I was unable to fetch prices for RITE/USDT V3 pool. https://www.geckoterminal.com/bsc/pools/0x9b36e5b07eab82cd861aeb282235b95ee029164d |
@jellebuth |
I was trying to get it for RITE (which only has a V3 Pool. But it returns that there is no pool for RITE. https://www.geckoterminal.com/bsc/pools/0x9b36e5b07eab82cd861aeb282235b95ee029164d I think that the price fetching feature does not have a V3 integration yet? If I look at the source code, it seems like the function that returns the price does not follow similar logic as the one for Uniswap (which does have a V3 integration). But I might be wrong in this. |
@vic-en Could you please check this comment? |
To triage the issue, Could you confirm are you're using LP strategy /requests? |
@jellebuth @nikspz So add the token and the issue shouldn't persist. |
Before submitting this PR, please make sure:
A description of the changes proposed in the pull request:
Tests performed by the developer:
Tips for QA testing:
binance-smart-chain
and network withmainnet
.