Flow price: --
98853104ff937ba387556ab5f61022436036b0d74c7e46c2b105392bc1378d9c

Transaction

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


Hash:
98853104ff937ba387556ab5f61022436036b0d74c7e46c2b105392bc1378d9c
Status:
ERROR
Block height:
67373841
Block id:
8ff88ba9a3b1a380587f8a60c3a39002a67420da9c2ac8b03298f9be5f3d8ec7
Timestamp:
Saturday 9 December 2023 at 11:47:14 UTC
()
Proposer:
Authorizers: