Flow price: --
538213145e5c6c9551971cf5c739a1146480eb20e51ac90898e768dbaeaabf91

Transaction

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


Hash:
538213145e5c6c9551971cf5c739a1146480eb20e51ac90898e768dbaeaabf91
Status:
ERROR
Block height:
67533989
Block id:
4568a26a8fdf8c44252d088796576df2591d6b9de784113db02c63a5fb4cc012
Timestamp:
Monday 11 December 2023 at 19:30:24 UTC
()
Proposer:
Authorizers: