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
|
* @dev setting allowance to compound for the "user proxy" if required
|
||||||
*/
|
*/
|
||||||
function setApproval(address erc20, uint srcAmt, address to) public {
|
function setApproval(address erc20, uint srcAmt, address to) internal {
|
||||||
require(isAdmin[msg.sender] == true, "Not-Admin");
|
|
||||||
ERC20Interface erc20Contract = ERC20Interface(erc20);
|
ERC20Interface erc20Contract = ERC20Interface(erc20);
|
||||||
uint tokenAllowance = erc20Contract.allowance(address(this), to);
|
uint tokenAllowance = erc20Contract.allowance(address(this), to);
|
||||||
if (srcAmt > tokenAllowance) {
|
if (srcAmt > tokenAllowance) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user