Flow price: --
c7b2e6cebcfab00306fad027c7bd356ff6e5614e04aa6da6d5b8537428d2eadf

Transaction

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


Hash:
c7b2e6cebcfab00306fad027c7bd356ff6e5614e04aa6da6d5b8537428d2eadf
Status:
ERROR
Block height:
68124692
Block id:
74f8cdd035049677e106eec96c4a5478c804ed72fc9091e5d58480452006a140
Timestamp:
Wednesday 20 December 2023 at 09:00:56 UTC
()
Proposer:
Authorizers: