LogoLogo
  • Introduction
    • Kujira Empowers Everyone
      • Ecosystem
      • Where Everyone Can Be a Whale
      • Grown-Up DeFi (GUD)
    • Why Kujira
      • User and Developer Experience
      • Values
        • Principles
        • Sustainability
    • Meet Team Kujira
  • Kujira Ecosystem
    • Our Products
    • Wider Ecosystem
    • Kujira Roadmap
    • How to Participate
    • Moving Funds to Kujira
    • Shipping Lane
    • Security
    • Media Coverage
    • Links
  • dApps & Infrastructure
    • Basics
    • Welcome to Kujira (Landing Page)
    • BLUE (Central Hub)
      • Dashboard
      • Wallet
      • Swap
      • IBC / Bridge
      • Mint
      • Stake
      • Govern
      • Developer
      • Product Guides
        • How to Send Tokens
        • How to Convert balances to KUJI
        • How to Swap tokens
        • How to Bridge tokens
        • How to use IBC
        • How to Mint USK
        • How to Stake KUJI
        • How to Redelegate KUJI
        • How to Unstake KUJI
        • How to Check the Status of Governance Proposals and/or Vote
        • How to Nominate a Candidate for the Senate
        • How to View Information on Senate Candidates
    • BOW (Liquidity Engine)
      • Dashboard
      • Pools
        • Featured Pools
        • All Liquidity Pools
          • Pool Overview
          • Provide to a Pool
          • Leveraged Liquidity
          • Stake LP with a Pool
      • Swap
      • Stake USK
        • Overview
        • Stake / Unstake
        • Rewards
      • Product Guides
        • How to View LP positions
        • How to Add Liquidity
        • How to Remove Liquidity
        • How to Provide Incentives
        • How to Check the Reward Schedule of a Pool
    • FIN (DEX)
      • Overview
      • How to Use FIN
        • Search and Filter by View
        • Price Chart and Charting Tools
        • Orderbook status and Recent Trades
        • Personal Order Activity
        • Spot and Margin Trade UI
          • Isolated FIN Margin
      • Listing tokens on FIN
      • Coingecko API
      • Product Guides
        • How to Buy KUJI Using axlUSDC
        • How to Sell ATOM for USK
        • How to List a New Pair
        • How to Toggle View to see Certain Pairs
        • How to Save Favourite Pairs
        • How to Check Unclaimed Orders
        • How to Navigate to BOW Pools
        • How to Look at Your History
    • FINDER (Explorer)
      • Product Guides
        • How to View a Wallet's Balance
        • How to Bookmark Wallets for Tracking
        • How to View and Manage Bookmarked Wallets
    • GHOST (Money Market)
      • Basics
      • Dashboard
      • Borrow
      • Lend
    • ORCA (Liquidations)
      • Basics
        • Lending Markets
          • Analytics
          • USK Lending Markets
            • Isolated FIN Margin
          • xAsset Lending Markets
      • How to Integrate ORCA
      • Product Guides
        • How to Bid on Collateral
        • How to View Active Bids on Collateral
        • How to View the Analytics on a Liquidation Market
    • PILOT (Launchpad)
    • POD (Cross-chain Staking)
      • Product Guides
        • How to Stake any Cosmos Layer 1 Token
        • How to Redelegate any Cosmos L1 Token
        • How to Unstake any Cosmos L1 Token
    • Pond (Developer Toolkit)
    • (Retired) SENATE (Grant Oversight)
      • Senators
      • Constitution
      • Treasury
      • Contacting the Senate
      • Past Senate Proposals
      • Past Senate Meetings
      • Transparency
    • Sonar (Native Wallet)
      • Basics
      • Setup
        • Create a wallet
        • Fund your wallet
        • Customize your settings
      • Using Sonar
        • Mobile
          • Home
          • Swap
          • Launch
            • Trade
            • Mint
            • Borrow
            • Liquidate
            • Launch (PILOT)
            • Buy gift cards with Bidali
            • Fin orders (dashboard)
            • Mint & manage USK positions (dash)
            • Borrow on GHOST (dashboard)
          • Stake
          • Send/Receive
        • Desktop
    • USK (Stablecoin)
      • Basics
      • Technical Specifics
      • Use Cases
      • Transparency
      • How to Mint USK
  • Developers
    • Developer Kickstart Page
    • Smart Contracts
      • Token Factory
      • Price Oracle
      • Scheduler
      • Entropy Beacon
    • Indexers
      • SubQuery
    • Core Module Accounts
    • List of Tokens
    • dApp Front Ends
      • FIN
    • Contacting the Team
  • Tokenomics
    • KUJI Token
      • Staking KUJI
      • Staking Tiers and Symbols on BLUE, FIN, and ORCA
      • KUJI Sustainability
      • Kujira Governance
      • Lending and Borrowing KUJI
      • Buying Kujira NFTs
  • Validators
    • Run a Node
      • Create a validator
      • Oracle Price Feeder
      • Tips
    • Cosmovisor Setup
    • Community Tooling
    • Staking Rewards
    • Genesis Validator Allocation
  • Governance
    • Staking
      • Staking Overview
      • Redelegate
      • Unbond
      • Slashing
      • Staking UI
    • Vote on Proposals
    • Submit a Governance Proposal
    • (Retired) The Kujira Senate
      • Treasury
    • Discord Governance Forum
    • Capybara Labs
    • Smart Stake
  • Our Venture-Builder Program
    • Overview
  • Community
    • Kujira Amplifier
    • Kujira Communities
    • Kuji Kast
    • Kujira News
    • Kujira Support
      • Support Ticket System
      • Cosmobot
    • Kujira Social Media
      • Discord
      • Telegram
      • Twitter
      • WinkHUB
      • Medium
      • Reddit
      • Instagram
      • YouTube
  • Help Center
    • Kujira Classroom
    • FAQ
    • Handy Tools
    • Glossary
    • Common Error Messages
  • Brand Assets
    • Colors
    • Logo Options
      • Kujira Brand
      • Native Token Logos
      • Product Logos
      • Legacy Logos
    • Fonts
