cdp

package
v0.0.0-...-93f430d Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const CollateralizationRatioLimit = 220

CollateralizationRatioLimit set to 220%

Variables

This section is empty.

Functions

func QueryCDP

func QueryCDP(cdc *codec.Codec,
	cliCtx context.CLIContext,
	accAddress sdk.AccAddress,
	collateralDenom string,
) (cdptypes.CDP, bool, error)

QueryCDP queries an individual CDP

func SpamTxCDP

func SpamTxCDP(
	rpcURL string,
	chainID string,
	from string,
	passphrase string,
	collateralDenom string,
	principalDenom string,
	maxCollateral int64,
	appCodec *amino.Codec,
	cliCtx context.CLIContext,
	accAddress sdk.AccAddress,
)

SpamTxCDP sends a transaction to the CDP module

Types

This section is empty.

Jump to

Keyboard shortcuts

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