v16

package
v0.16.15 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DAI/PERCO pool ID
	// https://app.percosis.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%.
	DaiPercoPoolId = 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 = "ufury"
	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.0025ufury, this corresponds to 0.1 PERCO per denom creation.

View Source
const UpgradeName = "v16"

UpgradeName defines the on-chain upgrade name for the Percosis 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"
)
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