Flow price: --
479ac3f42cfe066018c268a63859a06b5738e17afd1be4c0ab8c4e0c05fe6268

Transaction

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


Hash:
479ac3f42cfe066018c268a63859a06b5738e17afd1be4c0ab8c4e0c05fe6268
Status:
ERROR
Block height:
67364610
Block id:
b69a742fb82237162cffa7e3f6082908d66832dcba532f95da81af8948a1ffd6
Timestamp:
Saturday 9 December 2023 at 08:34:35 UTC
()
Proposer:
Authorizers: