mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
added comments
This commit is contained in:
parent
ea78b1ccb4
commit
c704a26ef2
|
@ -2,15 +2,15 @@
|
||||||
pragma solidity ^0.7.6;
|
pragma solidity ^0.7.6;
|
||||||
pragma experimental ABIEncoderV2;
|
pragma experimental ABIEncoderV2;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @title Compound-Import.
|
||||||
|
* @dev Lending & Borrowing.
|
||||||
|
*/
|
||||||
|
|
||||||
import { TokenInterface, AccountInterface } from "../../common/interfaces.sol";
|
import { TokenInterface, AccountInterface } from "../../common/interfaces.sol";
|
||||||
import { CompoundHelper } from "./helpers.sol";
|
import { CompoundHelper } from "./helpers.sol";
|
||||||
import { Events } from "./events.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 {
|
contract CompoundImportResolver is CompoundHelper {
|
||||||
/**
|
/**
|
||||||
* @notice this function performs the import of user's Compound positions into its DSA
|
* @notice this function performs the import of user's Compound positions into its DSA
|
||||||
|
|
Loading…
Reference in New Issue
Block a user