#46960 [SC-Insight] trade order sizes are not validated properly
Description
Brief/Intro
Vulnerability Details
#[derive(Copy, Drop, Serde, Debug, PartialEq)]
pub struct OrderV2 {
pub account: ContractAddress,
pub market: felt252,
pub side: felt252,
pub orderType: felt252,
pub size: felt252,
pub price: felt252,
pub signature_timestamp: felt252,
pub is_reduce_only: bool,
}
#[derive(Copy, Drop, Serde, Debug, PartialEq)]
pub struct TradeRequestV2 {
pub id: felt252,
pub size: felt252,
pub price: felt252,
pub traded_at: felt252,
pub maker_order: OrderV2,
pub taker_order: OrderV2,
}
Impact Details
Proof of Concept
Proof of Concept
Previous#46942 [SC-Low] set perpetual asset balance link there is no cycle checksNext#46989 [SC-Insight] Invalid trade side check
Was this helpful?