checked math

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
microwavedcola1 2022-04-07 21:04:02 +02:00
parent 367144034d
commit 2587cd914c
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ impl<'a, 'b> ScanningAccountRetriever<'a, 'b> {
match ai.load::<PerpMarket>() {
Ok(perp_market) => {
require!(&perp_market.group == group, MangoError::SomeError);
perp_index_map.insert(perp_market.perp_market_index, skip + i);
perp_index_map.insert(perp_market.perp_market_index, cm!(skip + i));
}
Err(Error::AnchorError(error))
if error.error_code_number