Price feed (oracle)
What is oracle?
Oracle is data saved in Lenfi Oracle Validator. Since data has an expiration time of 20 minutes - it must be updated occasionally. Price is averaged out of 2 intervals lasting at least 10 minutes.
Most of the Oracle updates will be initiated by the sequencer bot. However, to update, a price transaction must be generated with reference to the input with DEX pool NFT in it. The data in the input will be considered as a source of truth. Newly updated data is stored together with Oracle NFT in the Oracle validator.
Oracle price update