Update strategy_encoders.rs

Co-authored-by: Tamara <tamara@datarevenue.com>
This commit is contained in:
Harsh Vardhan Roy
2025-02-05 20:23:10 +05:30
committed by GitHub
parent 3803be897e
commit 9e61261a51

View File

@@ -113,9 +113,9 @@ impl SplitSwapStrategyEncoder {
}
(true, true) => found_zero_split = true,
(false, _) => {
if swap.split <= 0.0 {
if swap.split < 0.0 {
return Err(EncodingError::InvalidInput(format!(
"Non-remainder splits must be >0% for token {:?}",
"All splits must be >= 0% for token {:?}",
token
)));
}