From 3feb331090eaa2d647c5f62e25ae89046383628a Mon Sep 17 00:00:00 2001 From: Samyak Jain Date: Mon, 17 Jun 2019 18:15:01 +0530 Subject: [PATCH] minor fix --- contracts/bridges/MakerCompound.sol | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/contracts/bridges/MakerCompound.sol b/contracts/bridges/MakerCompound.sol index ad0dc36..b52ce42 100644 --- a/contracts/bridges/MakerCompound.sol +++ b/contracts/bridges/MakerCompound.sol @@ -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) {