Flash Loans
Now perform classic arbitrage with generalized flash loans
Stabilize on Arbitrum One allows users to borrow large amounts of uncollaterlized funds as long as they are returned within the same transaction. This is commonly called flash loans and they play a large role in the DeFi ecosystem.
Stabilize loans are easy to setup and easy to borrow. The fees are among the most competitive on Arbitrum.
Current Fee: 0.029%

zs-WETH

This is our only flash loan powered strategy. Traders simply direct their contract to borrow WETH from our strategy and approve for the return in the same call.
1
interface FlashLoanReceiver {
2
/**
3
* @dev Receive a flash loan.
4
* @param initiator The initiator of the loan.
5
* @param token The loan currency.
6
* @param amount The amount of tokens lent.
7
* @param fee The additional amount of tokens to repay.
8
* @param data Arbitrary data structure, intended to contain user-defined parameters.
9
* @return The bool of true otherwise the transaction will revert
10
*/
11
function onFlashLoan(
12
address initiator,
13
address token,
14
uint256 amount,
15
uint256 fee,
16
bytes calldata data
17
) external returns (bool);
18
}
Copied!
Developers simply implement this callback in their receiver code and the interface below and call the flashLoan function to get the loan from the strategy:
1
interface StabilizeLender{
2
function maxFlashLoan() external view returns (uint256); // Get liquidity of token to borrow
3
function flashLoan(address receiver, uint256 amount, bytes calldata params) external;
4
}
Copied!
Loans must be taken out on the zs-WETH strategy, not the zs-WETH token.
Please visit the contract on GitHub to find the current strategy address for zs-WETH.
Last modified 1mo ago
Copy link