Flow price: --
ab0fc3c4d2df5bb82129d8640121f09de0389ee0b844815105994b0fb55666dd

Transaction

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


Hash:
ab0fc3c4d2df5bb82129d8640121f09de0389ee0b844815105994b0fb55666dd
Status:
ERROR
Block height:
78554056
Block id:
15c2299f71d4a03055905ca67fa4571435286c8643c8dc2fe2d8573cea5581d2
Timestamp:
Sunday 19 May 2024 at 16:25:20 UTC
()
Proposer:
Authorizers:
Gas used:
183