diff --git a/contracts/pools/erc20.sol b/contracts/pools/erc20.sol index bcd2efa..c43c319 100644 --- a/contracts/pools/erc20.sol +++ b/contracts/pools/erc20.sol @@ -149,13 +149,13 @@ contract PoolToken is ReentrancyGuard, DSMath, ERC20Pausable { emit LogWithdraw(tknAmt, _burnAmt); } - function addInsurance(uint tknAmt) external payable { + function addInsurance(uint tknAmt) external { baseToken.safeTransferFrom(msg.sender, address(this), tknAmt); 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 d14bdf5..1ce8460 100644 --- a/contracts/pools/eth.sol +++ b/contracts/pools/eth.sol @@ -148,7 +148,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)) {