·multiversx-flash-loan-patterns
!

multiversx-flash-loan-patterns

Atomic lend-execute-verify pattern for MultiversX smart contracts. Use when building flash loans, atomic swaps, temporary grants, or any operation that lends assets, executes a callback, and verifies repayment within a single transaction.

6Installs·0Trend·@multiversx

Installation

$npx skills add https://github.com/multiversx/mx-ai-skills --skill multiversx-flash-loan-patterns

How to Install multiversx-flash-loan-patterns

Quickly install multiversx-flash-loan-patterns AI skill to your development environment via command line

  1. Open Terminal: Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.)
  2. Run Installation Command: Copy and run this command: npx skills add https://github.com/multiversx/mx-ai-skills --skill multiversx-flash-loan-patterns
  3. Verify Installation: Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Source: multiversx/mx-ai-skills.

SKILL.md

View raw

A pattern for operations that temporarily lend assets, execute an external callback, and verify repayment — all atomically within a single transaction.

You want to lend tokens to a contract, let it execute arbitrary logic, and guarantee repayment (plus fee) before the transaction completes. If repayment fails, the entire transaction reverts.

| Flash loans | Yes — the canonical use case | | Atomic swaps with verification | Yes — send tokens, verify counterparty sent back | | Temporary grants (execute-then-return) | Yes — lend tokens for computation, verify return | | Cross-shard operations | No — atomicity requires same-shard | | Simple transfers | No — overkill |

Atomic lend-execute-verify pattern for MultiversX smart contracts. Use when building flash loans, atomic swaps, temporary grants, or any operation that lends assets, executes a callback, and verifies repayment within a single transaction. Source: multiversx/mx-ai-skills.

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/multiversx/mx-ai-skills --skill multiversx-flash-loan-patterns
Category
!Security
Verified
First Seen
2026-02-22
Updated
2026-03-10

Browse more skills from multiversx/mx-ai-skills

Quick answers

What is multiversx-flash-loan-patterns?

Atomic lend-execute-verify pattern for MultiversX smart contracts. Use when building flash loans, atomic swaps, temporary grants, or any operation that lends assets, executes a callback, and verifies repayment within a single transaction. Source: multiversx/mx-ai-skills.

How do I install multiversx-flash-loan-patterns?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/multiversx/mx-ai-skills --skill multiversx-flash-loan-patterns Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Where is the source repository?

https://github.com/multiversx/mx-ai-skills