From c21c942d2531ab1147b28c0bccf4ea9d46792383 Mon Sep 17 00:00:00 2001 From: Thrilok Kumar Date: Sun, 30 Aug 2020 09:46:08 +0530 Subject: [PATCH] Removed payable from unused functions --- contracts/pools/erc20.sol | 4 ++-- contracts/pools/eth.sol | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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)) {