Function: _collateralRefund(PoolParams poolParams, uint256 shares)
This function is used to refund the collateral to the user.
Inputs
poolParamsControl: Arbitrary.
Constraints: None.
Impact: Pool parameters.
sharesControl: Arbitrary.
Constraints: None.
Impact: Amount of shares.
Branches and code coverage
Intended branches
Calculates the refund amount using the pool parameters.
Burns the caller's long and short shares.
Transfers the refund amount to the caller.