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: 3821.33419675 < minAmountOut
--> e467c2d356e388262b107096b6b7207b5b630115bb4a5788395dcef133643c5a: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...
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^