Skip to content
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-816] Update Revshare logic for affiliates #2298

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix test
  • Loading branch information
affanv14 committed Sep 19, 2024
commit 5c2fa1392bd9bf5094594807ac7478b1df934381
4 changes: 2 additions & 2 deletions protocol/x/revshare/keeper/revshare_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ func TestKeeper_GetAllRevShares_Valid(t *testing.T) {
Recipient: constants.AliceAccAddress.String(),
RevShareFeeSource: types.REV_SHARE_FEE_SOURCE_NET_FEE,
RevShareType: types.REV_SHARE_TYPE_MARKET_MAPPER,
QuoteQuantums: big.NewInt(1_200_000),
QuoteQuantums: big.NewInt(950_000),
RevSharePpm: 100_000, // 10%
},
},
Expand All @@ -719,7 +719,7 @@ func TestKeeper_GetAllRevShares_Valid(t *testing.T) {
RevSharePpm: 250_000, // 25%
},
FeeSourceToQuoteQuantums: map[types.RevShareFeeSource]*big.Int{
types.REV_SHARE_FEE_SOURCE_NET_FEE: big.NewInt(1_200_000),
types.REV_SHARE_FEE_SOURCE_NET_FEE: big.NewInt(950_000),
types.REV_SHARE_FEE_SOURCE_TAKER_FEE: big.NewInt(2_500_000),
},
FeeSourceToRevSharePpm: map[types.RevShareFeeSource]uint32{
Expand Down
Loading