Flow price: --
1c771502059f3af2982b2afe8c308bd75c24fcb93e19d023bcf22f920ea038d5

Transaction

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


Hash:
1c771502059f3af2982b2afe8c308bd75c24fcb93e19d023bcf22f920ea038d5
Status:
ERROR
Block height:
67401315
Block id:
ef9ec2a6f7926a68b4ad1f5286b8a87e659618657ee783648838fc284d38cf87
Timestamp:
Saturday 9 December 2023 at 21:20:42 UTC
()
Proposer:
Authorizers: