API Reference kujira v0.1.80

Modules

Documentation for Kujira.

Kujira's on-chain Market Maker for FIN.

A CDP contract that integrates BOW with GHOST, allowing LP tokens to be used as collateral when borrowing the underlying tokens that make up the LP position.

An item representing the collateral deposit vs debt position of a particular address for a particular market

The current deposit and borrow totals

A instance of the BOW Stable Market Making strategy.

An on-chain LSD strategy adapter, where the redemption rate can be directly read and where the pool can re-balance itself via the configured LSD provider

An off-chain LSD strategy adapter. Where the redemption rate is calculated by oracle prices, and an arbitrage incentive can be offered on the ask side of the book to rebalance to the quote side

The specific configuration for the Lsd strategy.

A instance of the BOW Stable Market Making strategy.

The specific configuration for the Stable strategy.

A instance of the BOW XYK Market Making strategy.

The current status of deposits to an LP pool

A Cache Strategy for Memoize that doesn't cache {:error, _} patterns. Useful to protect against gRPC connection failures and temporary errors getting permanently cached

A Kujira.Token with an associated amount

Convenience methods for querying CosmWasm smart contracts on Kujira

Kujira's 100% on-chain, central limit order book style decentralized token exchange.

The aggregate of all existing orders on the book

A specific price point in the order book summary

An individual order placed on a Pair

An individual exchange pair between a base token and a quote token.

An individual trade on an individual pair. For a market swap where orders at multiple price points are consumed, the trade is aggregated across all orders at each price.

Kujira's lending platform.

A Ghost market takes deposits of collateral_token, and allows borrowing of the vault.deposit_token, up to the maximum LTV as quoted by the oracle denoms

The current deposit and borrow totals

An item representing the collateral deposit vs debt position of a particular address for a particular market

A central vault for deposits of a specific deposit_token, which is lent to the Vault's markets, and interest earned on deposits

The current deposit and borrow totals

Stores a gRPC connection to chain core node

Utility functions for querying the on-chain oracle

Methods for querying the Orca Liquidation Queues, and related data

A bid placed by a user to buy liquidated collateral at a specific discount from the market price

An individual liquidation, as seen by Orca. These can be duplicated as the liquidating market will also have something that represents the liquidation, but these may be different.

We define a Market, as far as Orca is concerned, in order to be able to standardise and aggregate the health of the various markets that any given liquidation queue can liquidate

A pool of bid tokens at a specific premium %, for a specific Queue

An individual Orca Liquidation Queue

Metadata for tokens on the Kujira Blockchain

Metadata for a token

The IBC trace of a token

Kujira's decentralized stablecoin

A contract that owns the minting rights for USK, and whitelists individual contracts for USK minting

A margin contract for USK "wraps" the basic Market contract, allowing minted USK to purchase collateral from FIN, before posting it as collateral to a regular position. It also allows a position holder to take profits by minting more USK against an appreciating collateral asset, or repaying some of the USK debt to cover a falling collateral price

A USK market taked deposits of collateral_token, and allows minting of USK, up to the maximum LTV as quoted by the oracle denoms

The current mint total

An item representing the collateral deposit vs debt position of a particular address for a particular market

Mix Tasks