diff --git a/src/evm/input.rs b/src/evm/input.rs index ef4d971dd..64658d39f 100644 --- a/src/evm/input.rs +++ b/src/evm/input.rs @@ -312,10 +312,16 @@ impl ConciseEVMInput { } impl TestTx for ConciseEVMInput { + #[cfg(feature = "flashloan_v2")] fn is_borrow(&self) -> bool { self.input_type == EVMInputTy::Borrow } + #[cfg(not(feature = "flashloan_v2"))] + fn is_borrow(&self) -> bool { + false + } + fn caller(&self) -> String { format!("0x{}", hex::encode(self.caller)) } @@ -358,9 +364,15 @@ impl TestTx for ConciseEVMInput { "".to_string() } + #[cfg(feature = "flashloan_v2")] fn liq_percent(&self) -> u8 { self.liquidation_percent } + + #[cfg(not(feature = "flashloan_v2"))] + fn liq_percent(&self) -> u8 { + 0 + } } impl HasLen for EVMInput {