const getDiscountedQuantity = client.getDiscountedQuantity({
liquidated,
rewardToken,
qualifyingPosition,
priceData,
validateMax: false // Optionally validate the liqidated token quantity and the discounted quantity. This will throw an error if any of these quantities are more than what the user holds.
});