-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathFeesEvents.sol
49 lines (43 loc) · 1.22 KB
/
FeesEvents.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/**
* Copyright 2017-2021, bZeroX, LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0.
*/
pragma solidity 0.5.17;
/**
* @title The Fees Events contract.
* @notice This contract code comes from bZx. bZx is a protocol for tokenized
* margin trading and lending https://bzx.network similar to the dYdX protocol.
*
* This contract contains the events for fee payments.
* */
contract FeesEvents {
event PayLendingFee(address indexed payer, address indexed token, uint256 amount);
event PayTradingFee(
address indexed payer,
address indexed token,
bytes32 indexed loanId,
uint256 amount
);
event PayBorrowingFee(
address indexed payer,
address indexed token,
bytes32 indexed loanId,
uint256 amount
);
event EarnReward(
address indexed receiver,
address indexed token,
bytes32 indexed loanId,
uint256 feeRebatePercent,
uint256 amount,
uint256 basisPoint
);
event EarnRewardFail(
address indexed receiver,
address indexed token,
bytes32 indexed loanId,
uint256 feeRebatePercent,
uint256 amount,
uint256 basisPoint
);
}