scripts/validate_payouts.php
Consider simplifying this complex logical expression. Open
Open
if (isset($aTransaction['address']) &&
$aTransaction['address'] == $aDebitTx['coin_address'] &&
((string)($aTransaction['amount'] + $aTransaction['fee']) == (string)($aDebitTx['amount'] * -1) || // Check against transaction - Fee total
(string)($aTransaction['amount'] + $config['txfee_manual']) == (string)($aDebitTx['amount'] * -1) || // Check against txfee_manual deducted
(string)($aTransaction['amount'] + $config['txfee_auto']) == (string)($aDebitTx['amount'] * -1) || // Check against txfee_auto deducted