
Dragn Swap
A drag and drop DeFi Playground
Demo
About
The problem it solves # DeFi Automation **Drag-and-Swap** is like Scratch for DeFi. Instead of writing code or scripts, users connect blocks to: **Monitor markets** via QuickNode streams, **Automate swaps**, **Reduce risk**, and most of all **Save time**. It makes DeFi automation **easier**, **safer**, and **faster** by allowing agents to be built without deploying contracts or writing integrations Use of AI tools and agents ## Research & Documentation We used AI mainly for research and implementation guidance. It was great for helping us look up the Uniswap and QuickNode API docs, debugging, and finding patterns for conditional branching in execution graphs. ## Uniswap Swap Integration Skill We used the **Uniswap swap-integration skill** to implement the Swap and Get Quote blocks. The skill was super useful and made uniswap integration really easy. The skill was used when wiring the Uniswap service, building the swap block UI, and handling edge cases like Permit2 and quote expiry.
How it's made
Challenges we ran into ## Conditional branching in the execution graph We had to decide when a block’s output should trigger downstream blocks. For filters (e.g. General Filter), we only continue when passed === 'true'. For other blocks, we require a non-empty output. We also support execution handles (exec-out) where the block has no explicit output key but should still advance the flow. We fixed it by centralizing the logic: check `passed` for conditional blocks, then require a truthy value or a valid execution handle before queuing downstream nodes.