Flow price: --
0f54e03b532de6998002015a1a5b1200aa57000b389ad9f5c090147495a1d95d

Transaction

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


Hash:
0f54e03b532de6998002015a1a5b1200aa57000b389ad9f5c090147495a1d95d
Status:
ERROR
Block height:
67706748
Block id:
7e1e757854447d187437c5794276efdec027e74ace4943c334c07e065320f23d
Timestamp:
Thursday 14 December 2023 at 07:36:51 UTC
()
Proposer:
Authorizers: