added comments

This commit is contained in:
pradyuman-verma 2022-03-24 01:28:11 +05:30
parent ea78b1ccb4
commit c704a26ef2
No known key found for this signature in database
GPG Key ID: E36FD6BC8923221F

View File

@ -2,15 +2,15 @@
pragma solidity ^0.7.6;
pragma experimental ABIEncoderV2;
/**
* @title Compound-Import.
* @dev Lending & Borrowing.
*/
import { TokenInterface, AccountInterface } from "../../common/interfaces.sol";
import { CompoundHelper } from "./helpers.sol";
import { Events } from "./events.sol";
// 1. Get info for all the assets the user has supplied as collateral and the assets he borrowed.
// 2. Using the flash loan funds, pay back the user's debt in the EOA account.
// 3. After paying the debt, transfer the user's tokens from EOA to DSA.
// 4. Then borrow debt of same tokens but include flash loan fee in it.
contract CompoundImportResolver is CompoundHelper {
/**
* @notice this function performs the import of user's Compound positions into its DSA