Kuma Protocol
WebsiteTwitterGovernance Forum
  • Introduction
  • KUMA Protocol
    • How does it work ?
    • Regulated NFTs
      • Real World Assets, onchain
      • Mimo Capital AG, a regulated entity
      • KUMA NFTs
    • Composable Interest-bearing tokens
      • KUMA Swap
        • User Scenario 1: Kuma Bond Token With Swap
      • KUMA Interest-bearing tokens
        • USK
        • FRK
        • EGK
      • Interest accrual
    • DeFi Integrations
      • DEXes Protocols
      • CDP Protocols
      • Lending Protocols
      • Yield Aggregators Protocols
      • Fixed Yield Protocols
      • Bridges
  • DAO & Governance
    • What is MIMO (Governance Token) ?
      • Where can i get MIMO ?
    • vMIMO and Voting Power
    • Governance process
      • Govern with MIMO tokens
    • Proposal Framework
      • KUMA Integration Request (KIR)
      • KUMA Governance Proposal (KGP)
      • KUMA Improvement Protocol (KIP)
    • Multisig
    • KUMA Emergency Guardians
  • developers
    • Developer Guide
    • Smart Contract Architecture
      • KUMA Interest Bearing Token (KIBT)
        • Interest Bearing Logic
        • ERC-20 Compliance and Updates
        • Balance Accounting
      • Decentralized Access Control
        • Pause/Unpause Access Control
      • KUMASwap
        • sellBond
        • buyBond
      • KUMA Bond Clone Tokens (KBCT)
      • Keepers
      • Deprecation Mode
      • Rate Feed
        • Central Bank Rate Validation
        • MCAGAggregator Volatility Check
    • Code Repositories
    • Contract Addresses
      • Ethereum
      • Polygon PoS
      • Linea
      • Mantle
      • Telos EVM
      • Neon EVM
  • Ressources
    • User Guides
      • Setting up
      • Managing transactions on EVM chains
      • Troubleshooting
      • Lock MIMO for vMIMO
    • Links
    • Security & Audits
    • Glossary
    • Press Kit
Powered by GitBook
On this page
  • Requirements
  • Burned MIBT Calculation
  1. developers
  2. Smart Contract Architecture
  3. KUMASwap

buyBond

PrevioussellBondNextKUMA Bond Clone Tokens (KBCT)

Last updated 2 years ago

Requirements

The following conditions must be met to buy a KUMA NFT from the contract:

  • The contract must be unpaused

  • The bought bond must be in reserve

Burned MIBT Calculation

The KUMASwap contract will burn KIBT from the user's balance before sending the Bonds NFT. A KBCToken is issued during buyBond if the bond's value (i.e. the value of the bond given its coupon) is greater than that of the bond's realized value (i.e. how much KIBT accrual the bond has backed).

bondValue=bond.principal∗(bond.couponelapsedTime)bondValue = bond.principal * (bond.coupon^{elapsedTime})bondValue=bond.principal∗(bond.couponelapsedTime)
bondRealizedValue=bond.principalR0∗R1bondRealizedValue = \frac{bond.principal}{R_0}* R_1bondRealizedValue=R0​bond.principal​∗R1​
BurnedAmount=bondRealizedValueBurnedAmount = bondRealizedValueBurnedAmount=bondRealizedValue

Where is the R0R_0R0​is the KIBT cumulativeRate at the time of depositing the bond to the KUMASwap contract and R1R_1R1​ is the KIBT cumulativeRate at the time of buying the bond