Powered by GitBook
On this page
  • What is GHOST?
  • Borrowing on GHOST
  • General example
  • Lending on GHOST
  • How interest works on GHOST
  • How GHOST has integrated ORCA
  • Liquidation Alerts
Edit on GitHub
  1. dApps & Infrastructure
  2. GHOST (Money Market)

Basics

PreviousGHOST (Money Market)NextDashboard

Last updated 1 year ago

What is GHOST?

GHOST is Kujira's premier Money Market. As a decentralized money market, GHOST allows would-be lenders and borrowers to cooperate by providing a convenient supply-demand framework. Furthermore, it generates attractive returns for market participants without relying on artificial incentives.

Since GHOST is a decentralized money market, suppliers are covered even if borrowers fail to repay their loans. Furthermore, since all loans on GHOST are overcollateralized, borrowers don't have to apply for loans or go through credit checks. Opening or closing a loan and supplying or redeeming supplied assets is a near instant process that can be done at nearly anytime. The only exception is when the utilization of an asset reaches 100%. In this case, supplied assets of that type cannot be redeemed until some are returned (or more are supplied) to the platform.

Suppliers supply assets to GHOST to earn variable interest on those provided assets based on their overall utilization by borrowers. Borrowers borrow assets supplied on GHOST (by others) in order to participate in financial speculation or take out loans without selling underlying assets. Borrowers are charged variable interest over time dependent on the borrowed assets' overall utilization by borrowers. This interest rate cycles between high and low over time based on inherent market demand and GHOST's framework. .

When borrowers fail to pay back their loans in time due to decreases in collateral value, increases in funds borrowed, or accrued interest--provided collateral is liquidated via ORCA. .

Borrowing on GHOST

All borrowers must put up collateral (in asset "C") in order to take out a loan (in a different asset "L")--this collateral is not supplied to GHOST in the same sense as with "suppliers". The collateral cannot be borrowed by other users and it sits on the platform mainly as a guarantee to ensure the underlying integrity of a corresponding loan. This is necessary in case borrowers exceed max safety on their loans in which case their deposited collateral gets liquidated on ORCA and they get to keep any borrowed funds.

