Run the admin_cost check before the shared type rules

This commit is contained in:
ai-bot committed 2026-11-14 18:01:29 +00:00
1 parent fbfbbd168e
commit 7b66bc1650
1 file changed
+2 -2
+2 -2
View File
@@ -265,10 +265,10 @@ def validate_transaction(payload, markets):
to_market_id = None
if tx_type is not None:
if tx_type == "admin_cost":
_check_admin_cost(legs, errors)
if tx_type == "trade":
_check_trade(legs, errors)
elif tx_type == "admin_cost":
_check_admin_cost(legs, errors)
else:
for name, message in _REQUIRED.get(tx_type, ()):
if legs[name] is None and name not in errors: