Flow price: --
4530eeb3d9a7875afadc392cfd256aa1e988084a8d780c0e3fb9c8ac238ee8fe

Transaction

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


Hash:
4530eeb3d9a7875afadc392cfd256aa1e988084a8d780c0e3fb9c8ac238ee8fe
Status:
ERROR
Block height:
67540408
Block id:
ad75424bc58d74785eed2a133f7d03e95a1b9f00ead123419e8fb607d2539d27
Timestamp:
Monday 11 December 2023 at 21:44:25 UTC
()
Proposer:
Authorizers: