Flow price: --
d8e4c8bc7943c1067af33a42caeae09dccd9399947d9c1d7da3c54ab5d1a9358

Transaction

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


Hash:
d8e4c8bc7943c1067af33a42caeae09dccd9399947d9c1d7da3c54ab5d1a9358
Status:
ERROR
Block height:
67413168
Block id:
4caa974c049ca76cf38984ddb5aa89ccb91fd306be2e74cd91ee0148cd5ec4ea
Timestamp:
Sunday 10 December 2023 at 01:28:10 UTC
()
Proposer:
Authorizers: