Hey GMX Team ![]()
I’m requesting whitelist approval for my verified smart contract AIFuturesTradingBot deployed on Arbitrum One.
The contract is built to trade safely through GMX V2 using the official ExchangeRouter and OrderVault, but it’s currently reverting due to ROUTER_PLUGIN restrictions — meaning it needs governance-level whitelist approval to interact properly.
Contract Details
-
Name: AIFuturesTradingBot
-
Owner (EOA):
0x9a50D4A4e6F5C39F309e36a81917E0380fa249A8 -
Verifier Contract:
0xe0498Fa64352AB2e97D520E653441EA9e30835d4(Groth16 ZK Verifier) -
Exchange Router:
0x602b805EedddBbD9ddff44A7dcBD46cb07849685 -
Order Vault:
0x31eF83a530Fde1B38EE9A18093A333D8Bbbc40D5
Context & Current IssueThe bot is fully functional in logic and compiles correctly.
However, whenever it attempts to interact with GMX V2 routers, the transaction reverts with this error:Static raw: 0xa35b150b000000000000000000000000602b805eedddbbd9ddff44a7dcbd46cb078496850000000000000000000000000000000000000000000000000000000000000040 000000000000000000000000000000000000000000000000000000000000000d524f555445525f504c5547494e00000000000000000000000000000000000000When decoded, this corresponds to:
ROUTER_PLUGINrevert — meaning GMX router requires governance-level whitelisting for external smart contracts initiating positions.All ERC20 approvals (ExchangeRouter + OrderVault) are done, verified on-chain, and working correctly. The revert only happens because the contract isn’t recognized as an approved plugin as per knowledge.
Purpose & Architecture Summary
AIFuturesTradingBot is a non-custodial, AI-driven trading automation contract that:
-
Integrates with a verified AIPredictor to receive real-time AI predictions for long/short signals.
-
Trades only through GMX V2 official contracts — no custom swap logic or external routers.
-
Is strictly controlled by the owner (no public deposits or open interaction).
-
Implements security best practices:
-
ReentrancyGuard
-
SafeERC20
-
Callback safety checks
-
Explicit execution fee accounting
-
On-chain verified zk-SNARK model integrity verifier
-
What It Does
The bot:
-
Uses AI predictions to decide when to open or close WETH positions.
-
Sends trades through GMX’s
ExchangeRouter→OrderVault→ Market. -
Handles ETH/WETH execution fee management and callback confirmations safely.
-
Does not hold any third-party funds or expose GMX liquidity.
It simply acts as a smart execution layer for AI-based strategy testing on GMX.
Requested Access
Whitelist permission for:
-
ExchangeRouter:0x602b805EedddBbD9ddff44A7dcBD46cb07849685 -
OrderVault:0x31eF83a530Fde1B38EE9A18093A333D8Bbbc40D5
This would allow the contract to properly open/close positions and send createIncreasePosition / createDecreasePosition calls without reverting.
Verification Links
-
AIFuturesTradingBot.sol: Arbiscan Verified Source
-
Groth16Verifier.sol: Arbiscan Verified Source
-
AI Prediction System (off-chain): Connected Python bot generating verified predictions on-chain.
(GitHub link will be added once repository cleanup and documentation are finalized — all sources already verified on-chain.)
Closing Note
This contract is purely for testing AI + DeFi integration and advancing automated trading on GMX.
I’ve verified all safety checks and execution paths locally and on a forked Arbitrum environment — everything works except the plugin restriction.
I’d really appreciate approval so we can continue testing this architecture responsibly on Arbitrum Mainnet under GMX V2.
Thank you for your time and for supporting open innovation ![]()
— Abdul Rafay, developer of AIFuturesTradingBot!