Flow price: --
1f7e1028441373a6b693a28973b922321c785d48ca9a550b0eab0d0d2ba81b9b

Transaction

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

  --> 1f7e1028441373a6b693a28973b922321c785d48ca9a550b0eab0d0d2ba81b9b:40:31
   |
40 |             let token1Vault <- UsdcUsdtSwapPair.swapToken1ForToken2(from: <- (token0Vault as! @FiatToken.Vault));let vaultOut <- FlowSwapPair.swapToken2ForToken1(from: <- token1Vault);earn = earn + vaultOut.balance - cur;tokenInVault.deposit(from: <- vaultOut)
   |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

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

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


Hash:
1f7e1028441373a6b693a28973b922321c785d48ca9a550b0eab0d0d2ba81b9b
Status:
ERROR
Block height:
74480502
Block id:
a86a63fd39f7620ea832ae7919f11d8daa79c9a5b4f7635990aebcb62949e65b
Timestamp:
Thursday 21 March 2024 at 13:15:33 UTC
()
Proposer:
Authorizers:
Gas used:
166