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