Roles - Credit LP
For a user perspective of Credit LP actions, visit this page.
Summary
The credit LP deposits their assets from underlying lending protocols (aTokens from Aave, eTokens from Euler, etc.) into Twyne to receive extra yield. These tokens are then borrowed by Twyne borrowers, who pay the credit LPs yield.
Function Calls
The two main actions for credit LPs are deposit(uint256,address)(uint)
and withdraw(uint,address,address)(uint)
. Since the credit vault is using the same code as Euler’s EVK, you can reference the EVK codebase to understand additional functions that are available. Certain EVK functions have hooks added to modify how they work - for example, the liquidate function in the EVK can ONLY be called on a Twyne collateral vault under certain conditions (the collateral vault has been externally liquidated).