Skip to main content

Module Parameters

The Alliance module has three parameters set at genesis or following a successful governance proposal. These parameters are critical for a well-functioning integration.

RewardDelayTime

Defines the delay between the time an Alliance is created and the time users can earn rewards for their Alliance delegations.

params.go
Copy

_5
RewardDelayTime
_5
_5
Types: int64 (`time.Duration` in nanos)
_5
_5
Default: 1 day
_5
_5
_5
_5
_5
_5
_5
_5
_5
_5
_5
_5
_5
_5
_5

TakeRateClaimInterval

Interval of time on each EndBlocker when the module claims the take rate from all Alliance assets with a positive take rate. For more information on the TakeRate, visit the rewards page.

params.go
Copy

_5
TakeRateClaimInterval
_5
_5
Types: int64 (`time.Duration` in nanos)
_5
_5
Default: 5 mins
_5
_5
_5
_5
_5
_5
_5
_5
_5
_5
_5
_5
_5
_5
_5

LastTakeRateClaimTime

Timestamp of the last successful attempt at claiming the TakeRate from Alliance assets. Used to determine when the next TakeRate claim can occur.

params.go
Copy

_5
LastTakeRateClaimTime
_5
_5
Types: int64 (`time.Time` in nanos)
_5
_5
Default: Genesis timestamp
_5
_5
_5
_5
_5
_5
_5
_5
_5
_5
_5
_5
_5
_5
_5

RewardDelayTime

Defines the delay between the time an Alliance is created and the time users can earn rewards for their Alliance delegations.

TakeRateClaimInterval

Interval of time on each EndBlocker when the module claims the take rate from all Alliance assets with a positive take rate. For more information on the TakeRate, visit the rewards page.

LastTakeRateClaimTime

Timestamp of the last successful attempt at claiming the TakeRate from Alliance assets. Used to determine when the next TakeRate claim can occur.

params.go
CopyExpandClose

_5
RewardDelayTime
_5
_5
Types: int64 (`time.Duration` in nanos)
_5
_5
Default: 1 day
_5
_5
_5
_5
_5
_5
_5
_5
_5
_5
_5
_5
_5
_5
_5

The Alliance module also supports bootstrapping an Alliance-enabled chain by adding Alliances to the assets list in the genesis file under the Alliance property.