Flow price: --
6af02cb89e337a888fc5483ceb05ccf6a7d3780beb750c54acd92af1ed2dc1f3

Transaction

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


Hash:
6af02cb89e337a888fc5483ceb05ccf6a7d3780beb750c54acd92af1ed2dc1f3
Status:
ERROR
Block height:
67459044
Block id:
73ec19aa83441ecb80e431e0f2d3a9a406c0cd8dcd505f0ffc8573407ae3de8d
Timestamp:
Sunday 10 December 2023 at 17:25:56 UTC
()
Proposer:
Authorizers: