Skip to content

test / gateway-core-connectors#7367

Merged
fengtality merged 29 commits intodevelopmentfrom
feat/gateway-core
Jan 29, 2025
Merged

test / gateway-core-connectors#7367
fengtality merged 29 commits intodevelopmentfrom
feat/gateway-core

Conversation

@fengtality
Copy link
Contributor

Test branch that integrates with hummingbot/gateway#380

@notion-workspace
Copy link

Gateway Core

1 similar comment
@notion-workspace
Copy link

Gateway Core

try:
resp: Dict[str, Any] = await self._get_gateway_instance().get_price(
self.chain, self.network, self.connector_name, base, quote, amount, side
)
Copy link
Contributor

Choose a reason for hiding this comment

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

to remove commented code

Copy link
Contributor

@cardosofede cardosofede left a comment

Choose a reason for hiding this comment

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

a few comments to improve the PR but we can work on it next on the next dev since the gateway is already merged.

)
transaction_hash: Optional[str] = order_result.get("txHash")
if transaction_hash is not None and transaction_hash != "":
# gas_cost: Decimal = Decimal(order_result.get("gasCost"))
Copy link
Contributor

Choose a reason for hiding this comment

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

to remove commented code

self._in_flight_orders_snapshot = {k: copy.copy(v) for k, v in self._order_tracker.all_orders.items()}
self._in_flight_orders_snapshot_timestamp = self.current_timestamp

async def _update_balances(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe is not necessary 2 methods that do the same thing, usually the public method should call the private one

self._get_gas_estimate_task.cancel()
self._get_chain_info_task = None

async def _status_polling_loop(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

this method can be abstracted in the base class

self._get_gas_estimate_task.cancel()
self._get_chain_info_task = None

async def _status_polling_loop(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

this method can be abstracted in the base class

"buy_fee": self._last_buy_fee,
"sell_fee": self._last_sell_fee,
"total_fee": self._last_tx_cost,
# "amm_gas_price": self.config.gas_conversion_price,
Copy link
Contributor

Choose a reason for hiding this comment

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

why we comment this?

@fengtality
Copy link
Contributor Author

a few comments to improve the PR but we can work on it next on the next dev since the gateway is already merged.

thanks - I will address these comments in the next release.

@fengtality fengtality merged commit e606c1b into development Jan 29, 2025
2 checks passed
@fengtality fengtality deleted the feat/gateway-core branch January 29, 2025 23:24
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.

4 participants