Flow price: --
02e5aba7e2663411f6b0086f965db8c478c42ea827b5f5f98d9b51e3f3e4ca6f

Transaction

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


Hash:
02e5aba7e2663411f6b0086f965db8c478c42ea827b5f5f98d9b51e3f3e4ca6f
Status:
ERROR
Block height:
68083553
Block id:
077a1d77235dffba93e52b5cca4f10479bce8872743b6276d7b871532b238427
Timestamp:
Tuesday 19 December 2023 at 18:42:11 UTC
()
Proposer:
Authorizers: