package crypto.r35157.cauldron.afets;

import java.math.BigDecimal;

public interface BusinessLogic {
    BigDecimal calculateContractValueToTrade(
            BigDecimal maxMarginAmountToTradePerIteration,
            BigDecimal maxStretchMarginAmountToTradePerIteration,
            BigDecimal positionValue,
            BigDecimal currentPrice,
            BigDecimal tokensPerContract,
            int leverage,
            BigDecimal maxTradePctOfFullPosition
    );

    BigDecimal min(BigDecimal a, BigDecimal b);

    BigDecimal max(BigDecimal a, BigDecimal b);
}
