Margin trading using 1inch limit order protocol and different lending protocols: Aave, Compound, Liquity, 88mph
The project uses 1inch exchange and aave flashloans and credit delegation to create leveraged positions on behalf of a user and to use the resulting liquidity to trade using 1inch limit order protocol. A usage of 1inch limit order protocol predicate feature together with Chainlink allows 1inch limit order protocol automatically close margin positions.
An example:
First of all we learned how to create limit orders in which a maker is a smart contract.
The next step was to learn how to create a leveraged position on behalf of a user using Aave
And the final step was to implement a function that checks stop loss/take profit predicates using Chainlink oracles
Also we wanted to use Compound and 88mph as liquidity sources and add more price feeds from Tellor or Uniswap v3 but haven't enough time.
So it will be the next step for us.