Libraries
Last updated
Was this helpful?
Stores basic functions for the Line of Credit e.g. health statuses and transferring tokens
Stores basic functions for interacting with Lender positions e.g. computing ids for individual credit lines, accruing interest and repaying debt
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
Stores functionality for claiming revenue, updating revenue splits, updating stakeholder addresses and all other Spigot functions
Stores functionality related to a Line which is secured by a Spigot
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
Stores functionality related to deploying multiple contracts simultaneously
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.
Last updated
Was this helpful?
Was this helpful?