CODE_ERROR
There is an error in the cadence code of this transaction.
[Error Code: 1101] error caused by: 1 error occurred: * transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed: --> 10b7d9d723354defe4489acf88cec0972857cfe5008e7be273958ff229ac9a1e: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 46.12599002 --> a800b6221ddced21.FLA:42:12 | 42 | assert(t1.balance >= amountOwed, message: "Not enough funds to repay the loan with balance ".concat(t1.balance.toString())) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Arguments:
requestedAmount:
46.15354759
profitReceiver:
0xb9b9e5d28d72c597
swapFrom:
b
swapTo:
i
swapFromAddress:
0xc6c77b9f5c7a378f
swapToAddress:
0xfa82796435e15832
Loading...