Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
--> f3733d6b007e5c99e1798318bd2e5b3c44b5ac9b6b34508b65c3681f3f042894:46:8
|
46 | self.lenderRef.flashloan(
47 | executorCap: self.flashLoanExecutorCap,
48 | requestedTokenVaultType: self.lenderRef.getLpTokenVaultType(),
49 | requestedAmount: requestedAmount,
50 | params: {
51 | "profitReceiver": profitReceiver,
52 | "borrower": borrower,
53 | "userCertCap": self.userCertificateCap,
54 | "liquidationPoolAddress": liquidationPoolAddr,
55 | "collateralPoolAddress": collateralPoolAddr,
56 | "tokenKeyPath": swapTokenPath
57 | },
58 | )
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
--> a6c38896d0556a25.SwapPair:504:12
|
504 | SwapPair.flashloan(executorCap: executorCap, requestedTokenVaultType: requestedTokenVaultType, requestedAmount: requestedAmount, params: params)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: pre-condition failed: [IncSwapErrorMsg:SwapPair: flashloan invalid requested token type][IncSwapErrorCode:1]
--> a6c38896d0556a25.SwapPair:357:12
|
357 | requestedTokenVaultType == self.token0VaultType || requestedTokenVaultType == self.token1VaultType:
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^