Flow price: --
c69e738e628d8a4e215740076e3228294415be2c37f5d594ba8d84866b83f215

Transaction

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


Hash:
c69e738e628d8a4e215740076e3228294415be2c37f5d594ba8d84866b83f215
Status:
ERROR
Block height:
78563485
Block id:
fc9edef8c1ef5d247900b03a60bcbdd3b3b168a88766851e281d34d007123392
Timestamp:
Sunday 19 May 2024 at 19:42:40 UTC
()
Proposer:
Authorizers:
Gas used:
180