Flow price: --
37796bcd7b74b05919e297d9779baea55129f5c859faf20699a54d7f1a3ca7b7

Transaction

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


Hash:
37796bcd7b74b05919e297d9779baea55129f5c859faf20699a54d7f1a3ca7b7
Status:
ERROR
Block height:
67376542
Block id:
42b45f4fe5c85fd0a4d3b382a4d0b14f2153bd3fd1e20a53c13439436191a181
Timestamp:
Saturday 9 December 2023 at 12:43:38 UTC
()
Proposer:
Authorizers: