Skip to content

Commit

Permalink
Tests comment
Browse files Browse the repository at this point in the history
  • Loading branch information
squadgazzz committed Oct 30, 2024
1 parent ac2dbd4 commit 8c7503a
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions crates/shared/src/price_estimation/trade_verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -800,9 +800,9 @@ mod tests {

let jit_orders = [
dto::JitOrder {
sell_token: buy_token, // Solver sells Token B
buy_token: sell_token, // Solver buys Token A
executed_amount: U256::from(200u64),
sell_token: buy_token, // Solver sells Token B
buy_token: sell_token, // Solver buys Token A
executed_amount: U256::from(200u64), // Fills the query partially
side: dto::Side::Sell,
sell_amount: U256::from(200u64),
buy_amount: U256::from(400u64),
Expand All @@ -816,9 +816,9 @@ mod tests {
signing_scheme: SigningScheme::Eip1271,
},
dto::JitOrder {
sell_token: buy_token, // Solver sell Token B
buy_token: sell_token, // Solver buys Token A
executed_amount: U256::from(400u64),
sell_token: buy_token, // Solver sell Token B
buy_token: sell_token, // Solver buys Token A
executed_amount: U256::from(400u64), // Fills the query partially
side: dto::Side::Buy,
sell_amount: U256::from(200u64),
buy_amount: U256::from(400u64),
Expand Down Expand Up @@ -908,9 +908,9 @@ mod tests {

let jit_orders = [
dto::JitOrder {
sell_token: buy_token, // Solver sells Token B
buy_token: sell_token, // Solver buys Token A
executed_amount: U256::from(200u64),
sell_token: buy_token, // Solver sells Token B
buy_token: sell_token, // Solver buys Token A
executed_amount: U256::from(250u64), // Fully fills the query
side: dto::Side::Sell,
sell_amount: U256::from(250u64),
buy_amount: U256::from(500u64),
Expand All @@ -924,9 +924,9 @@ mod tests {
signing_scheme: SigningScheme::Eip1271,
},
dto::JitOrder {
sell_token: buy_token, // Solver sell Token B
buy_token: sell_token, // Solver buys Token A
executed_amount: U256::from(500u64),
sell_token: buy_token, // Solver sell Token B
buy_token: sell_token, // Solver buys Token A
executed_amount: U256::from(500u64), // Fully fills the query
side: dto::Side::Buy,
sell_amount: U256::from(250u64),
buy_amount: U256::from(500u64),
Expand Down

0 comments on commit 8c7503a

Please sign in to comment.