fixed event emit on erc20

This commit is contained in:
Sowmay Jain 2020-08-31 03:38:58 +10:00
parent 86701e67bc
commit 99938ad737

View File

@ -39,6 +39,7 @@ contract PoolToken is ReentrancyGuard, DSMath, ERC20Pausable {
event LogDeposit(uint depositAmt, uint poolMintAmt);
event LogWithdraw(uint withdrawAmt, uint poolBurnAmt, uint feeAmt);
event LogAddInsurance(uint amount);
event LogWithdrawInsurance(uint amount);
event LogPausePool(bool);
IERC20 public immutable baseToken; // Base token. Eg:- DAI, USDC, etc.
@ -180,7 +181,7 @@ contract PoolToken is ReentrancyGuard, DSMath, ERC20Pausable {
require(tknAmt <= insuranceAmt, "not-enough-insurance");
baseToken.safeTransfer(msg.sender, tknAmt);
insuranceAmt = sub(insuranceAmt, tknAmt);
emit LogAddInsurance(tknAmt);
emit LogWithdrawInsurance(tknAmt);
}
function shutdown() external {