user->getAffiliate(); $balance = $this->exchange->convert( $affiliate->getBalance(), 'USD', $this->currency, ); if ($balance->value < $this->minPayoutAmount) { throw new InsufficientBalanceException(); } return $affiliate->payout(); } }