Flow price: --
c833bfd1001e710233ce9ff336bca4c70903beb0e707afb26b291d468fc8b2aa

Transaction

Hash: c833bfd1001e710233ce9ff336bca4c70903beb0e707afb26b291d468fc8b2aa
error
Error

Whoops! 😨 Something unexpected happened...

[Error Code: 1101] error caused by: 1 error occurred:
	* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
  --> c833bfd1001e710233ce9ff336bca4c70903beb0e707afb26b291d468fc8b2aa:31:8
   |
31 |         self.lenderRef.flashloan(
32 |             executorCap: self.fle, 
33 |             requestedTokenVaultType: ftVault.getType(), 
34 |             requestedAmount: requestedAmount, 
35 |             params: {
36 |             "profitReceiver": profitReceiver,
37 |             "swapFrom": swapFrom,
38 |             "swapTo": swapTo,
39 |             "swapFromAddress": swapFromAddress,
40 |             "swapToAddress": swapToAddress
41 |             },
42 |        )
   |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^

   --> c353b9d685ec427d.SwapPair:522:12
    |
522 |             SwapPair.flashloan(executorCap: executorCap, requestedTokenVaultType: requestedTokenVaultType, requestedAmount: requestedAmount, params: params)
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

   --> c353b9d685ec427d.SwapPair:391:23
    |
391 |         let tokenIn <- executorRef.executeAndRepay(loanedToken: <- tokenOut!, params: params)
    |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: assertion failed: Not enough funds to repay the loan with balance 62.28624102
  --> a800b6221ddced21.FLA:42:12
   |
42 |             assert(t1.balance >= amountOwed, message: "Not enough funds to repay the loan with balance ".concat(t1.balance.toString()))
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


Hash:
c833bfd1001e710233ce9ff336bca4c70903beb0e707afb26b291d468fc8b2aa
Status:
ERROR
Block height:
78567635
Block id:
b6ca24bbf5550a3a0ef6db20adcc30ee2d33462239badfdac8e46360ac138ced
Timestamp:
Sunday 19 May 2024 at 21:09:29 UTC
()
Proposer:
Authorizers:
Gas used:
180