(
&self,
execution: LimitOrderExecution,
encoder: &mut SettlementEncoder,
)
| 197 | } |
| 198 | |
| 199 | fn encode( |
| 200 | &self, |
| 201 | execution: LimitOrderExecution, |
| 202 | encoder: &mut SettlementEncoder, |
| 203 | ) -> Result<()> { |
| 204 | let Ok(execution_filled) = u128::try_from(execution.filled) else { |
| 205 | anyhow::bail!("0x only supports executed amounts of size u128"); |
| 206 | }; |
| 207 | encoder.append_to_execution_plan(Arc::new(ZeroExInteraction { |
| 208 | taker_token_fill_amount: execution_filled, |
| 209 | order: self.order_record.order().clone(), |
| 210 | zeroex: self.zeroex.clone(), |
| 211 | })); |
| 212 | Ok(()) |
| 213 | } |
| 214 | } |
| 215 | |
| 216 | #[cfg(test)] |
no test coverage detected