Skip to content
Request an audit

‹ All findings

OstiumTrading::topUpCollateral() is missing pairsStored.groupMaxCollateral(pairIndex) check

MediumOstium·Three Sigma · RWA perpetuals DEX · 19th February, 20243S-OS-M03

Description

When opening trades it is checked if the collateral is within limits for each pair in OstiumTradingCallbacks::withinExposureLimits().

The same should be done in OstiumTrading::topUpCollateral().

Recommendation

Add the check to OstiumTrading::topUpCollateral().

Status

Addressed.