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

feat: add indicative price #398

Merged
merged 6 commits into from
Feb 23, 2025
Merged

feat: add indicative price #398

merged 6 commits into from
Feb 23, 2025

Conversation

anihamde
Copy link
Contributor

@anihamde anihamde commented Feb 20, 2025

This PR enables ER to provide indicative prices when the user_wallet_address is not specified. It does this in a somewhat hacky way, reusing the get_quote api for ease.

TODO:

  • update SDKs
  • bump versions ahead of deployment

Copy link

vercel bot commented Feb 20, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
swap-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 21, 2025 4:39pm

@@ -1,6 +1,6 @@
[package]
name = "auction-server"
version = "0.18.1"
version = "0.18.2"
Copy link
Contributor

Choose a reason for hiding this comment

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

Use 0.19 as api is changed

@@ -401,18 +402,27 @@ impl Service<ChainTypeSvm> {
bids.sort_by(|a, b| a.amount.cmp(&b.amount));
}
}

let indicative_price_request =
Copy link
Contributor

Choose a reason for hiding this comment

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

isn't it better to make the user_wallet_address optional in the QuoteCreate entity?

I think it we do so, some checks will be removed in this function :-?

@danimhr
Copy link
Contributor

danimhr commented Feb 21, 2025

I think you should update the swap UI we created for test to fix the Vercel error

@anihamde anihamde merged commit 5c0ea76 into main Feb 23, 2025
3 checks passed
@anihamde anihamde deleted the feat/indicative-price branch February 23, 2025 11:39
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