mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
convert _calculateFromAmount to view function
This commit is contained in:
parent
bfe984d5ec
commit
6cff35529b
|
@ -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_;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user