From 822db2ae1e41d77c1738f7781748cd7ffed0d5ba Mon Sep 17 00:00:00 2001 From: Samyak Jain Date: Sat, 28 Sep 2019 01:45:06 +0530 Subject: [PATCH] added comments --- contracts/bridges/Liquidity.sol | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/contracts/bridges/Liquidity.sol b/contracts/bridges/Liquidity.sol index 63d2aaa..6a7a359 100644 --- a/contracts/bridges/Liquidity.sol +++ b/contracts/bridges/Liquidity.sol @@ -86,6 +86,9 @@ contract Helper is DSMath { contract ProvideLiquidity is Helper { + /** + * @dev user's address => CToken Address => CToken Amount Deposited + */ mapping (address => mapping (address => uint)) public deposits; event LogDepositCToken(address user, address ctknAddr, uint amt); @@ -132,7 +135,7 @@ contract AccessLiquidity is ProvideLiquidity { } /** - * @dev Borrow tokens and use them on InstaDApp's contract wallets + * @dev Borrow token and use them on InstaDApp's contract wallets */ function borrowTknAndTransfer(address ctknAddr, uint tknAmt) public isUserWallet { if (tknAmt > 0) { @@ -151,7 +154,7 @@ contract AccessLiquidity is ProvideLiquidity { } /** - * @dev Payback borrow tokens + * @dev Payback borrowed token and from InstaDApp's contract wallets */ function payBorrowBack(address ctknAddr, uint tknAmt) public payable isUserWallet { if (tknAmt > 0) { @@ -218,11 +221,6 @@ contract Liquidity is AdminStuff { * @dev setting up all required token approvals */ constructor() public { - // address[] memory enterMarketArr = new address[](3); - // enterMarketArr[0] = cEth; - // enterMarketArr[1] = cDai; - // enterMarketArr[2] = cUsdc; - // enterMarket(enterMarketArr); ERC20Interface(daiAddr).approve(cDai, uint(-1)); ERC20Interface(usdcAddr).approve(cUsdc, uint(-1)); ERC20Interface(cDai).approve(cDai, uint(-1));