I’m working on an NFT minting contract where I want to maintain consistent USD pricing while accepting ETH payments. The challenge is that Ethereum’s value fluctuates constantly against the dollar.
Right now I’m manually updating the ETH price for minting, but this approach has issues. Every time I update the contract with new pricing data, I have to pay gas fees. Over time, these costs could really add up and make the project unsustainable.
I’m wondering if there are automated solutions for getting real-time price feeds directly into my smart contract. Are there services or oracles that can handle this without requiring constant manual intervention?
Another option I considered is moving all the price calculations to my frontend application, but that seems like it would create security vulnerabilities since users could potentially manipulate the pricing logic.