Depending on the perceived risk relationship between the supplied collateral asset (asset C) and borrowed loan asset (asset L), there is an underlying max allowable loan-to-value (LTV) ratio belonging to that loan. Say the value of the provided collateral is vcv_{c}vc​and the value of the borrowed loan is vl,v_{l},vl​,then the current LTV of that loan isvlvc\frac{v_{l}}{v_{c}}vc​vl​​(any decimal can be converted into a percentage by multiplying it by 100%).

For stablecoins borrowed against provided stablecoins, the loan is considered relatively safe so they have slightly higher max allowable LTVs. For tokens borrowed against liquid staking derivative versions of themselves, they generally have a higher max allowable LTV which depends on each particular case. And in almost every other case, when borrowing one asset against another unrelated asset, the max allowable LTV is 60%. The only exception is when borrowing funds against provided KUJI collateral. The max allowable LTV is slightly lower to create less instability in KUJI price.

General example

Now, for a more concrete example. Let's say at time 000 user U has provided X units of asset C to borrow Y units of assets L; the prices of asset C and L at time t respectively are pc(t)p_{c}(t)pc​(t)and pl(t);p_{l}(t);pl​(t); the max allowable loan-to-value (LTV) of asset C as collateral to asset L as a loan is K; and I(t)I(t)I(t)is a function representing the instantaneous variable interest rate of asset Y over time. Then, the borrowed funds (the Y units of L), will be liquidated at any future time ttt if

K<value of borrowed loan + accrued interest until time tvalue of provided collateral=ypl(t)+ypl(t)∫0tI(s)dsxpc(t)=ypl(t)xpc(t)(1+∫0tI(s)ds).K < \frac{ \text{value of borrowed loan }+\text{ accrued interest until time } t}{ \text{value of provided collateral}}=\frac{yp_{l}(t)+yp_{l}(t)\int\limits_{0}^{t}I(s)ds}{xp_{c}(t)}=\frac{yp_{l}(t)}{xp_{c}(t)}(1+\int\limits_{0}^{t}I(s)ds).K<value of provided collateralvalue of borrowed loan + accrued interest until time t​=xpc​(t)ypl​(t)+ypl​(t)0∫t​I(s)ds​=xpc​(t)ypl​(t)​(1+0∫t​I(s)ds).

An easier way to think about the maximum allowable LTV is to understand that the interest rate reflects the amount of extra funds you will need to pay back (if you keep your loan open for a sustained period of time). Any extra funds you need to pay back increase your position's LTV and get you closer to liquidation. LTV can also change in other ways. If the price of the asset you provided as collateral goes down, then the LTV will increase. Similarly, if the price of the asset you borrowed goes up, then the LTV will increase. Of course, the reverse can also happen, and push the LTV lower--this is why, it is generally recommended to borrow stablecoins and use relatively stable or high quality assets you are bullish on as collateral (unless you are experienced).

The simple mental calculation with APR is that when your current loan amount is vlv_{l}vl​ and your yearly interest rate is i%, then assuming a constant interest rate, in two months, your accrued interest will be vl∗i%6v_{l}*\frac{i\%}{6} vl​∗6i%​since only 1/6th of a year would have passed (assuming no changes in the loan value).

More advanced examples of how to understand and work with borrowing can be found under advanced tutorials.

Lending on GHOST

All lenders on GHOST provide liquidity by lending assets to the platform and get paid a variable interest rate as compensation. When users deposit N units of an asset called “TOKEN” into the platform, they will receive N liquid units of an asset called “xTOKEN” in their wallet.

xTOKEN is similar to a receipt token that represents a claim to lent TOKEN on GHOST. xTOKEN can be traded on FIN, sent to other wallets, or used with ORCA to bid on liquidations. This is especially attractive as units of xTOKEN automatically accrue interest that is collected from TOKEN borrowers’ open loan positions on GHOST. When the lender eventually redeems their xTOKEN, they will receive back all their TOKEN and some extra TOKEN corresponding to that accrued interest.

For example, if you lend 10 ATOM on GHOST, you will receive 10 xATOM in your wallet. Say you leave those ATOM lent to GHOST for a few months and redeem your ATOM at that time. Depending on utilization levels and how much interest was accrued during that period of time from other ATOM borrowers, you may receive back 10 ATOM, 10.1 ATOM, 11 ATOM, etc.

