Flow price: --
238c37bdb5d96cdd4eb493e0596409873b2d13819f127c43cf12c00fa574c427

Transaction

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


Hash:
238c37bdb5d96cdd4eb493e0596409873b2d13819f127c43cf12c00fa574c427
Status:
ERROR
Block height:
67380658
Block id:
b6516739b04d05857e0ce90b0804987723dc545221198d379f4f2350ea3a4ada
Timestamp:
Saturday 9 December 2023 at 14:09:31 UTC
()
Proposer:
Authorizers: