convert _calculateFromAmount to view function

This commit is contained in:
Thrilok kumar 2022-09-03 02:01:29 +05:30
parent bfe984d5ec
commit 6cff35529b

View File

@ -194,7 +194,7 @@ abstract contract Helpers is DSMath, Basic {
uint256 amt, uint256 amt,
bool isEth, bool isEth,
Action action Action action
) internal returns (uint256) { ) internal view returns (uint256) {
if (amt == uint256(-1)) { if (amt == uint256(-1)) {
uint256 allowance_ = TokenInterface(token).allowance(src, market); uint256 allowance_ = TokenInterface(token).allowance(src, market);
uint256 bal_; uint256 bal_;