Flow price: --
1729412074a595eefaf23044698ef4be0e377628749c633be63cf3f7277b1fc8

Transaction

Hash: 1729412074a595eefaf23044698ef4be0e377628749c633be63cf3f7277b1fc8
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:
  --> 1729412074a595eefaf23044698ef4be0e377628749c633be63cf3f7277b1fc8: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 72.31161663
  --> a800b6221ddced21.FLA:42:12
   |
42 |             assert(t1.balance >= amountOwed, message: "Not enough funds to repay the loan with balance ".concat(t1.balance.toString()))
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


Hash:
1729412074a595eefaf23044698ef4be0e377628749c633be63cf3f7277b1fc8
Status:
ERROR
Block height:
77800846
Block id:
e9de694dae8cf6a054f3033a88da09ad30b9587a3ba40c2298a8d22e6221807d
Timestamp:
Wednesday 8 May 2024 at 17:55:13 UTC
()
Proposer:
Authorizers:
Gas used:
180