DEFII
DEFII is the implementation of an investment strategy in SHIFT, responsible for executing investment strategies.
DEFII interacts with third-party protocols (execution) and interfaces with Vault within the SHIFT ecosystem.
Vault serves as the depositor, storing DEFII LP tokens and accounting for them in user positions.
DEFII utilizes a unique Logic library for each investment strategy to interact with third-party protocols.
Types of DEFII:
LocalDefii: Deployed on the same network as Vault, combining logic for interfacing with third-party protocols and Vault interaction.
RemoteDefii: Split into two smart contracts - RemoteDefiiPrincipal (Vault interaction) and RemoteDefiiAgent (third-party protocol interaction). These components communicate through a message broker like LayerZero.
Last updated