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

Remove Custom Price Order Sell Price from UCP #878

Merged
merged 6 commits into from
Dec 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
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
8 changes: 6 additions & 2 deletions crates/solver/src/settlement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1471,13 +1471,17 @@ pub mod tests {
// Note that for limit order **both** the uniform clearing price of the
// buy token as well as the executed clearing price accounting for fees
// are included.
assert_eq!(settlement.tokens, [sell_token, buy_token, buy_token]);
assert_eq!(
settlement.tokens,
[sell_token, buy_token, sell_token, buy_token]
);
assert_eq!(
settlement.clearing_prices,
[
100_000_u128.into(),
100_000_u128.into(),
101_010_u128.into()
99_000_u128.into(),
100_000_u128.into(),
],
);
}
Expand Down
Loading