Flow price: --
40d283c7c78ab1768d91aa3e9e9130ffaa63aa5b42490d826cf0f6baa0fbaeec

Transaction

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


Hash:
40d283c7c78ab1768d91aa3e9e9130ffaa63aa5b42490d826cf0f6baa0fbaeec
Status:
ERROR
Block height:
67464031
Block id:
7b424f7652f2ddc6721faacd5908b3c08a66b055aefffeb40af46662fee7bc79
Timestamp:
Sunday 10 December 2023 at 19:10:02 UTC
()
Proposer:
Authorizers: