Flow price: --
eec6af2159f1b56f9c904f899828d7390b464edc8cec4ea5791521607e12fdac

Transaction

Hash: eec6af2159f1b56f9c904f899828d7390b464edc8cec4ea5791521607e12fdac
error
Error

Whoops! 😨 Something unexpected happened...

[Error Code: 1101] error caused by: 1 error occurred:
	* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
  --> eec6af2159f1b56f9c904f899828d7390b464edc8cec4ea5791521607e12fdac: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)
    |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: pre-condition failed: Amount withdrawn must be less than or equal than the balance of the Vault
   --> 9a0766d93b6608b7.FungibleToken:198:16


Hash:
eec6af2159f1b56f9c904f899828d7390b464edc8cec4ea5791521607e12fdac
Status:
ERROR
Block height:
178024203
Block id:
f5fe5f6876c022abe326f15026ae99306c4091f572a9b37cfd556e131845eaaf
Timestamp:
Saturday 27 April 2024 at 00:49:11 UTC
()
Proposer:
Authorizers:
Gas used:
336