mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
Remove console
This commit is contained in:
parent
86741c7afd
commit
7f95f03611
|
@ -12,9 +12,7 @@ import { Helpers } from "./helpers.sol";
|
||||||
import { Events } from "./events.sol";
|
import { Events } from "./events.sol";
|
||||||
import { SparkInterface, DTokenInterface } from "./interface.sol";
|
import { SparkInterface, DTokenInterface } from "./interface.sol";
|
||||||
|
|
||||||
import "hardhat/console.sol";
|
abstract contract SparkConnector is Events, Helpers {
|
||||||
|
|
||||||
abstract contract SparkResolver is Events, Helpers {
|
|
||||||
/**
|
/**
|
||||||
* @dev Deposit ETH/ERC20_Token.
|
* @dev Deposit ETH/ERC20_Token.
|
||||||
* @notice Deposit a token to Sparklend for lending / collaterization.
|
* @notice Deposit a token to Sparklend for lending / collaterization.
|
||||||
|
@ -264,9 +262,7 @@ abstract contract SparkResolver is Events, Helpers {
|
||||||
address _token = isEth ? wethAddr : token;
|
address _token = isEth ? wethAddr : token;
|
||||||
|
|
||||||
TokenInterface tokenContract = TokenInterface(_token);
|
TokenInterface tokenContract = TokenInterface(_token);
|
||||||
console.log(_amt);
|
|
||||||
_amt = _amt == uint256(-1) ? getPaybackBalance(_token, rateMode) : _amt;
|
_amt = _amt == uint256(-1) ? getPaybackBalance(_token, rateMode) : _amt;
|
||||||
console.log(_amt);
|
|
||||||
|
|
||||||
if (isEth) convertEthToWeth(isEth, tokenContract, _amt);
|
if (isEth) convertEthToWeth(isEth, tokenContract, _amt);
|
||||||
|
|
||||||
|
@ -514,6 +510,6 @@ abstract contract SparkResolver is Events, Helpers {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
contract ConnectV2Spark is SparkResolver {
|
contract ConnectV2Spark is SparkConnector {
|
||||||
string public constant name = "Spark-v1.0";
|
string public constant name = "Spark-v1.0";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user