ChangeDistributionPct
ChangeDistributionPct changes distribution percentages for emission targets.
This function redistributes how newly minted GNS tokens are allocated across protocol components. Before applying new ratios, it distributes any accumulated emissions using the current ratios, ensuring emissions are distributed according to the ratios in effect when they were generated. This prevents retroactive application of new ratios to past emissions.
Parameters:
- cur: Current realm context; callers use cross(cur) when crossing into this realm.
- liquidityStakerPct: percentage for liquidity stakers in basis points (100 = 1%, 10000 = 100%).
- devOpsPct: percentage for DevOps in basis points (100 = 1%, 10000 = 100%).
- communityPoolPct: percentage for the community pool in basis points (100 = 1%, 10000 = 100%).
- govStakerPct: percentage for governance stakers in basis points (100 = 1%, 10000 = 100%).
Requirements:
- Percentages must sum to exactly 10000 (100%).
- Each percentage must be between 0 and 10000 inclusive.
Example:
Example
1ChangeDistributionPct(
2 7000, // 70% to liquidity stakers
3 2000, // 20% to devops
4 1000, // 10% to community pool
5 0, // 0% to governance stakers
6)
Only callable by admin or governance.
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/emission" -func "ChangeDistributionPct" -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "gnoland-1" -remote "http://127.0.0.1:26657" ADDRESSgnokey query -remote "http://127.0.0.1:26657" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoswap/emission" -func "ChangeDistributionPct" -args $'' -args $'' -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 "http://127.0.0.1:26657" call.tx