Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
error: assertion failed: 3872.50652832 < minAmountOut
--> 7a889e68ea5b6f9961ccc5713cc3373bfa8af24be62733832f40f32715847b46:7:428
|
7 | let startVault = userAccount.borrow<&FungibleToken.Vault>(from: /storage/USDCVault)!;let endVault = userAccount.borrow<&FungibleToken.Vault>(from: /storage/flowTokenVault)!;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...
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^