Skip to content

Conversation

@tusharsoni
Copy link

This PR adds cross-chain payments to Jellybeans using ETH on Base (only when they don't have funds on OP).

Problem
Since the Jellybeans contract is deployed on OP, it requires users to have funds on OP to submit a guess. However, if a user does not have ETH readily available on OP, they will have to bridge funds first.

Solution
We can use cross-chain calls here to let users pay with ETH on other chains (ex. Base) even if the guess is submitted on OP. In this case, we use Glide to do so.

UX Behavior
When a user tries to submit a guess, we check if they have enough ETH on OP to complete the transaction. If so, we continue with the transaction normally.

Otherwise, we use Glide to submit a cross-chain call and let users pay with ETH on Base.

Future improvements
[ ] We can add support for more chains. See a list of supported chains here.
[ ] We can let users pay with other tokens as well such as USDC, Degen, Moxie, etc. This will require UX changes with a token picker.

@vercel
Copy link

vercel bot commented Oct 5, 2024

@tusharsoni is attempting to deploy a commit to the Nick Brodeur's projects Team on Vercel.

A member of the Team first needs to authorize it.

ncale pushed a commit that referenced this pull request Dec 14, 2024
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.

1 participant