Flow price: --
802c3492a2a853dbd69e46e683fdb9eef6ad19d822518dc08a0d5b4033cda346

Transaction

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


Hash:
802c3492a2a853dbd69e46e683fdb9eef6ad19d822518dc08a0d5b4033cda346
Status:
ERROR
Block height:
67516942
Block id:
ed15cf1e64cfeca8ae0e464ee716731765d68866478e37ca58702447a88c28a6
Timestamp:
Monday 11 December 2023 at 13:34:33 UTC
()
Proposer:
Authorizers: