2️Flash Loan
An uncollateralized loan in NAVI that must be repaid within the same Sui transaction.
flash_loan_with_ctx_v2
public fun flash_loan_with_ctx_v2<CoinType>(
config: &FlashLoanConfig,
pool: &mut Pool<CoinType>,
amount: u64,
system_state: &mut SuiSystemState,
ctx: &mut TxContext
): (Balance<CoinType>, FlashLoanReceipt<CoinType>)flash_repay_with_ctx
public fun flash_repay_with_ctx<CoinType>(
clock: &Clock,
storage: &mut Storage,
pool: &mut Pool<CoinType>,
receipt: FlashLoanReceipt<CoinType>,
repay_balance: Balance<CoinType>,
ctx: &mut TxContext
): Balance<CoinType>flash_repay_with_account_cap
Last updated