a fix in the batch fee check
@@ -322,6 +322,8 @@ impl TxSender {
let tx_fee_info = tx.tx.get_fee_info();
if let Some((tx_type, token, address, provided_fee)) = tx_fee_info {
+ transaction_types.push((tx_type, address));
+
if provided_fee == BigUint::zero() {
continue;
}
@@ -329,8 +331,6 @@ impl TxSender {
Self::token_allowed_for_fees(self.ticker_requests.clone(), token.clone())
.await?;
- transaction_types.push((tx_type, address));
-
// In batches, transactions with non-popular token are allowed to be included, but should not
// used to pay fees. Fees must be covered by some more common token.
if !fee_allowed && provided_fee != 0u64.into() {
