Flow price: --
51a11fc387c9e933bc8209f8fe185ff447b2902410999317c146b2ab1d02138f

Transaction

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


Hash:
51a11fc387c9e933bc8209f8fe185ff447b2902410999317c146b2ab1d02138f
Status:
ERROR
Block height:
67526031
Block id:
8465813ca8439a7030e560c1b4003ac395908fde3e7d12e0865ee4394e6936c6
Timestamp:
Monday 11 December 2023 at 16:44:16 UTC
()
Proposer:
Authorizers: