[Error Code: 1101] error caused by: 1 error occurred: * transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed: --> 0cc7b7c2e26d3a1d68911516aaa973cd4a94ae88239c9beab8e505d2bd3f8dd3: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) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --> a6c38896d0556a25.SwapPair:390:23 | 390 | let tokenIn <- executorRef.executeAndRepay(loanedToken: <- tokenOut!, params: params) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --> 3bde3ee9643afb5e.FlashloanLiquidation:60:24 | 60 | let usdc <- SwapRouter.swapExactTokensForTokens( 61 | exactVaultIn: <-collatoralizedToken, 62 | amountOutMin: amountOwed, 63 | tokenKeyPath: tokenKeyPath, 64 | deadline: getCurrentBlock().timestamp 65 | ) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --> 2f8af5ed05bbde0d.SwapRouter:114:22 | 114 | let amounts = self.getAmountsOut(amountIn: exactVaultIn.balance, tokenKeyPath: tokenKeyPath) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: panic: [IncSwapErrorMsg:SwapRouter: nonexistent pair "A.7e60df042a9c0868.FlowToken" <-> "A.7e60df042a9c0868.FlowToken"][IncSwapErrorCode:4] --> 2f8af5ed05bbde0d.SwapRouter:33:115 | 33 | let pairAddr = SwapFactory.getPairAddress(token0Key: tokenKeyPath[i], token1Key: tokenKeyPath[i+1]) ?? panic( 34 | SwapError.ErrorEncode( 35 | msg: "SwapRouter: nonexistent pair ".concat(tokenKeyPath[i]).concat(" <-> ").concat(tokenKeyPath[i+1]), 36 | err: SwapError.ErrorCode.NONEXISTING_SWAP_PAIR 37 | ) 38 | ) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Happy diving into the flow Remember to test your contracts in 1.0 here on testnet