Flow price: --
c5f38abec6744befdb1f674d8a9c15dfcd123d05fe14ad9dff36cdfb55d5f91d

Transaction

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


Hash:
c5f38abec6744befdb1f674d8a9c15dfcd123d05fe14ad9dff36cdfb55d5f91d
Status:
ERROR
Block height:
67462073
Block id:
c93888eb85a782402ee865b9093551c842ce9729e43c69ea326900f9ecd3b7ee
Timestamp:
Sunday 10 December 2023 at 18:29:09 UTC
()
Proposer:
Authorizers: