Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
--> 7f208c917ec698f8d48d194a3d3e899876be5ec0036d889c6e023745ab7a5616:48:8
|
48 | self.lenderRef.flashloan(
49 | executorCap: flashLoanExecutorCap,
50 | requestedTokenVaultType: ftVault.getType(),
51 | requestedAmount: requestedAmount,
52 | params: {
53 | "profitReceiver": profitReceiver,
54 | "borrower": borrower,
55 | "userCertCap": self.userCertificateCap,
56 | "liquidationPoolAddress": liquidationPoolAddr,
57 | "collateralPoolAddress": collateralPoolAddr,
58 | "tokenKeyPath": swapTokenPath
59 | },
60 | )
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
--> a6c38896d0556a25.SwapPair:504:12
|
504 | SwapPair.flashloan(executorCap: executorCap, requestedTokenVaultType: requestedTokenVaultType, requestedAmount: requestedAmount, params: params)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: pre-condition failed: [IncSwapErrorMsg:SwapPair: flashloan executor resource not properly setup][IncSwapErrorCode:13]
--> a6c38896d0556a25.SwapPair:368:12
|
368 | executorCap.check():
| ^^^^^^^^^^^^^^^^^^^