Flow price: --
2aec4b98d30e1393d58aef63d6d0ebdc78e4a995edfaab81550f3d78c02fcd9c

Transaction

Hash: 2aec4b98d30e1393d58aef63d6d0ebdc78e4a995edfaab81550f3d78c02fcd9c
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
  --> 2aec4b98d30e1393d58aef63d6d0ebdc78e4a995edfaab81550f3d78c02fcd9c: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
  --> 2aec4b98d30e1393d58aef63d6d0ebdc78e4a995edfaab81550f3d78c02fcd9c:35:32
   |
35 |                 let forAmount = SwapConfig.getAmountOut(amountIn: cur, reserveIn: minfo[0], reserveOut: minfo[1], swapFeeRateBps: 30)
   |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected up to 3, got 4


Hash:
2aec4b98d30e1393d58aef63d6d0ebdc78e4a995edfaab81550f3d78c02fcd9c
Status:
ERROR
Block height:
67508192
Block id:
07eb9c3dc46c1d80bdbd4285162c742596ea6d2dce22ff33ac4c3e6b978e09ad
Timestamp:
Monday 11 December 2023 at 10:31:53 UTC
()
Proposer:
Authorizers: