-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/feat/licence' into refactor/subs…
…cription-id
- Loading branch information
Showing
2 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
pragma solidity ^0.8.0; | ||
|
||
import {Id, MarketParams} from "../../lib/morpho-blue/src/interfaces/IMorpho.sol"; | ||
|
||
/// @title EventsLib | ||
/// @author Morpho Labs | ||
/// @custom:contact [email protected] | ||
/// @notice Library exposing events. | ||
library EventsLib { | ||
event Liquidate( | ||
Id indexed id, | ||
address indexed caller, | ||
address indexed borrower, | ||
uint256 repaidAssets, | ||
uint256 repaidShares, | ||
uint256 seizedAssets, | ||
uint256 badDebtAssets, | ||
uint256 badDebtShares | ||
); | ||
|
||
event Subscribe( | ||
address indexed borrower, Id indexed marketId, uint256 slltv, uint256 closeFactor, uint256 liquidationIncentive | ||
); | ||
|
||
event Unsubscribe(address indexed borrower, Id indexed marketId); | ||
} |