Inspiration

Wallet users often approve, bridge, swap, or pay with too little context. CupSafe Memory Agent adds a memory layer before a wallet signature so the user can understand whether a USDt/DeFi action should be allowed, reviewed, or denied.

What it does

The prototype retrieves similar risk memories for a transaction summary, scores the current action by operation type, recipient trust, amount band, slippage, and bridge risk, then returns ALLOW, REVIEW, or DENY with evidence and a recommended action.

Demo scenarios

  • Pay 8 USDT to a verified fan shop -> ALLOW
  • Approve 50 USDT for an unknown contract -> DENY
  • Bridge 12 USDT before a live match -> REVIEW
  • Swap 9 USDT with 6.5% slippage -> REVIEW

How we built it

The current demo is a static browser app with a local memory store in memory/cases.json and a JavaScript scoring engine in src/memory-agent.js. It is Qwen-ready: the next step is to move the explanation layer to Qwen Cloud, keep retrieval auditable, and deploy a lightweight backend on Alibaba Cloud.

Safety boundary

The demo does not connect wallets, read private keys, request signatures, execute transactions, or move funds. It is a pre-transaction risk explanation tool, not investment advice.

Built With

Share this project:

Updates