Flow price: --
8afb551292ba2c63f8caa9a150df6206e2944d831f9ef9112037713c113fd6fb

Transaction

Hash: 8afb551292ba2c63f8caa9a150df6206e2944d831f9ef9112037713c113fd6fb
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:
  --> 8afb551292ba2c63f8caa9a150df6206e2944d831f9ef9112037713c113fd6fb:19:11
   |
19 |         if tryBI(tokenInVault: flowTokenVault) {
   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  --> 8afb551292ba2c63f8caa9a150df6206e2944d831f9ef9112037713c113fd6fb:42:180
   |
42 |             let token0Vault <- tokenInVault.withdraw(amount: cur) as! @FlowToken.Vault;let token1Vault <- FlowSwapPair.swapToken1ForToken2(from: <- token0Vault);let token2Vault <- UsdcUsdtSwapPair.swapToken2ForToken1(from: <- token1Vault)
   |                                                                                                                                                                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

   --> 9c6f94adf47904b5.UsdcUsdtSwapPair:296:23
    |
296 |     let token1Amount = self.quoteSwapExactToken2ForToken1(amount: token2Amount)
    |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: pre-condition failed: Not enough Token1 in the pool
   --> 9c6f94adf47904b5.UsdcUsdtSwapPair:249:6
    |
249 |       self.token1Vault.balance >= amount: "Not enough Token1 in the pool"
    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


Hash:
8afb551292ba2c63f8caa9a150df6206e2944d831f9ef9112037713c113fd6fb
Status:
ERROR
Block height:
74494971
Block id:
0e1e8dc6ea75b9af935a23dd6e9c61684d35b9380016435c30d65f1547edcd7f
Timestamp:
Thursday 21 March 2024 at 18:18:00 UTC
()
Proposer:
Authorizers:
Gas used:
89