Migrating from Chainlink Oracles
Last updated
Last updated
Already using Chainlink Oracles? Here's how you can quickly and easily migrate to Gelato Oracles.
While this migration option is available, be aware that it can lead to higher gas costs and added development intricacies. We advise this route only if:
You've already deployed a Chainlink Oracle Consumer.
Your Chainlink Oracle Consumer has the capability to update its Aggregator address.
Otherwise, for new integrations, we recommend directly implementing the Gelato Oracles.
If you're set on migrating an existing Chainlink Oracle Consumer:
Begin by creating your Oracle task following the steps in the Quick Start guide. In the final step, make sure to select Chainlink Compatibility Mode
You will then be asked to deploy your Adapter contract:
Once deployed, the app will show you the address to which the adapter contract was deployed. You now need to replace the old Aggregator address in your contract by this address.
Here’s a brief example of how you might implement such a function to update the aggregator in your Consumer Contract: