I was asked: How do smart contracts get off-chain prices?
I usually answer like this: Prices are typically posted on-chain when the deviation reaches a set threshold or at a fixed time. Using the spot price from a single DEX pool as a price feed is risky: when the pool is small, one large trade can skew the price.
$LINK 11.495(+0.73%)
Have you ever run into a similar pitfall? Share your story to help warn others.

#LINK