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: 580.32865868 < minAmountOut
--> da0b80470c2a20598c216886ee089ae6204eaa00c23f831c0f40f17a89d88300:7:428
|
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...
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^