Update strategy_encoders.rs
Co-authored-by: Tamara <tamara@datarevenue.com>
This commit is contained in:
committed by
GitHub
parent
3803be897e
commit
9e61261a51
@@ -113,9 +113,9 @@ impl SplitSwapStrategyEncoder {
|
|||||||
}
|
}
|
||||||
(true, true) => found_zero_split = true,
|
(true, true) => found_zero_split = true,
|
||||||
(false, _) => {
|
(false, _) => {
|
||||||
if swap.split <= 0.0 {
|
if swap.split < 0.0 {
|
||||||
return Err(EncodingError::InvalidInput(format!(
|
return Err(EncodingError::InvalidInput(format!(
|
||||||
"Non-remainder splits must be >0% for token {:?}",
|
"All splits must be >= 0% for token {:?}",
|
||||||
token
|
token
|
||||||
)));
|
)));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user