mirror of
https://github.com/Instadapp/smart-contract.git
synced 2024-07-29 22:08:07 +00:00
minor fix
This commit is contained in:
parent
e60fbc3033
commit
3feb331090
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user