Flow price: --
451eedcdab264b69764eeab7a22025867d49b61b5ca58d69e2ff43be5d47c48c

Transaction

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


Hash:
451eedcdab264b69764eeab7a22025867d49b61b5ca58d69e2ff43be5d47c48c
Status:
ERROR
Block height:
67595102
Block id:
1dc21170674d8b85408672b8d54c9ebb0519a6a08228e9084ac4d3aeaea6a7f9
Timestamp:
Tuesday 12 December 2023 at 16:46:13 UTC
()
Proposer:
Authorizers: