Oracle is the solution that helps smart contracts connect to external sources of data. It doesn’t matter which blockchain a DeFi runs on. It can access data from other blockchains and even off-chain sources using an oracle.
https://crypto-economy.com/how-oracles-helped-defi-boom/