Skip to content

Instantly share code, notes, and snippets.

@bwbush
Created July 3, 2022 16:34
Show Gist options
  • Save bwbush/5c3ff4b2e9a0986a5b6906dce4a5baee to your computer and use it in GitHub Desktop.
Save bwbush/5c3ff4b2e9a0986a5b6906dce4a5baee to your computer and use it in GitHub Desktop.
Revenue-Based Loan
{"valueParameterInfo":[["Interest",{"valueParameterFormat":{"contents":null,"tag":"DefaultFormat"},"valueParameterDescription":"The interest paid by the borrower, in DjedUSD."}],["Payment as Percent of Revenue",{"valueParameterFormat":{"contents":null,"tag":"DefaultFormat"},"valueParameterDescription":"The percent of each period's revenue that the borrower must pay the lender."}],["Principal",{"valueParameterFormat":{"contents":null,"tag":"DefaultFormat"},"valueParameterDescription":"The principal provided by the lender, in DjedUSD."}]],"timeParameterDescriptions":[],"roleDescriptions":[["Borrower","The party that borrows the principal and pays back the principal plus interest."],["Lender","The party that lends the principal."],["Revenue Oracle","The oracle that reports the borrow's revenue."]],"contractType":"Other","contractShortDescription":"An unsecured loan where each payment depends upon the borrower's revenue during that period.","contractName":"Revenue-Based Loan","contractLongDescription":"An unsecured loan where each payment depends upon the borrower's revenue during that period. In each period an oracle reports the borrower's revenue, and the borrower must pay a percent of that revenue. The loan ends when principal and interest are all paid.","choiceInfo":[["Revenue",{"choiceFormat":{"contents":null,"tag":"DefaultFormat"},"choiceDescription":"The oracle's report of the borrower's revenue during the preceding time period."}]]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment