-
Notifications
You must be signed in to change notification settings - Fork 47
/
AffiliatesEvents.sol
49 lines (41 loc) · 1.28 KB
/
AffiliatesEvents.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-2020, bZeroX, LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0.
*/
pragma solidity 0.5.17;
import "./ModulesCommonEvents.sol";
contract AffiliatesEvents is ModulesCommonEvents {
event SetAffiliatesReferrer(address indexed user, address indexed referrer);
event SetAffiliatesReferrerFail(
address indexed user,
address indexed referrer,
bool alreadySet,
bool userNotFirstTrade
);
event SetUserNotFirstTradeFlag(address indexed user);
event PayTradingFeeToAffiliate(
address indexed referrer,
address trader,
address indexed token,
bool indexed isHeld,
uint256 tradingFeeTokenAmount,
uint256 tokenBonusAmount,
uint256 sovBonusAmount,
uint256 sovBonusAmountPaid
);
event PayTradingFeeToAffiliateFail(
address indexed referrer,
address trader,
address indexed token,
uint256 tradingFeeTokenAmount,
uint256 tokenBonusAmount,
uint256 sovBonusAmount,
uint256 sovBonusAmountTryingToPaid
);
event WithdrawAffiliatesReferrerTokenFees(
address indexed referrer,
address indexed receiver,
address indexed tokenAddress,
uint256 amount
);
}