Summary
set_max_price_deviation() is implemented and submit_price() uses it, but there is no test verifying the end-to-end flow: set a deviation threshold, submit an initial price, then verify a large price change is blocked and a small one is accepted.
Tasks
Labels: testing, forge-oracle
Summary
set_max_price_deviation()is implemented andsubmit_price()uses it, but there is no test verifying the end-to-end flow: set a deviation threshold, submit an initial price, then verify a large price change is blocked and a small one is accepted.Tasks
10_000_000(1.0 USDC)set_max_price_deviation(1000)(10% max deviation = 1000 bps)submit_pricewith11_100_000(11.1% increase) — assertPriceDeviationTooHighsubmit_pricewith10_900_000(9% increase) — assert successsubmit_pricewith9_000_000(17% decrease from 10.9M) — assertPriceDeviationTooHighset_max_price_deviation(0)to disable — verify previously blocked price now succeedsLabels:
testing,forge-oracle