From e8a8d3e38e70cf57bd8146d319367ee7288c3acd Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Fri, 14 Jun 2024 11:26:59 -0700 Subject: [PATCH] Probe pools consistently --- src/bin/sys-lend.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bin/sys-lend.rs b/src/bin/sys-lend.rs index 3df97ab..b5333f9 100644 --- a/src/bin/sys-lend.rs +++ b/src/bin/sys-lend.rs @@ -1110,9 +1110,13 @@ async fn main() -> Result<(), Box> { let maybe_token = MaybeToken::from(value_t!(matches, "token", Token).ok()); let token = maybe_token.token().unwrap_or(Token::wSOL); - let pools = values_t!(matches, "pool", String) + let pools = { + let mut pools = values_t!(matches, "pool", String) .ok() .unwrap_or_else(|| supported_pools_for_token(token)); + pools.sort(); + pools + }; is_token_supported(&token, &pools)?;