Skip to content

Refactor pool address#64

Merged
gkoch78 merged 16 commits intomainfrom
refactor-pool-address
Feb 13, 2025
Merged

Refactor pool address#64
gkoch78 merged 16 commits intomainfrom
refactor-pool-address

Conversation

@gkoch78
Copy link
Contributor

@gkoch78 gkoch78 commented Feb 11, 2025

No description provided.

price = self._get_token_price(token_out=token_out, token_in=token_in)
if not price:
raise ValueError(f"No V2 price found for {token_out.symbol}/{token_in.symbol}")
price = self._get_price_from_pool(pair_address=pool_address, token_out=token_out, token_in=token_in)
Copy link
Contributor

@aflament aflament Feb 13, 2025

Choose a reason for hiding this comment

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

Still needed given that we already have a quote?

def _swap(
self, *, token_out: TokenInfo, token_in: TokenInfo, address: str, wei_in: int, slippage_bps: int
self,
*,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
*,

@gkoch78 gkoch78 marked this pull request as ready for review February 13, 2025 00:12
f"Swapping {amount_in} {token_in_info.symbol} ({token_in_info.address}) for {token_out_info.symbol} ({token_out_info.address}) on {chain}"
)
# logger.info(
# f"Swapping {amount_in} {token_in_info.symbol} ({token_in_info.address}) for {token_out_info.symbol} ({token_out_info.address}) on {chain}"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
# f"Swapping {amount_in} {token_in_info.symbol} ({token_in_info.address}) for {token_out_info.symbol} ({token_out_info.address}) on {chain}"
# f"execute {quote}"

@gkoch78 gkoch78 merged commit a58f8dd into main Feb 13, 2025
2 checks passed
@gkoch78 gkoch78 deleted the refactor-pool-address branch February 13, 2025 20:28
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