Mantis can be used to leverage any asset on the Aave protocol in a single transaction. It uses flashloans to borrow additional funds required to increase exposure, 1inch to swap tokens and then borrows against the deposited asset to pay back the flashloan.
Users can specify the asset they wish to leverage and the asset they wish to leverage over. And can view the resulting positions on the portal real time.
The client app has been built using React.
It interacts with a hosted Hardhat mainnet forked node.
Aave Credit Delegation
Contracts written in Solidity.
Mantis uses Credit Delegation on Aave. Credit delegation allows Mantis to borrow on behalf of the user. It removes the need to deploy a proxy. This enables the user to view positions on the Aave dashboard as well as there is no proxy involved.
Leverage factor is calculated using the ltv of the leverged token.
Mantis has been deployed to a hardhat node(mainnet fork) to enable seemless testing of the protocol. It can anytime be ported to the Mainnet.