Ideamarket Docs
  • Introduction
  • 1-minute onboarding
  • Selling old tokens & unstaking
  • Navigating the app
    • How to make a good post
    • Citations
    • Post page
    • User Profile
    • Why rate posts?
  • $IMO token
  • So we've posted your thought
  • Offical T-Shirt
  • Join us on Discord
  • Build with us!
  • Use Cases
    • The New News
    • The Last Internet Argument
    • DeSci credibility, citations, and income
    • DAOs: Activism-for-profit
    • Prediction markets for public opinion
    • Crazy ideas
  • Roadmap
    • Partnerships & Integrations
    • Global knowledge graph
    • Bounties
  • PHILOSOPHY
    • Future epistemology (Ribbonfarm)
    • Status vs Truth
    • Summary of hypotheses
    • Heat Death of the Infoverse
    • Sun vs Wind
    • Bullshit recapture technology
    • Mirroring the world brain
    • Increasing population-scale comprehension
    • Journalism must become the trust-earning business
    • Exit the intellectual mafia
    • An Open Letter to Revolutionaries
    • Ideamarket Art
    • Does Ideamarket "measure truth"?
    • Beware "cryptographic truth" and the ledger of record
    • Meme Vault
  • FAQ
    • Why Arbitrum?
  • Past Experiments
    • Social account markets
    • The URL Market
  • Contracts
    • Quantstamp Audit
    • Overview
    • Bonding curve
    • IdeaTokenFactory
    • IdeaTokenExchange
    • InterestManager
    • IdeaTokenVault
    • MultiAction
    • IdeaTokenNameVerifier
  • Legal
    • Terms of Service
Powered by GitBook
On this page

Was this helpful?

  1. Contracts

InterestManager

The task of the InterestManager is to invest Dai into an interest-generating protocol. Currently this is implemented as InterestManagerCompound which invests into Compound.

  • invest: Invests Dai to generate interest

    • uint amount: The amount of Dai to invest

    • returns: The amount of cDai received

  • redeem: Redeems Dai

    • address recipient: The address to receive the redeemed Dai

    • uint amount: The amount of Dai to redeem

    • returns: The amount of burned cDai

  • redeemInvestmentToken: Redeems Dai, but with the amount parameter being the amount of cDai to convert instead of the amount of Dai to redeem.

  • accrueInterest: Calls the underlying protocol to update the accrued interest which in this case is cDai.accrueInterest()

  • withdrawComp: Transfers COMP tokens to the compRecipient

PreviousIdeaTokenExchangeNextIdeaTokenVault

Last updated 4 years ago

Was this helpful?