diff --git a/crates/model/src/order.rs b/crates/model/src/order.rs index 6aa3e4b78b..89b0857885 100644 --- a/crates/model/src/order.rs +++ b/crates/model/src/order.rs @@ -676,8 +676,6 @@ pub struct OrderMetadata { #[serde_as(as = "HexOrDecimalU256")] pub executed_fee_amount: U256, #[serde_as(as = "HexOrDecimalU256")] - pub executed_surplus_fee: U256, - #[serde_as(as = "HexOrDecimalU256")] pub executed_fee: U256, pub executed_fee_token: H160, pub invalidated: bool, @@ -1025,7 +1023,6 @@ mod tests { "validTo": 4294967295u32, "appData": "0x6000000000000000000000000000000000000000000000000000000000000007", "feeAmount": "115792089237316195423570985008687907853269984665640564039457584007913129639935", - "executedSurplusFee": "1", "executedFee": "1", "executedFeeToken": "0x000000000000000000000000000000000000000a", "fullFeeAmount": "115792089237316195423570985008687907853269984665640564039457584007913129639935", @@ -1058,7 +1055,6 @@ mod tests { executed_sell_amount: BigUint::from_bytes_be(&[5]), executed_sell_amount_before_fees: 4.into(), executed_fee_amount: 1.into(), - executed_surplus_fee: 1.into(), executed_fee: 1.into(), executed_fee_token: H160::from_low_u64_be(10), invalidated: true, diff --git a/crates/orderbook/openapi.yml b/crates/orderbook/openapi.yml index aa4c2da3ac..a38353e8dd 100644 --- a/crates/orderbook/openapi.yml +++ b/crates/orderbook/openapi.yml @@ -947,11 +947,6 @@ components: on-chain. This data can be found in this object. allOf: - $ref: "#/components/schemas/OnchainOrderData" - executedSurplusFee: - description: Surplus fee that the limit order was executed with. - allOf: - - $ref: "#/components/schemas/BigUint" - nullable: false executedFee: description: Total fee charged for execution of the order. Contains network fee and protocol fees. allOf: diff --git a/crates/orderbook/src/database/orders.rs b/crates/orderbook/src/database/orders.rs index 51bce8a8c6..ca74886d9b 100644 --- a/crates/orderbook/src/database/orders.rs +++ b/crates/orderbook/src/database/orders.rs @@ -622,8 +622,6 @@ fn full_order_into_model_order(order: FullOrder) -> Result { )?, executed_fee_amount: big_decimal_to_u256(&order.sum_fee) .context("executed fee amount is not a valid u256")?, - executed_surplus_fee: big_decimal_to_u256(&order.executed_fee) - .context("executed fee is not a valid u256")?, executed_fee: big_decimal_to_u256(&order.executed_fee) .context("executed fee is not a valid u256")?, executed_fee_token: H160(order.executed_fee_token.0), diff --git a/crates/shared/src/db_order_conversions.rs b/crates/shared/src/db_order_conversions.rs index 44e2ae3320..429e0fedaa 100644 --- a/crates/shared/src/db_order_conversions.rs +++ b/crates/shared/src/db_order_conversions.rs @@ -90,8 +90,6 @@ pub fn full_order_into_model_order(order: database::orders::FullOrder) -> Result )?, executed_fee_amount: big_decimal_to_u256(&order.sum_fee) .context("executed fee amount is not a valid u256")?, - executed_surplus_fee: big_decimal_to_u256(&order.executed_fee) - .context("executed fee is not a valid u256")?, executed_fee: big_decimal_to_u256(&order.executed_fee) .context("executed fee is not a valid u256")?, executed_fee_token: H160(order.executed_fee_token.0),