v16

package
v23.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DAI/OSMO pool ID
	// https://app.osmosis.zone/pool/674
	// Note, new concentrated liquidity pool
	// spread factor is initialized to be the same as the balancers pool spread factor of 0.2%.
	DaiOsmoPoolId = uint64(674)
	// Denom0 translates to a base asset while denom1 to a quote asset
	// We want quote asset to be DAI so that when the limit orders on ticks
	// are implemented, we have tick spacing in terms of DAI as the quote.
	DesiredDenom0 = "uosmo"
	TickSpacing   = 100

	// isPermissionlessPoolCreationEnabledCL is a boolean that determines if
	// concentrated liquidity pools can be created via message. At launch,
	// we consider allowing only governance to create pools, and then later
	// allowing permissionless pool creation by switching this flag to true
	// with a governance proposal.
	IsPermissionlessPoolCreationEnabledCL = false
)
View Source
const NewDenomCreationGasConsume uint64 = 40_000_000

new token factory parameters

at the current gas price of 0.0025uosmo, this corresponds to 0.1 OSMO per denom creation.

View Source
const UpgradeName = "v16"

UpgradeName defines the on-chain upgrade name for the Osmosis v16 upgrade.

Variables

View Source
var (
	ErrMustHaveTwoDenoms = errors.New("can only have 2 denoms in CL pool")
	ErrNoGaugeToRedirect = errors.New("could not find gauge to redirect")
)
View Source
var (
	ATOMIBCDenom = "ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2"
	DAIIBCDenom  = "ibc/0CD3A0285E1341859B5E86B6AB7682F023D03E97607CCC1DC95706411D866DF7"
	USDCIBCDenom = "ibc/D189335C6E4A68B513C10AB227BF1C1D38C746766278BA3EEB4FB14124F1D858"
	SpreadFactor = osmomath.MustNewDecFromStr("0.002")
)
View Source
var Upgrade = upgrades.Upgrade{
	UpgradeName:          UpgradeName,
	CreateUpgradeHandler: CreateUpgradeHandler,
	StoreUpgrades: store.StoreUpgrades{
		Added:   []string{cltypes.StoreKey, cosmwasmpooltypes.StoreKey},
		Deleted: []string{},
	},
}

Functions

Types

type NoDesiredDenomInPoolError

type NoDesiredDenomInPoolError struct {
	DesiredDenom string
}

func (NoDesiredDenomInPoolError) Error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL