minor fix

This commit is contained in:
Samyak Jain 2019-06-17 18:15:01 +05:30
parent e60fbc3033
commit 3feb331090

View File

@ -79,8 +79,7 @@ contract Helper is DSMath {
/**
* @dev setting allowance to compound for the "user proxy" if required
*/
function setApproval(address erc20, uint srcAmt, address to) public {
require(isAdmin[msg.sender] == true, "Not-Admin");
function setApproval(address erc20, uint srcAmt, address to) internal {
ERC20Interface erc20Contract = ERC20Interface(erc20);
uint tokenAllowance = erc20Contract.allowance(address(this), to);
if (srcAmt > tokenAllowance) {