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:
- liquidityStakerPct: Percentage for liquidity stakers in basis points (100 = 1%, 10000 = 100%)
- devOpsPct: Percentage for devops in basis points
- communityPoolPct: Percentage for community pool in basis points
- govStakerPct: Percentage for governance stakers in basis points
Requirements:
- Percentages must sum to exactly 10000 (100%)
- Each percentage must be 0-10000
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 "topaz-1" -remote "https://rpc.topaz.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.topaz.testnets.gno.land" 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 "topaz-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.topaz.testnets.gno.land" call.tx