Flow price: --
1979b3b2f0e10ee16ea393a7863ebd1c2b35e9c154f807fc019cfc2b85a39488

Transaction

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


Hash:
1979b3b2f0e10ee16ea393a7863ebd1c2b35e9c154f807fc019cfc2b85a39488
Status:
ERROR
Block height:
67511985
Block id:
37204c043587394b1794de5d4748512f1a432d66153ec0087fca4dca55db2e3d
Timestamp:
Monday 11 December 2023 at 11:51:02 UTC
()
Proposer:
Authorizers: