Function: orderUpdated(int256 marginDelta)
This function is intended to be called by the _gtlHook
function in the PerpManager contract to reflect changes in GTL's collaterals on the order book.
Inputs
marginDelta
Control: Controlled by the PerpManager contract.
Constraints: Must not cause
orderbookCollateral
to become negative.Impact: Updates the
orderbookCollateral
.
Branches and code coverage
Intended branches
Updates the
orderbookCollateral
.
Negative behavior
Reverts if called by an address other than
perpManager
.