Whoops! 😨 Something unexpected happened...
[Error Code: 1101] cadence runtime error Execution failed:
error: assertion failed: amount out < minAmountOut
--> eb05e6bf2ca949a2203db5d433a2bfa8892de5babdf4cef4cd72faba1a309bff:7:357
|
7 | 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);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^