fleekxyz/non-fungible-apps
Serverless: Gas estimator for the SetTokenVerified contract call in build and mint handlers
Open
#274 opened on Jun 7, 2023
backendenhancementgood first issuehelp wantedquality-of-liferefactor
Repository metrics
- Stars
- (145 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
Right now, the gas cost is comfortably hard-coded. I don't think we are ever going to need more than what I have set currently, but we also need to take the network status into account. It would be cool to look into how we can set the gas costs and priority fees automatically based on the current network status. We can estimate the setTokenVerified function's gas cost and use it to get a solid base and update the priority fee based on the network condition.