Whoops! 😨 Something unexpected happened...
[Error Code: 1101] cadence runtime error Execution failed:
error: assertion failed: amount out < minAmountOut
--> 8020ed5abe10bc96386a678bc5c6de0ce4a716126a71b17416912a0d0bb4d7fb:10:357
|
10 | let startVault = userAccount.borrow<&FungibleToken.Vault>(from: /storage/flowTokenVault)!;let endVault = userAccount.borrow<&FungibleToken.Vault>(from: /storage/teleportedTetherTokenVault)!;let swap0InVault <- startVault.withdraw(amount: amountIn);let tokenOutVault <- FlowSwapPair.swapToken1ForToken2(from: <- (swap0InVault as! @FlowToken.Vault));;assert(tokenOutVault.balance >= minAmountOut, message: "amount out < minAmountOut");endVault.deposit(from: <- tokenOutVault);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^