GetOrderAmountsByGroup
Ask AI
GetOrderAmountsByGroup returns the read-only group index of orders by executionFeeRate, then amountPerExecution, which a round reads for the smallest order of each fee rate. Iterate the [pdca.GroupOrderPrefix(groupID), pdca.PrefixEnd(prefix)) range for one group's orders by ascending executionFeeRate, amountPerExecution, then ID, or the [pdca.GroupOrderFeeRatePrefix(groupID, rate), pdca.PrefixEnd(prefix)) range for the orders of one fee rate. A finished order's entry stays until the order is paid out or a later round of its group removes it.
Returns:
- *rotree.ReadOnlyTree: pdca.GroupOrderAmountKey(groupID, executionFeeRate, amountPerExecution, orderID) -> uint64 endRound
Command
gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/gnoswap/order/dca.GetOrderAmountsByGroup()"
Result