So, the way it should work, the contract should be able to know what the price is at the end of the day before determining if there was a winner or not. I understand that that is an off-chain data, you can get it on-chain with chainlink, see this https://docs.chain.link/docs/price-feeds-api-reference/
So, the way it should work, the contract should be able to know what the price is at the end of the day before determining if there was a winner or not. I understand that that is an off-chain data, you can get it on-chain with chainlink, see this https://docs.chain.link/docs/price-feeds-api-reference/