2018-06-26 19:00:12 -07:00
|
|
|
package types
|
|
|
|
|
|
|
|
import (
|
|
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
|
|
)
|
|
|
|
|
2019-06-28 13:11:27 -07:00
|
|
|
// names used as root for pool module accounts:
|
|
|
|
//
|
2019-07-18 05:43:56 -07:00
|
|
|
// - NotBondedPool -> "not_bonded_tokens_pool"
|
2019-06-28 13:11:27 -07:00
|
|
|
//
|
2019-07-18 05:43:56 -07:00
|
|
|
// - BondedPool -> "bonded_tokens_pool"
|
2019-06-28 13:11:27 -07:00
|
|
|
const (
|
2019-07-18 05:43:56 -07:00
|
|
|
NotBondedPoolName = "not_bonded_tokens_pool"
|
|
|
|
BondedPoolName = "bonded_tokens_pool"
|
2019-06-28 13:11:27 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
// NewPool creates a new Pool instance used for queries
|
|
|
|
func NewPool(notBonded, bonded sdk.Int) Pool {
|
2018-06-26 19:00:12 -07:00
|
|
|
return Pool{
|
2019-06-28 13:11:27 -07:00
|
|
|
NotBondedTokens: notBonded,
|
|
|
|
BondedTokens: bonded,
|
2018-06-26 19:00:12 -07:00
|
|
|
}
|
|
|
|
}
|