Flow price: --
ad6eaed2a201b01c2eab207fc85fe0c5a3ed8368e336ecc47ac4e42ed85d904d

Transaction

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


Hash:
ad6eaed2a201b01c2eab207fc85fe0c5a3ed8368e336ecc47ac4e42ed85d904d
Status:
ERROR
Block height:
68174337
Block id:
e16bb64b1c2a705379a6f32e92425f468fc999981bc4c9961bcb28782c266c9c
Timestamp:
Thursday 21 December 2023 at 02:17:06 UTC
()
Proposer:
Authorizers: