Flow price: --
7d1f1d79f9da0b4816d89b87823baecb936f0601ee4caf8f78b7d06eee8b3cd1

Transaction

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


Hash:
7d1f1d79f9da0b4816d89b87823baecb936f0601ee4caf8f78b7d06eee8b3cd1
Status:
ERROR
Block height:
67374762
Block id:
8e793f1f4130d515f640945d050031f362d2f356034816ff90ecc1a5a68d931d
Timestamp:
Saturday 9 December 2023 at 12:06:26 UTC
()
Proposer:
Authorizers: