Skip to content

Margin trading using smart wallets for lenders without delegated borrowing

License

Notifications You must be signed in to change notification settings

1delta-DAO/contracts-smart-account

Repository files navigation

Margin Swap Contract Library

Contains contracts that allows users to create accounts from a factory. These accounts can then be used to interact with DEXes like UniswapV3 or lending protocols like Compound to create leveraged positions in a single click.

It contains two implementations:

  1. Delegated Diamond Account Factory - Users can create account contracts that are used to interact with compound-type protocols. This is necessary as compound does not have a delegated borrowin function.
  2. Diamond Broker - Users interact with a brokerage contract that builds margin positions using protocols like AAVE which implement delegated borrowing functions.

About

Margin trading using smart wallets for lenders without delegated borrowing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published