mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
feat: minor fix
This commit is contained in:
parent
79d7a4aaa8
commit
749e78a335
|
@ -268,7 +268,7 @@ abstract contract AaveResolver is Events, Helpers {
|
||||||
? address(this).balance
|
? address(this).balance
|
||||||
: tokenContract.balanceOf(address(this));
|
: tokenContract.balanceOf(address(this));
|
||||||
uint256 _amtDebt = getPaybackBalance(_token, rateMode);
|
uint256 _amtDebt = getPaybackBalance(_token, rateMode);
|
||||||
_amt = _amtDSA <= _amtDebt ? _amtDSA : _amtDebt;
|
_amt = _amtDSA > _amtDebt ? _amtDebt : _amtDSA;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isEth) convertEthToWeth(isEth, tokenContract, _amt);
|
if (isEth) convertEthToWeth(isEth, tokenContract, _amt);
|
||||||
|
@ -531,5 +531,5 @@ abstract contract AaveResolver is Events, Helpers {
|
||||||
}
|
}
|
||||||
|
|
||||||
contract ConnectV2AaveV3 is AaveResolver {
|
contract ConnectV2AaveV3 is AaveResolver {
|
||||||
string public constant name = "AaveV3-v1.1";
|
string public constant name = "AaveV3-v1.2";
|
||||||
}
|
}
|
||||||
|
|
|
@ -268,7 +268,7 @@ abstract contract SparkConnector is Events, Helpers {
|
||||||
? address(this).balance
|
? address(this).balance
|
||||||
: tokenContract.balanceOf(address(this));
|
: tokenContract.balanceOf(address(this));
|
||||||
uint256 _amtDebt = getPaybackBalance(_token, rateMode);
|
uint256 _amtDebt = getPaybackBalance(_token, rateMode);
|
||||||
_amt = _amtDSA <= _amtDebt ? _amtDSA : _amtDebt;
|
_amt = _amtDSA > _amtDebt ? _amtDebt : _amtDSA;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isEth) convertEthToWeth(isEth, tokenContract, _amt);
|
if (isEth) convertEthToWeth(isEth, tokenContract, _amt);
|
||||||
|
@ -526,5 +526,5 @@ abstract contract SparkConnector is Events, Helpers {
|
||||||
}
|
}
|
||||||
|
|
||||||
contract ConnectV2Spark is SparkConnector {
|
contract ConnectV2Spark is SparkConnector {
|
||||||
string public constant name = "Spark-v1.0";
|
string public constant name = "Spark-v1.1";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user