diff --git a/contracts/pools/erc20.sol b/contracts/pools/erc20.sol index dc17fc0..54f5693 100644 --- a/contracts/pools/erc20.sol +++ b/contracts/pools/erc20.sol @@ -158,13 +158,13 @@ contract PoolToken is ReentrancyGuard, DSMath, ERC20Pausable { emit LogWithdraw(tknAmt, _burnAmt, _feeAmt); } - function addInsurance(uint tknAmt) external payable { + function addInsurance(uint tknAmt) external { baseToken.safeTransferFrom(msg.sender, address(this), tknAmt); insuranceAmt = add(insuranceAmt, tknAmt); emit LogAddInsurance(tknAmt); } - function withdrawInsurance(uint tknAmt) external payable { + function withdrawInsurance(uint tknAmt) external { require(msg.sender == instaIndex.master(), "not-master"); require(tknAmt <= insuranceAmt || tknAmt == uint(-1), "not-enough-insurance"); if (tknAmt == uint(-1)) { diff --git a/contracts/pools/eth.sol b/contracts/pools/eth.sol index b4716a0..f5b54db 100644 --- a/contracts/pools/eth.sol +++ b/contracts/pools/eth.sol @@ -157,7 +157,7 @@ contract PoolToken is ReentrancyGuard, ERC20Pausable, DSMath { emit LogAddInsurance(tknAmt); } - function withdrawInsurance(uint tknAmt) external payable { + function withdrawInsurance(uint tknAmt) external { require(msg.sender == instaIndex.master(), "not-master"); require(tknAmt <= insuranceAmt || tknAmt == uint(-1), "not-enough-insurance"); if (tknAmt == uint(-1)) {