Merge PR #3394: Update staking string types
This commit is contained in:
parent
dc75eb4eb8
commit
6b02e08160
|
@ -78,10 +78,10 @@ func DefaultParams() Params {
|
||||||
// String returns a human readable string representation of the parameters.
|
// String returns a human readable string representation of the parameters.
|
||||||
func (p Params) String() string {
|
func (p Params) String() string {
|
||||||
return fmt.Sprintf(`Params:
|
return fmt.Sprintf(`Params:
|
||||||
Unbonding Time: %s)
|
Unbonding Time: %s
|
||||||
Max Validators: %d)
|
Max Validators: %d
|
||||||
Max Entries: %d)
|
Max Entries: %d
|
||||||
Bonded Coin Denomination: %s`, p.UnbondingTime,
|
Bonded Coin Denom: %s`, p.UnbondingTime,
|
||||||
p.MaxValidators, p.MaxEntries, p.BondDenom)
|
p.MaxValidators, p.MaxEntries, p.BondDenom)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -71,10 +71,10 @@ func (p Pool) bondedTokensToNotBonded(bondedTokens sdk.Int) Pool {
|
||||||
// String returns a human readable string representation of a pool.
|
// String returns a human readable string representation of a pool.
|
||||||
func (p Pool) String() string {
|
func (p Pool) String() string {
|
||||||
return fmt.Sprintf(`Pool:
|
return fmt.Sprintf(`Pool:
|
||||||
Loose Tokens: %s
|
Loose Tokens: %s
|
||||||
Bonded Tokens: %s
|
Bonded Tokens: %s
|
||||||
Token Supply: %s
|
Token Supply: %s
|
||||||
Bonded Ratio: %v`, p.NotBondedTokens,
|
Bonded Ratio: %v`, p.NotBondedTokens,
|
||||||
p.BondedTokens, p.TokenSupply(),
|
p.BondedTokens, p.TokenSupply(),
|
||||||
p.BondedRatio())
|
p.BondedRatio())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue