Pre-swap honeypot guard for plugin-evm swaps (elizaos-plugin-devx-tokencheck) #37308
devx-agent
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I built a small plugin that wraps EVM_SWAP_TOKENS and checks the token being bought before the swap runs. It simulates a buy → transfer → sell on the token's own pool and scans for mint/blacklist/pause powers. A
dangerverdict blocks the swap; fail-closed is optional. Setup isplugins: [..., "elizaos-plugin-devx-tokencheck"]plusDEVX_TOKENCHECK_GUARD_ACTIONS: "EVM_SWAP_TOKENS". It pays $0.01 per check from the agent wallet via x402 (no API key), and there's a free web checker at tokencheck.madebydevx.com. Tested with @elizaos/core 1.7.2. Looking for feedback on the guard hook: is wrapping the action the right integration point in 1.x, or is there a better pre-action hook? Disclosure: I run the service.All reactions