Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
--> f0d036bacb4892739a07f5df45d622e70ba3863225f213b2d5ea3e0a6086ad6d:50:8
|
50 | self.lenderRef.flashloan(
51 | executorCap: self.flashLoanExecutorCap,
52 | requestedTokenVaultType: ftVault.getType(),
53 | requestedAmount: requestedAmount,
54 | params: {
55 | "profitReceiver": profitReceiver,
56 | "borrower": borrower,
57 | "userCertCap": self.userCertificateCap,
58 | "liquidationPoolAddress": liquidationPoolAddr,
59 | "collateralPoolAddress": collateralPoolAddr,
60 | "tokenKeyPath": swapTokenPath
61 | },
62 | )
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
--> 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():
| ^^^^^^^^^^^^^^^^^^^