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.
|
||||
func (p Params) String() string {
|
||||
return fmt.Sprintf(`Params:
|
||||
Unbonding Time: %s)
|
||||
Max Validators: %d)
|
||||
Max Entries: %d)
|
||||
Bonded Coin Denomination: %s`, p.UnbondingTime,
|
||||
Unbonding Time: %s
|
||||
Max Validators: %d
|
||||
Max Entries: %d
|
||||
Bonded Coin Denom: %s`, p.UnbondingTime,
|
||||
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.
|
||||
func (p Pool) String() string {
|
||||
return fmt.Sprintf(`Pool:
|
||||
Loose Tokens: %s
|
||||
Loose Tokens: %s
|
||||
Bonded Tokens: %s
|
||||
Token Supply: %s
|
||||
Bonded Ratio: %v`, p.NotBondedTokens,
|
||||
Token Supply: %s
|
||||
Bonded Ratio: %v`, p.NotBondedTokens,
|
||||
p.BondedTokens, p.TokenSupply(),
|
||||
p.BondedRatio())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue