Removed payable from unused functions

This commit is contained in:
Thrilok Kumar 2020-08-30 09:46:08 +05:30
parent b73c7be2e1
commit c21c942d25
2 changed files with 3 additions and 3 deletions

View File

@ -149,13 +149,13 @@ contract PoolToken is ReentrancyGuard, DSMath, ERC20Pausable {
emit LogWithdraw(tknAmt, _burnAmt); emit LogWithdraw(tknAmt, _burnAmt);
} }
function addInsurance(uint tknAmt) external payable { function addInsurance(uint tknAmt) external {
baseToken.safeTransferFrom(msg.sender, address(this), tknAmt); baseToken.safeTransferFrom(msg.sender, address(this), tknAmt);
insuranceAmt += tknAmt; insuranceAmt += tknAmt;
emit LogAddInsurance(tknAmt); emit LogAddInsurance(tknAmt);
} }
function withdrawInsurance(uint tknAmt) external payable { function withdrawInsurance(uint tknAmt) external {
require(msg.sender == instaIndex.master(), "not-master"); require(msg.sender == instaIndex.master(), "not-master");
require(tknAmt <= insuranceAmt || tknAmt == uint(-1), "not-enough-insurance"); require(tknAmt <= insuranceAmt || tknAmt == uint(-1), "not-enough-insurance");
if (tknAmt == uint(-1)) { if (tknAmt == uint(-1)) {

View File

@ -148,7 +148,7 @@ contract PoolToken is ReentrancyGuard, ERC20Pausable, DSMath {
emit LogAddInsurance(tknAmt); emit LogAddInsurance(tknAmt);
} }
function withdrawInsurance(uint tknAmt) external payable { function withdrawInsurance(uint tknAmt) external {
require(msg.sender == instaIndex.master(), "not-master"); require(msg.sender == instaIndex.master(), "not-master");
require(tknAmt <= insuranceAmt || tknAmt == uint(-1), "not-enough-insurance"); require(tknAmt <= insuranceAmt || tknAmt == uint(-1), "not-enough-insurance");
if (tknAmt == uint(-1)) { if (tknAmt == uint(-1)) {