This guide outlines the process for integrating new DeFi protocols with the Yieldinator Facet through the adapter pattern.
Overview
The Yieldinator Facet is designed to be extensible, allowing for easy integration of new yield-generating protocols. This is achieved through a standardized adapter interface that abstracts away protocol-specific details while providing a consistent API for the Yieldinator Facet to interact with.
Adapter Implementation Process
1. Create a New Adapter Contract
Start by creating a new contract that inherits from YieldinatorAdapter: