ConsumeAccrualBuckets
ConsumeAccrualBuckets returns and clears up to limit of the oldest pending buckets of tokenPath as parallel epoch and amount slices. A limit of zero or less consumes every pending bucket. Only gov/staker may call it.
Parameters:
- cur: Current realm context; callers use cross(cur) when crossing into this realm.
- tokenPath: token contract path whose pending GovStaker accrual buckets are consumed
- limit: maximum number of oldest buckets to consume; zero or negative consumes all pending buckets
Returns:
- epochs: consumed accrual epoch numbers in ascending epoch order
- amounts: GovStaker fee amounts corresponding positionally to epochs, in token base units
Command
# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.
gnokey maketx call -pkgpath "gno.land/r/gnoswap/protocol_fee" -func "ConsumeAccrualBuckets" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "gnoland-1" -remote "https://rpc.gno.land" ADDRESSgnokey query -remote "https://rpc.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoswap/protocol_fee" -func "ConsumeAccrualBuckets" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "gnoland-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.gno.land" call.tx