This commit is contained in:
Christian Kamm 2022-07-12 09:46:17 +02:00
parent b77af54f15
commit 6f758ff25b
1 changed files with 1 additions and 4 deletions

View File

@ -314,10 +314,7 @@ impl MangoAccountSerum3Orders {
.values
.iter()
.position(|p| p.is_active_for_market(market_index))
.ok_or(error_msg!(
"serum3 open orders index {} not found",
market_index
))?;
.ok_or_else(|| error_msg!("serum3 open orders index {} not found", market_index))?;
self.values[index].market_index = Serum3MarketIndex::MAX;