We use Coingecko apis to fetch prices for the underlying assets. Locally, we fixed the price to be 1300$ for all the underlying, but the price is different on chain. This means that you can actually pass a wrong strike price if oracle and hardcoded prices are not the same.
I suggest retrieving prices from oracles, at least for the Buyer side of the app.
We use Coingecko apis to fetch prices for the underlying assets. Locally, we fixed the price to be 1300$ for all the underlying, but the price is different on chain. This means that you can actually pass a wrong strike price if oracle and hardcoded prices are not the same.
I suggest retrieving prices from oracles, at least for the Buyer side of the app.