Skip to content
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

Fix/ unhandled error when using USDC.e #177

Merged
merged 7 commits into from
Aug 7, 2023

Conversation

isreallee82
Copy link
Contributor

@isreallee82 isreallee82 commented Jul 27, 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:

  • "fix"

** after the latest merge for commit **

  • you should remove USDC.E if added✅

❌ Setup connector-token command and add USDC.e or USDC.E ❌

then

  • Setup connector-token command and add USDC.e ✅
  • Setup amm-arb with avalanche or uniswap arbitrum_one connector ✅
  • Observe the display balance upon starting the amm-arb ✅

"refactor" changes made

"symbol":"USDC.E",
"symbol":"USDC.e",

Tests performed by the developer:

  • Setup connector-token command and add USDC.e or USDC.E ❌ threw duplicate

Screenshot from 2023-07-27 04-12-23

  • Setup amm-arb with avalanche or uniswap arbitrum_one connector ✅
  • Observe the display balance upon starting the amm-arb ✅

Screenshot from 2023-07-27 02-25-31

Screenshot from 2023-07-27 04-12-23

Tips for QA testing:

  • Setup connector-token command and add USDC.e ✅
  • Setup amm-arb with avalanche or uniswap arbitrum_one connector ✅
  • Observe the display balance upon starting the amm-arb ✅

@isreallee82
Copy link
Contributor Author

@nikspz nikspz changed the title Development Fix/ USDC.e Token not handled Jul 27, 2023
@nikspz
Copy link
Contributor

nikspz commented Jul 27, 2023

I don't think changing arbitrum token list to USDC.e actually will fix the issue, since arbitrum was unable to trade using USDC.e before (this PR #133), but was okay with USDC.E. I will re-check this fix later

@isreallee82
Copy link
Contributor Author

isreallee82 commented Jul 27, 2023

I don't think changing arbitrum token list to USDC.e actually will fix the issue, since arbitrum was unable to trade using USDC.e before (this PR #133), but was okay with USDC.E. I will re-check this fix later

alright please do but I am sure setting the symbol as USDC.E will conflit it and I noticed it was USDCE before it was refactored to USDC.E which was supposed to be USDC.e

@nikspz
Copy link
Contributor

nikspz commented Jul 27, 2023

I guess previous changes in #133 was related we used rate oracle for calculation, current version had PR updates for not to use it hummingbot/hummingbot#6472 (rate_oracle_enabled is False by default)

Test performed using rate_oracle_enabled False, successful trades:
image

@nikspz
Copy link
Contributor

nikspz commented Jul 27, 2023

@isreallee82
image
Is that nessasary change?

@nikspz nikspz changed the title Fix/ USDC.e Token not handled Fix/ unhandled error when using USDC.e Jul 27, 2023
@nikspz
Copy link
Contributor

nikspz commented Jul 27, 2023

Test performed:

  • Cloned and install fix branch + latest development branch
  • gateway connect uniswap_arbitrum_one
  • Setup simple AMM arb and observed expected behavior, filled trades when setting market USDC.e for arbitrum_one and binance paper trade as 2nd connector ✅

image

image

@isreallee82
Copy link
Contributor Author

isreallee82 commented Jul 27, 2023 via email

@isreallee82
Copy link
Contributor Author

isreallee82 commented Jul 27, 2023 via email

@isreallee82
Copy link
Contributor Author

isreallee82 commented Jul 27, 2023

Yes definitely it also resulting in the duplicates on the uiSent from my iPhoneOn 27 Jul 2023, at 9:47 AM, nikspz @.> wrote: @isreallee82 Is that nessasary change? —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.>

That must be a typo, corrected that already. The email received wasn’t showing the pics.

@isreallee82
Copy link
Contributor Author

I noticed the latest changes are trying to merge with the current pr I hope that doesn’t mean anything

@nikspz
Copy link
Contributor

nikspz commented Aug 2, 2023

@isreallee82 Could you revert changes related to the changing arbitrum_one to arbitrum?
If you want to add this changes you:

  1. Need to be assigned for Bug: Value error due to underscore in arbitrum_one #173
  2. Create the SEPARATE PR for it (use different branch on your local repo)

@isreallee82
Copy link
Contributor Author

@nikspz alright i willdo that

@isreallee82
Copy link
Contributor Author

@nikspz please can you confirm if I did the right thing

@nikspz
Copy link
Contributor

nikspz commented Aug 2, 2023

yes @isreallee82

@nikspz nikspz requested a review from fengtality August 2, 2023 19:35
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.

Checked previous commit on the PR, same changes
Test performed:

  • Cloned and installed feature branch and latest development
  • bot was able to trade using WETH-USDC.e
  • the error/warning message that happened on USDC.E usage (development branch) not happened for me on this branch (changes to USDC.e)

NOTE: with these changes it will fail to trade with USDC.E then (getting exactly same issue reported in #143)
However default token in arbitrum has name USDC.e so I think it's correct to change
https://arbiscan.io/token/0xff970a61a04b1ca14834a43f5de4533ebddb5cc8
image

@nikspz nikspz requested a review from cardosofede August 3, 2023 09:41
@nikspz
Copy link
Contributor

nikspz commented Aug 7, 2023

@isreallee82 Could you please fix the conflicts?

@isreallee82
Copy link
Contributor Author

alright @nikspz on that

@nikspz nikspz merged commit 3afcafc into hummingbot:development Aug 7, 2023
@isreallee82 isreallee82 deleted the development branch August 7, 2023 15:49
@isreallee82 isreallee82 restored the development branch August 7, 2023 15: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.

2 participants