Flow price: --
7f1e00b8b31f1702091794a70ea236569fcff45ede508eaa693b956842a8c5a0

Transaction

Hash: 7f1e00b8b31f1702091794a70ea236569fcff45ede508eaa693b956842a8c5a0
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:
  --> 7f1e00b8b31f1702091794a70ea236569fcff45ede508eaa693b956842a8c5a0:24:186
   |
24 |                 let token0Vault <- flowTokenVault.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:
7f1e00b8b31f1702091794a70ea236569fcff45ede508eaa693b956842a8c5a0
Status:
ERROR
Block height:
74540798
Block id:
da0824d9cc93e885dd245915587b07e9bdf944829c7bebe2b78479ae19ee81fa
Timestamp:
Friday 22 March 2024 at 10:15:41 UTC
()
Proposer:
Authorizers:
Gas used:
78