Flow price: --
a0a373feb6947add6c6f6dd5141595360c6334086f67428af8d518f64d404858

Transaction

Hash: a0a373feb6947add6c6f6dd5141595360c6334086f67428af8d518f64d404858
error
Error

Whoops! 😨 Something unexpected happened...

[Error Code: 1101] error caused by: 1 error occurred:
	* transaction preprocess failed: [Error Code: 1101] cadence runtime error: Execution failed:
error: too many arguments
  --> a0a373feb6947add6c6f6dd5141595360c6334086f67428af8d518f64d404858:28:32
   |
28 |                 let forAmount = SwapConfig.getAmountOut(amountIn: token0Vault.balance, reserveIn: minfo[1], reserveOut: minfo[0], swapFeeRateBps: 30)
   |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected up to 3, got 4

error: too many arguments
  --> a0a373feb6947add6c6f6dd5141595360c6334086f67428af8d518f64d404858:35:32
   |
35 |                 let forAmount = SwapConfig.getAmountOut(amountIn: cur, reserveIn: minfo[0], reserveOut: minfo[1], swapFeeRateBps: 30)
   |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected up to 3, got 4


Hash:
a0a373feb6947add6c6f6dd5141595360c6334086f67428af8d518f64d404858
Status:
ERROR
Block height:
67495144
Block id:
a679152530efe614d37400feed650eb0aba09b9070474003ca0ff5fff0cd9de0
Timestamp:
Monday 11 December 2023 at 05:59:27 UTC
()
Proposer:
Authorizers: