-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into refactor/create-market
- Loading branch information
Showing
2 changed files
with
111 additions
and
11 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,63 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.0; | ||
|
||
import {Id, Market} from "src/libraries/MarketLib.sol"; | ||
|
||
library Events { | ||
event SupplyCollateral(Id indexed id, address indexed caller, address indexed onBehalf, uint256 amount); | ||
event WithdrawCollateral( | ||
Id indexed id, address caller, address indexed onBehalf, address indexed receiver, uint256 amount | ||
); | ||
|
||
event Supply(Id indexed id, address indexed caller, address indexed onBehalf, uint256 amount, uint256 shares); | ||
event Withdraw( | ||
Id indexed id, | ||
address caller, | ||
address indexed onBehalf, | ||
address indexed receiver, | ||
uint256 amount, | ||
uint256 shares | ||
); | ||
|
||
event Borrow( | ||
Id indexed id, | ||
address caller, | ||
address indexed onBehalf, | ||
address indexed receiver, | ||
uint256 amount, | ||
uint256 shares | ||
); | ||
event Repay(Id indexed id, address indexed caller, address indexed onBehalf, uint256 amount, uint256 shares); | ||
|
||
event Liquidate( | ||
Id indexed id, | ||
address indexed caller, | ||
address indexed borrower, | ||
uint256 repaid, | ||
uint256 repaidShares, | ||
uint256 seized, | ||
uint256 badDebtShares | ||
); | ||
|
||
event FlashLoan(address indexed caller, address indexed token, uint256 amount); | ||
|
||
event SetOwner(address indexed newOwner); | ||
|
||
event SetFee(Id indexed id, uint256 fee); | ||
|
||
event SetFeeRecipient(address indexed feeRecipient); | ||
|
||
event CreateMarket(Id indexed id, Market market); | ||
|
||
event SetAuthorization( | ||
address indexed caller, address indexed authorizer, address indexed authorized, bool isAuthorized | ||
); | ||
|
||
event IncrementNonce(address indexed caller, address indexed signatory, uint256 usedNonce); | ||
|
||
event EnableIrm(address indexed irm); | ||
|
||
event EnableLltv(uint256 lltv); | ||
|
||
event AccrueInterests(Id indexed id, uint256 borrowRate, uint256 accruedInterests, uint256 feeShares); | ||
} |