Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
--> a690c621b58f78b3dbbc401ff712fef4cc7cb6551db879f6cd8868ac334d1c0a:22:11
|
22 | if tryBM(tokenInVault: flowTokenVault) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--> a690c621b58f78b3dbbc401ff712fef4cc7cb6551db879f6cd8868ac334d1c0a:100:184
|
100 | let exactVaultIn <- tokenInVault.withdraw(amount: cur);let token0Vault <- FlowSwapPair.swapToken1ForToken2(from: <- (exactVaultIn as! @FlowToken.Vault));let token1Vault <- UsdcUsdtSwapPair.swapToken2ForToken1(from: <- token0Vault);let minfo = mpool.getReserves();let forAmount = SwapConfig.getAmountOutVolatile(amountIn: token1Vault.balance, reserveIn: minfo[1], reserveOut: minfo[0], swapFeeRateBps: 30)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--> 9c6f94adf47904b5.UsdcUsdtSwapPair:296:23
error: pre-condition failed: Not enough Token1 in the pool
--> 9c6f94adf47904b5.UsdcUsdtSwapPair:249:6