Skip to content

Commit

Permalink
remove shared impl resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongeric committed Aug 23, 2024
1 parent 772f3a1 commit 1656de8
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions crates/uniswapx-rs/src/order.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,6 @@ pub enum Order {
}

impl Order {
pub fn resolve(&self, block_number: u64, timestamp: u64, priority_fee: Uint<256, 4>) -> OrderResolution {
match self {
Order::V2DutchOrder(order) => order.resolve(timestamp),
Order::PriorityOrder(order) => order.resolve(block_number, timestamp, priority_fee),
}
}

pub fn encode(&self) -> Vec<u8> {
match self {
Order::V2DutchOrder(order) => order.encode_inner(),
Expand Down

0 comments on commit 1656de8

Please sign in to comment.