[Error Code: 1101] error caused by: 1 error occurred: * transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed: --> bba8da62738def074a9f583db78490c9089824663badfa4333be3fea2bd72c01: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:45:34 | 45 | let overpaidAmount <- liqPool.liquidate( 46 | liquidator: userCertCap.address, 47 | borrower: borrower, 48 | poolCollateralizedToSeize: collateralPoolAddress, 49 | repayUnderlyingVault: <-loanedToken 50 | ) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --> 8aaca41f09eb1e3d.LendingPool:1114:21 | 1114 | return <-LendingPool.liquidate(liquidator: liquidator, borrower: borrower, poolCollateralizedToSeize: poolCollateralizedToSeize, repayUnderlyingVault: <-repayUnderlyingVault) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --> 8aaca41f09eb1e3d.LendingPool:620:18 | 620 | let err = self.comptrollerCap!.borrow()!.liquidateAllowed( 621 | poolCertificate: <- create PoolCertificate(), 622 | poolBorrowed: self.poolAddress, 623 | poolCollateralized: poolCollateralizedToSeize, 624 | borrower: borrower, 625 | repayUnderlyingAmountScaled: scaledUnderlyingAmountToRepay 626 | ) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --> c15e75b5f6b95e54.LendingComptroller:365:47 | 365 | let scaledLiquidity: [UInt256;3] = self.getHypotheticalAccountLiquidity( 366 | account: borrower, 367 | poolToModify: 0x0, 368 | scaledAmountLPTokenToRedeem: 0, 369 | scaledAmountUnderlyingToBorrow: 0 370 | ) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: assertion failed: [IncErrorMsg:Price feed not available for market 0x8aaca41f09eb1e3d][IncErrorCode:17] --> c15e75b5f6b95e54.LendingComptroller:553:16 | 553 | assert( 554 | underlyingPriceInUSD != 0.0, 555 | message: LendingError.ErrorEncode(msg: "Price feed not available for market ".concat(poolAddress.toString()), err: LendingError.ErrorCode.UNKNOWN_MARKET) 556 | ) | ^
Happy diving into the flow Remember to test your contracts in 1.0 here on testnet