Skip to content

Commit

Permalink
Merge pull request #49 from tetu-io/dev-dvpublic
Browse files Browse the repository at this point in the history
Add param 'uncoveredAmount' to LossCovered
  • Loading branch information
belbix authored Nov 28, 2023
2 parents 1266c38 + b88d560 commit 4d39be9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/vault/TetuVaultV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ contract TetuVaultV2 is ERC4626Upgradeable, ControllableV3, ITetuVaultV2 {
event FeeChanged(uint depositFee, uint withdrawFee);
event DoHardWorkOnInvestChanged(bool oldValue, bool newValue);
event FeeTransfer(uint amount);
event LossCovered(uint amount);
event LossCovered(uint amount, uint requestedAmount, uint balance);
event WithdrawRequested(address sender, uint startBlock);
event WithdrawRequestBlocks(uint blocks);

Expand Down Expand Up @@ -444,7 +444,7 @@ contract TetuVaultV2 is ERC4626Upgradeable, ControllableV3, ITetuVaultV2 {
uint balance = _asset.balanceOf(address(_insurance));
uint toRecover = Math.min(amount, balance);
_insurance.transferToVault(toRecover);
emit LossCovered(toRecover);
emit LossCovered(toRecover, amount, balance);
}

// *************************************************************
Expand Down

0 comments on commit 4d39be9

Please sign in to comment.