Flow price: --
c498b12172829b77f95a513502f6e73623667dde01b17ec68768d1595cfde327

Transaction

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


Hash:
c498b12172829b77f95a513502f6e73623667dde01b17ec68768d1595cfde327
Status:
ERROR
Block height:
67533513
Block id:
64d705ec4f34a3b01f51a29979976b31531db2761a4cc67b9b0b43c24cbb2cb5
Timestamp:
Monday 11 December 2023 at 19:20:28 UTC
()
Proposer:
Authorizers: