Remove split check
This commit is contained in:
@@ -278,10 +278,6 @@ impl SwapEncoder for EkuboSwapEncoder {
|
|||||||
swap: Swap,
|
swap: Swap,
|
||||||
encoding_context: EncodingContext,
|
encoding_context: EncodingContext,
|
||||||
) -> Result<Vec<u8>, EncodingError> {
|
) -> Result<Vec<u8>, EncodingError> {
|
||||||
if !swap.split.is_zero() {
|
|
||||||
return Err(EncodingError::InvalidInput("splits not implemented".to_string()));
|
|
||||||
}
|
|
||||||
|
|
||||||
if encoding_context.exact_out {
|
if encoding_context.exact_out {
|
||||||
return Err(EncodingError::InvalidInput("exact out swaps not implemented".to_string()));
|
return Err(EncodingError::InvalidInput("exact out swaps not implemented".to_string()));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user