ArFlash
  • 💸ArFlash - Flashing Processes
  • Overview
    • 👨‍🚀What do we do ?
    • ✨Our Features
  • Use Cases
    • 📪For Liquidity Providers
    • 📎For Borrowers?
    • 🐻For Arflash?
  • Specification
    • 🦁ArFlash Token Specification
    • 👾FlashLoan Reciever Specification
    • 🐋ArFlash Handlers
  • How it works?
    • 🐸How it works?
Powered by GitBook
On this page

Was this helpful?

  1. Specification

ArFlash Handlers

This document provides a comprehensive overview of the Arflash protocol, which defines handlers for managing a flashloan protocol on arweave itself.

Handlers

  1. addLiquidity : This handler allows liquidity providers to add tokens to the protocol. The tokens are transferred from the provider's account to the protocol's account, and the provider's balance is updated accordingly.

Note : Approve the protocol the quantity before that

Send({Target=ao.id,Tags={Action="addLiquidity",amount="1000"}})
  1. removeLiquidity This handler allows liquidity providers to remove tokens from the protocol.

Send({Target=ao.id,Tags={Action="removeLiquidity", amount="1000"}})
  1. requestLoan Request a flashloan from the protocol

Send({Target=ao.id,Tags={Action="RequestLoan", amount="1000", receiver="ao-token-id"}})
PreviousFlashLoan Reciever SpecificationNextHow it works?

Last updated 5 months ago

Was this helpful?

🐋