Borrow STX or canonical sBTC with zero collateral in a single atomic transaction. Repay in the same block or the whole thing reverts — trustless by design.
—
—
STX + sBTC
0.05%
Whether you're building strategies or providing liquidity.
Borrow STX or canonical sBTC instantly with no collateral. Execute arbitrage, liquidations, or any on-chain strategy — the loan is atomic. No repayment = full revert. Zero risk to the protocol.
Deposit STX into the liquidity pool and earn a share of every flash loan fee. Like Aave but for flash loans — your share value grows automatically as fees accumulate. Withdraw anytime.
Everything happens in a single Stacks transaction block.
Call flash-loan with the amount and your receiver contract address.
FlashStack sends you the full loan amount instantly, no questions asked.
Your receiver contract runs — arbitrage, liquidate, swap, anything on-chain.
Return principal + 0.05% fee. If you don't, the whole transaction reverts.
Any Clarity contract can be a FlashStack receiver. Implement one function, deploy, get whitelisted, and access the full STX reserve or up to 0.1 BTC per transaction.
;; Hardened receiver: only the core may call it, and it
;; repays a hardcoded core, never the core argument (F-10)
(impl-trait
'SP3TGRVG7DKGFVRTTVGGS60S59R916FWB4DAB9STZ.stx-flash-receiver-trait.stx-flash-receiver-trait)
(define-constant FLASH-CORE
'SP20XD46NGAX05ZQZDKFYCCX49A3852BQABNP0VG5.flashstack-stx-core)
(define-public (execute-stx-flash (amount uint) (core principal))
(let ((raw-fee (/ (* amount u5) u10000)) ;; 0.05%
(owed (+ amount (if (> raw-fee u0) raw-fee u1))))
(asserts! (is-eq contract-caller FLASH-CORE) (err u401))
(asserts! (is-eq core FLASH-CORE) (err u401))
;; --- YOUR STRATEGY HERE ---
;; arbitrage, liquidate, swap...
(as-contract (stx-transfer? owed tx-sender FLASH-CORE))))Connect your Leather wallet on Stacks mainnet. No registration, no KYC, no custodians — just code.
LP deposits are open to anyone. During the unaudited beta, custom borrowing receivers are allowlisted for safety.