Flow price: --
8d414cebd4b4f33102f56c4aaa0de502ba5e4d2b8e7d5b0807121de5c79bd1f9

Transaction

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


Hash:
8d414cebd4b4f33102f56c4aaa0de502ba5e4d2b8e7d5b0807121de5c79bd1f9
Status:
ERROR
Block height:
67416995
Block id:
b94c3d1bca7c7acc66cb796642ce02fcf226bc76e3273674dcedc7b36c7bdd6f
Timestamp:
Sunday 10 December 2023 at 02:48:02 UTC
()
Proposer:
Authorizers: