如何从 oracle 获取价格并在另一个智能合约中保持最新?

How to feed price from oracle and keep it up to date in another smart-contract?

用户与合约进行交互,我需要从这次交互中收取费用。像 1 美元。 我需要稳定的等值 1 美元的 ETH。

有没有办法在(!)用户与合约交互之前更新这个价格代码(ETH/USD)(一天一次就足够了)?所以当他签字的时候,我可以从他的地址索要等值的 1 美元?

Yes. just get the price in the function at first place. by