Flow price: --
56b31d459b8f0217bdad3e99213c834cc5d7b407ae9f4c5a640fa02fc52d1ef1

Transaction

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


Hash:
56b31d459b8f0217bdad3e99213c834cc5d7b407ae9f4c5a640fa02fc52d1ef1
Status:
ERROR
Block height:
67444754
Block id:
a3aaa0b355f5194949bf8f2b943bb37ebbe83cd727d372b542bdfbc501585032
Timestamp:
Sunday 10 December 2023 at 12:27:37 UTC
()
Proposer:
Authorizers: