feat: minor fix

This commit is contained in:
Shriya Tyagi 2024-02-15 03:26:32 +04:00
parent 79d7a4aaa8
commit 749e78a335
2 changed files with 4 additions and 4 deletions

View File

@ -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";
} }

View File

@ -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";
} }