Flow price: --
d7e0ad812b07baf1a42f338d78f05eb82d0c2b00085b90364436e4fdc7b348c1

Transaction

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


Hash:
d7e0ad812b07baf1a42f338d78f05eb82d0c2b00085b90364436e4fdc7b348c1
Status:
ERROR
Block height:
67553230
Block id:
9a6c2dd886f5b72c5fffa9eae9d2fe43c04cdfa3a1525c36a035f8c21df0cb26
Timestamp:
Tuesday 12 December 2023 at 02:12:08 UTC
()
Proposer:
Authorizers: