Skip to content

Commit

Permalink
Test JIT order surplus fee for CoW AMM address
Browse files Browse the repository at this point in the history
  • Loading branch information
m-lord-renkse committed May 8, 2024
1 parent ce2ce2d commit 593c91b
Show file tree
Hide file tree
Showing 6 changed files with 727 additions and 208 deletions.
2 changes: 2 additions & 0 deletions crates/driver/src/tests/boundary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ pub struct Order {
pub sell_amount: ethcontract::U256,
pub buy_amount: ethcontract::U256,
pub valid_to: u32,
pub receiver: Option<ethcontract::H160>,
pub user_fee: ethcontract::U256,
pub side: competition::order::Side,
pub secret_key: SecretKey,
Expand All @@ -36,6 +37,7 @@ impl Order {
.with_buy_amount(self.buy_amount)
.with_valid_to(self.valid_to)
.with_fee_amount(self.user_fee)
.with_receiver(self.receiver)
.with_kind(match self.side {
competition::order::Side::Buy => model::order::OrderKind::Buy,
competition::order::Side::Sell => model::order::OrderKind::Sell,
Expand Down
Loading

0 comments on commit 593c91b

Please sign in to comment.