Flow price: --
f7d491730f6f7b866c5ed5042e7ba7c82345ca82a41e8272ddd1cf3c8839035c

Transaction

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


Hash:
f7d491730f6f7b866c5ed5042e7ba7c82345ca82a41e8272ddd1cf3c8839035c
Status:
ERROR
Block height:
67455582
Block id:
957b28b663c87242a860898561af307aeb9ed01cda2930d528e4f8d211ce2334
Timestamp:
Sunday 10 December 2023 at 16:13:41 UTC
()
Proposer:
Authorizers: