Credit Coop
  • About Us
    • Introduction
    • Get in Touch
  • ⚙️About Our Products
    • Secured Line of Credit
      • Line of Credit Features (v1)
        • Cash Flow Financing
        • Deploying a Secured Line of Credit
        • Core Lending Functionality
        • Revenue-Based Lending Operations
        • Collateral Operations
        • Credit Events
    • The Spigot
      • Key features of the Spigot
      • Spigot Roles
        • Owner
        • Operator
  • ⚙️User Documentation
    • User Documentation (v1)
    • User Documentation (v2)
  • ⚙️DEVELOPER MATERIAL
    • Introduction
    • Deployed Contracts
    • V1 Developer Material
      • Architecture (v1)
      • Functions and Methods
        • LineOfCredit.sol
        • Oracle.sol
        • Spigot.sol
        • SpigotedLine.sol
        • Escrow.sol
        • EscrowedLine.sol
        • SecuredLine.sol
        • LineFactory.sol
        • Libraries
        • InterestRateCredit.sol
          • Accrued Interest Calculation
          • 'Interest Accrued' contract flow
        • Advanced Jargon
      • Repaying Debt - Function View
      • Valuation Oracle
      • Arbiter Role (v1)
        • liquidate() and declareInsolvent()
        • Spigot related functions
        • enableCollateral()
      • Edge Cases and Risk Situations
      • Security Audits
  • 💼Legal
    • Important Legal Notice
    • Terms of Use
    • Privacy Policy
Powered by GitBook
On this page

Was this helpful?

  1. DEVELOPER MATERIAL
  2. V1 Developer Material
  3. Functions and Methods

Libraries

LineLib.sol

Stores basic functions for the Line of Credit e.g. health statuses and transferring tokens

CreditLib.sol

Stores basic functions for interacting with Lender positions e.g. computing ids for individual credit lines, accruing interest and repaying debt

CreditListLib.sol

Stores functionality for interacting with collections of Lender positions on a Line e.g. adding and removing positions or re-sorting positions in the repayment queue

SpigotLib.sol

Stores functionality for claiming revenue, updating revenue splits, updating stakeholder addresses and all other Spigot functions

SpigotedLineLib.sol

Stores functionality related to a Line which is secured by a Spigot

EscrowLib.sol

  • Calculates the total value of collateral assets escrowed

  • Calculates collateral ratio based on collateral value

  • Ensures that whitelisted (enabled) collateral enabled has a price feed

LineFactoryLib.sol

Stores functionality related to deploying multiple contracts simultaneously

MutualConsent.sol

  • Forked from https://github.com/IndexCoop/index-coop-smart-contracts/blob/1acec44229b3aaf4a40dad2095b0cc6accb8fbfc/contracts/lib/MutualUpgrade.sol

  • Essentially a 2/2 multisig baked into your contract

  • Ensures that two predefined addresses both sign a transaction with the same inputs and then executes the function with those parameters.

Chainlink Denominations

PreviousLineFactory.solNextInterestRateCredit.sol

Last updated 2 years ago

Was this helpful?

⚙️