Bounty: Clean up `gateway balance` command and add allowances
Description (REVISED)
Given the gateway balance issue below, I propose the following modifications to this bounty:
-
Change
gateway balanceso that it reports balances for each connector (exchange_chain_network), rather than eachchain_network. It should use the designated wallet for that connector that thegateway connectcommand lists. -
The output of this command should be a table of balances and allowances for each connector. In addition to the native token, it should also show any tokens that the user adds via
gateway connector-tokens.
Connector: uniswap_ethereum_mainnet
Wallet: 0x...
Symbol Balance Allowancce
ETH
HBOT
WETH
- Accept an optional
connectorparameter in the form ofexchange_chain_network. In that case, the command only reports balances and allowances for that connector.
This would remove the need for a separate gateway allowance command.
Bounty
- Sponsor: Hummingbot Foundation
- Bounty amount: 50,000 HBOT
- Developer portion: 100%
- Allocation: Chain - Ethereum
I will take this
Hey @isreallee82 - I realized that we should pause and rethink these changes to gateway balance and wanted to let you know before you do more work on this PR and the new allowances bounty. The reason is that I didn't consider the case where users add different wallets for different connectors on the same network.
In this case, gateway balance would only show balances for the first connected wallet, and there's no way for users to see balances for the second wallet.
I'll think about this a bit more and address what should be done in this bounty.
Oh true! Okay @fengtality
@isreallee82 I revised the description to describe what I think should be done to clean this up.
alright @fengtality noted!
pr #6787 @nikspz @fengtality
Thanks for your participation, the bounty has been sent to @isreallee82. The fix has been deployed on development branch and hummingbot version 1.27.0