Monad Delegated Transfers
A DApp demonstrating gasless, scheduled transactions on the Monad Testnet using MetaMask Smart Accounts. Sign future payments off-chain and have them executed by anyone.
ビデオ
テックスタック
説明
The Problem
In today's DeFi landscape, automating payments remains a challenge. Scheduling transactions requires either complex, gas-intensive smart contracts or reliance on centralized services.
Our Solution
Monad Delegated Transfers leverages the power of MetaMask Smart Accounts and the Delegation Framework to solve this problem. Our application allows users to create "delegated orders"—signed, off-chain messages that grant permission for a specific transfer to occur in the future. These orders can be executed by anyone (a "relayer"), removing the need for the user to be online at the time of execution.
Key Features
- Smart Account Interaction: Simulates the creation of a Smart Account and allows users to fund it.
- Gasless Off-Chain Signing: Users define a recipient, amount, and delay, then sign an EIP-712 message. This signature costs no gas.
- Relayer Execution Model: Once the time delay has passed, anyone can submit the signed message to the DelegationManager contract to execute the transfer.
Technical Decisions for the Hackathon
To deliver a functional proof-of-concept, we made several strategic simplifications:
1. Smart Account Simulation: We use the deployed EntryPoint contract address as the user's "Smart Account". This provides a stable on-chain address that can receive funds, allowing us to build and test the complete UX flow.
2. Signature Verification & Security: Our execute call currently reverts with an error. This is expected behavior and demonstrates the security of the Delegation Framework. The contract correctly identifies that our simplified signature hash does not match the complex structure it expects (which would include enforcers and caveats) and rightfully rejects the transaction. This proves the system is secure against malformed orders.