Flow price: --
ac9ee195ba8ca4ab4b834f2ffd71db64ce70f61d2cb8a47458d3412ff80628df

Transaction

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


Hash:
ac9ee195ba8ca4ab4b834f2ffd71db64ce70f61d2cb8a47458d3412ff80628df
Status:
ERROR
Block height:
68066316
Block id:
0bb25f9ceac6cfcc1c20c6547117a2b94ea56cff0c5b64c00f0e5b7d3525617f
Timestamp:
Tuesday 19 December 2023 at 12:42:27 UTC
()
Proposer:
Authorizers: