Whoops! 😨 Something unexpected happened...
[Error Code: 1101] cadence runtime error Execution failed:
error: assertion failed: fail
--> b5093ce815cd2e4973ae02e35409f49742831a540e228c3c95b5f15a251da24a:12:353
|
12 | let swap0InVault <- flowTokenVault.withdraw(amount: cur);let swap0OutVault <- FlowSwapPair.swapToken1ForToken2(from: <- (swap0InVault as! @FlowToken.Vault));let tokenOutVault <- SwapRouter.swapWithPath(vaultIn: <- swap0OutVault, tokenKeyPath: ["A.cfdd90d4a00f7b5b.TeleportedTetherToken", "A.1654653399040a61.FlowToken"], exactAmounts: nil);;assert(tokenOutVault.balance > cur, message: "fail");earn = earn + tokenOutVault.balance - cur;flowTokenVault.deposit(from: <- tokenOutVault);left ...
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^