Flow price: --
4745e8cecc9dd6f5933852d563c1e03376f47451cb688c86a7b2c7b1eed0244f

Transaction

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


Hash:
4745e8cecc9dd6f5933852d563c1e03376f47451cb688c86a7b2c7b1eed0244f
Status:
ERROR
Block height:
67388679
Block id:
fd2e976e4c19689fcf85997cf0df7ad1cbb6da05919a851f162046cefceb3fd2
Timestamp:
Saturday 9 December 2023 at 16:56:58 UTC
()
Proposer:
Authorizers: