Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Use the ChatGPT generated gas price padding function when purchasing a creator token #2471

Closed
wants to merge 1 commit into from

Conversation

jorgeavaldez
Copy link
Collaborator

Why

The simulated contract function request payload seems to have discrepancies with the quoted gas price between the Alchemy rpc and the user wallet rpc.

How

https://showtime-xyz.slack.com/archives/C02PXGK3V8D/p1698699732510189

I took whatever chat gpt did here and added it in the useCreatorTokenBuy hook.

This doesn't seem correct though. Because this is an eip 1559 transaction but gas price is not an eip 1559 thing.

We probably need to do this to the following:

Test Plan

Staging

@vercel
Copy link

vercel bot commented Oct 30, 2023

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

Name Status Preview Comments Updated (UTC)
showtime ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 30, 2023 9:34pm

@hirbod
Copy link
Contributor

hirbod commented Oct 30, 2023

There is no gasPrice returned from simulation, this has to be done differently

@hirbod hirbod closed this Oct 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants