Flow price: --
fb8e7a9e0e53f7ac90ab6db48026ce9f8ce6878e3680be31d3d44184f265366f

Transaction

Hash: fb8e7a9e0e53f7ac90ab6db48026ce9f8ce6878e3680be31d3d44184f265366f
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:
  --> fb8e7a9e0e53f7ac90ab6db48026ce9f8ce6878e3680be31d3d44184f265366f: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
    |
198 |                 self.balance >= amount:
    |                 ^^^^^^^^^^^^^^^^^^^^^^


Hash:
fb8e7a9e0e53f7ac90ab6db48026ce9f8ce6878e3680be31d3d44184f265366f
Status:
ERROR
Block height:
178024668
Block id:
73aee88e18ca08906ed045737288cdc219dd356f23e7b12bd916a75a6241091e
Timestamp:
Saturday 27 April 2024 at 00:51:23 UTC
()
Proposer:
Authorizers:
Gas used:
336