diff --git a/src/concrete/raindex/RaindexV6.sol b/src/concrete/raindex/RaindexV6.sol index cdc4d04dda..0691b16e2e 100644 --- a/src/concrete/raindex/RaindexV6.sol +++ b/src/concrete/raindex/RaindexV6.sol @@ -1103,9 +1103,11 @@ contract RaindexV6 is IRaindexV6, IMetaV1_2, ReentrancyGuard, Multicall, Raindex } /// Calculates the clear state change given both order calculations for order - /// alice and order bob. The input of each is their output multiplied by - /// their IO ratio and the output of each is the smaller of their maximum - /// output and the counterparty IO * max output. + /// Alice and Bob. Each order's initial output equals its own `outputMax`; its + /// input is that output multiplied by its IO ratio. If the resulting input + /// exceeds the counterparty's `outputMax`, the input is capped at the + /// counterparty's `outputMax` and the output is back-calculated as input + /// divided by IO ratio. /// @param aliceOrderIOCalculation Order calculation for Alice. /// @param bobOrderIOCalculation Order calculation for Bob. /// @return clearStateChange The clear state change with absolute inputs and