mirror of
https://github.com/Instadapp/yield-contract.git
synced 2024-07-29 21:47:29 +00:00
fixed event emit on erc20
This commit is contained in:
parent
86701e67bc
commit
99938ad737
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user