CODE_ERROR
There is an error in the cadence code of this transaction.
[Error Code: 1101] error caused by: 1 error occurred: * transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed: --> 1a3927f7f8f51c532fb6b1cddf20a4cf1d8a07afa9bd703a6d4b25acea4a25b6:7:263 | 7 | let startVault = userAccount.borrow<&FungibleToken.Vault>(from: /storage/flowTokenVault)!;let endVault = userAccount.borrow<&FungibleToken.Vault>(from: /storage/USDCVault)!;let swap0InVault <- startVault.withdraw(amount: amountIn[0]);let tokenOutVault <- getAccount(0x59544345abb8fa21).getCapability<&{SwapInterfaces.PairPublic}>(SwapConfig.PairPublicPath).borrow()!.swap(vaultIn: <- swap0InVault, exactAmountOut: nil);;assert(tokenOutVault.balance >= minAmountOut, message: tokenOutVault.bal... | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --> 59544345abb8fa21.SwapPair:179:22 | 179 | return <- SwapPair.swap(vaultIn: <-vaultIn, exactAmountOut: exactAmountOut) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: pre-condition failed: SwapPair : swap failed --> 59544345abb8fa21.SwapPair:74:14 | 74 | pre { self.check(vaultIn.balance): "SwapPair : swap failed" } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Arguments:
amountIn:
[189.6]
minAmountOut:
148.473864