-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[OTE-788] Update revshare safety #2284
Changes from 11 commits
ad7a78d
193df7c
af30e36
d29f906
12d634e
4c842a6
d1a58d0
ed5be06
5b50b2f
21bb82b
11f651d
6111a9e
f8e2a77
caa4017
434c965
059bd8d
7e9ef41
6a0051d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,9 +19,15 @@ type RevShareKeeper interface { | |
ctx sdk.Context, | ||
) revsharetypes.MarketMapperRevenueShareParams | ||
ValidateRevShareSafety( | ||
affiliateTiers AffiliateTiers, | ||
ctx sdk.Context, | ||
unconditionalRevShareConfig revsharetypes.UnconditionalRevShareConfig, | ||
marketMapperRevShareParams revsharetypes.MarketMapperRevenueShareParams, | ||
affiliateWhitelist AffiliateWhitelist, | ||
lowestTakerFee int32, | ||
lowestMakerFee int32, | ||
) bool | ||
} | ||
|
||
type FeetiersKeeper interface { | ||
GetAffiliateRefereeLowestTakerFee(ctx sdk.Context) int32 | ||
GetLowestMakerFee(ctx sdk.Context) int32 | ||
Comment on lines
+15
to
+17
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tip Codebase Verification Incomplete Removal of The search results indicate that Action Items:
Analysis chainNew The new A few points to consider:
To ensure that all usages of the old This script will help identify any places where the old Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Check for any remaining usages of RevShareKeeper in the codebase
# Search for RevShareKeeper usages
echo "Searching for RevShareKeeper usages:"
rg --type go "RevShareKeeper"
# Search for the old methods that were in RevShareKeeper
echo "Searching for old RevShareKeeper methods:"
rg --type go "GetUnconditionalRevShareConfigParams|GetMarketMapperRevenueShareParams|ValidateRevShareSafety"
# Search for new FeetiersKeeper usages
echo "Searching for FeetiersKeeper usages:"
rg --type go "FeetiersKeeper"
Length of output: 8519 |
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed anymore since we check only the max affiliate rev share cap
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still need a reference to
revShareKeeper
onaffiliateKeeper
?