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

Optimize conversions: AVNU integration on checkout #774

Open
Th0rgal opened this issue May 13, 2024 · 2 comments
Open

Optimize conversions: AVNU integration on checkout #774

Th0rgal opened this issue May 13, 2024 · 2 comments
Labels
🍒 Nice to have Nice to have but not a priority

Comments

@Th0rgal
Copy link
Member

Th0rgal commented May 13, 2024

Still an idea atm: if a user doesn't have enough of a single compatible token to pay for his domain but has enough in total balance, use an aggregator like AVNU to offer him to sell certain other tokens to get his domain (everything in a multicall selecting the cheapest route).

@Th0rgal Th0rgal added the 🍒 Nice to have Nice to have but not a priority label May 13, 2024
@Th0rgal Th0rgal changed the title AVNU integration on checkout Optimize conversions: AVNU integration on checkout May 13, 2024
@Ugo-X
Copy link

Ugo-X commented May 30, 2024

Good afternoon, my name is Ugo, a fullstack dev. I am positive i can handle this, please can i be assigned the issue?

@MatiasAchucarro
Copy link

I am a passionate and results-driven web developer, currently deepening my knowledge in Web3 technologies, Cairo, and open-source development through Dojo Coding. My skill set includes experience in JavaScript, React, HTML, CSS, C#, and .NET Entity Framework. I am also proficient with tools like Git, GitHub, SQL Server, and Postman. My focus has been on building solid web applications—from task lists to full-fledged CRUD systems—integrating front-end, back-end, and databases. I already have a contribution in OnlyDust for Starknet Quest, and I am excited to continue learning and collaborating on innovative projects.

To optimize conversions by integrating AVNU into the checkout process, I propose the following steps:

Check balances: When the user reaches the checkout, we check their balances for all compatible tokens.

Calculate the shortfall: If they don’t have enough of one token, we calculate how much is missing and identify other tokens that can be sold to cover the difference.

Use AVNU: We use AVNU to swap those other tokens, selecting the cheapest route for conversion.

Multicall: All of this happens in a single transaction to make it quick and easy for the user, so they don’t have to perform multiple steps.

By implementing this solution, we can enhance the user experience by seamlessly converting their available tokens to complete the purchase, making the checkout process more efficient and user-friendly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 Nice to have Nice to have but not a priority
Projects
None yet
Development

No branches or pull requests

3 participants