πArFlash Handlers
This document provides a comprehensive overview of the Arflash protocol, which defines handlers for managing a flashloan protocol on arweave itself.
Handlers
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"}})removeLiquidityThis handler allows liquidity providers to remove tokens from the protocol.
Send({Target=ao.id,Tags={Action="removeLiquidity", amount="1000"}})requestLoanRequest a flashloan from the protocol
Send({Target=ao.id,Tags={Action="RequestLoan", amount="1000", receiver="ao-token-id"}})Last updated
Was this helpful?