Using xAssets to liquidate collateral on ORCA is particularly exciting because doing so is equivalent to selling the underlying xTOKEN at a local market top (i.e. when it is most expensive) at 11−30%=10.7=142.8%\frac{1}{1-30\%}=\frac{1}{0.7}=142.8\%1−30%1​=0.71​=142.8% of (or 42.8% above) the maximum possible market price at that time.

How interest works on GHOST

All interest rates on GHOST are represented as yearly APR's, as this is generally more convenient for users who often think on longer time scales.

Variable interest rates increase with higher utilization and decrease with lower utilization. This serves two purposes: 1. encourage new suppliers and incentivize borrowers to unwind their loans and return borrowed assets in hot markets; 2. discourage new suppliers and make it more attractive for borrowers to open loans in slow markets.

Asset utilization refers to the ratio of borrowed assets to supplied assets for an asset on GHOST. For example, suppose 1000 users collectively provide 1 million ATOM to GHOST, and 300 users collectively borrow 572,138 ATOM on GHOST. In that case, ATOM's utilization on GHOST is 572,1381,000,000=0.572138=57.2138%\frac{572,138}{1,000,000}=0.572138=57.2138 \%1,000,000572,138​=0.572138=57.2138%. Based on 1. and 2. asset utilization rates will often cycle between high and low over time.

GHOST uses an exponential algorithm that spikes the interest rate sharply once utilization hits around 60% to encourage asset borrow to supply ratios to stay within certain boundaries. Generally, the borrow interest rate for an asset is a few percent higher than its supply interest rate. This accounts for the inherent risk premium that accompanies borrowing.

How GHOST has integrated ORCA

ORCA has been overhauled in order to smoothly integrate GHOST. In this framework, each GHOST collateral and borrowable asset pair has its own corresponding liquidation queue on ORCA. In general, demand exists to liquidate outstanding GHOST loans on ORCA, because it’s possible to acquire the liquidated collateral at a discount and achieve a tidy profit.

For example, if GHOST users are able to borrow ATOM (lent by suppliers) against their own provided USK collateral, then an axlUSDC-xATOM liquidation queue will exist on ORCA–where users can bid on liquidated axlUSDC using xATOM at a discount of up to 30%. Note 1. the maximum allowed LTV and maximum allowed discount on ORCA take each other into account and 2. when a user bids with their xATOM on ORCA to purchase discounted axlUSDC, they are forfeiting their receipt/claim to the corresponding supplied ATOM on GHOST. .

That is to say, after a liquidator purchases liquidated axlUSDC at a 30% discount, since the position is liquidated when the LTV of the borrowed ATOM loan position reaches 60%--this ensures that the loan is approximately 166% overcollateralized at the time of liquidation–and even after a 30% discount is applied, the position is still 116.7% overcollateralized.

Therefore, say the liquidator puts down $70 worth of xATOM on ORCA to purchase the $100 of liquidated axlUSDC at a 30% discount. The liquidator receives $100 of axlUSDC, and ORCA receives $70 worth of xATOM which go back to GHOST to replenish the original lender’s supplied ATOM.

Assuming the loan was liquidated immediately once it reached 60% LTV, then only $60 worth of xATOM was actually borrowed from the platform. In this way, GHOST ends up with an extra $10 of xATOM that can be further used to redeem borrowers. Most of the time, the loan will be liquidated for a significantly smaller discount due to user competition, so GHOST pockets more profit in general.

In the case of assets with higher maximum allowable LTVs, the maximum possible discount on an ORCA queue will be smaller such as with the axlUSDC-USK queue where the maximum possible discount is only 10%. This ensures the integrity of the underlying loan.

Liquidation Alerts

As an aside, since there are many different liquidation queues in the new ORCA/GHOST framework, ORCA alerts have been conveniently added to the top right of most of our 1st party ecosystem dApps. Kujira ecosystem users can conveniently see when GHOST (or USK mint) positions are at risk via alerts that detail which assets are closest to getting liquidated (including how much is at risk of being liquidated and how close they are to liquidation). This allows users to anticipate future liquidations and move corresponding funds in advance.

Here's more about how the interest rate works
Here's more about how liquidations work on GHOST
Page cover image