Inter-protocol Underwriting Middleware
Incentive Compatible and Decentralized Moody's (+ insurance)
Last updated
Incentive Compatible and Decentralized Moody's (+ insurance)
Last updated
Any entity can delegate the underwriting process for any yield source to a set of managers from the RAMM protocol.
These entities we call (liquidity)suppliers can be, but not limited to,
other DAOs that want risk assessment/structuring for their treasuries by a non-centralized party,
protocols looking for assessment and insurance in complex yield sources they want to invest in,
protocols that want to lend to a counterparty but are in need of an underwriting and structuring system.
lending protocols who want assessment + insurance of the borrower's creditworthiness or collateral.
For a given yield source a supplier(i.e DAOs, protocols) is considering investing in, the following procedure will be undertaken by the protocol.
Supply Y amount of capital to the Middleware
, which triggers the investToYieldSource
function.
The Middleware
then invests the supplier's Y amount and the assessors' X amount of capital to the yield source.
The Middleware
escrows the IOU token to itself and gives the supplier a promissory note for its senior tranche portion of the investment.
Note: At no point does the supplier's capital is escrowed to the
Middleware
, they are invested directly to the yield source contract within a tx, minimizing smart contract risk.
During the post-approval phase after the yield source has been supplied, anyone can still participate in the AMM as a tool to hedge or gain more exposure to the yield source. It's a zero-sum prediction market.
When the supplier decides to withdraw, it will send a message to the Middleware
, which will invoke its withdrawFromYieldSource
function. This will withdraw the invested X+Y amount * whatever returns the yield source has generated. As in 2), the supplier will receive its investment and its senior portion of the returns within a single tx.
The remaining capital would be escrowed back to the AMM from the Middleware
for the assessors to redeem.
Managers and hedgers can redeem their longZCB
and shortZCB
tokens from the AMM, where their redemption price is going to be computed from the returns the yield source has generated.
A yield source needs to be proposed to the protocol by a (anyone associated with the supplier DAO and the yield source such as strategists, loan originators, borrowers, etc)
During this phase, the will buy from the if they deem the yield source to have high-risk adjusted returns. Hedgers(investors in the supplier protocol) will buy shortZCB
tokens if they want to hedge the risk in the new yield source. The (capital used to buy longZCB
- capital used to buy shortZCB
) = X amount will be directed to the Middleware
contract.
When is met, the protocol participants have essentially decided the yield source is worth investing in. The supplier can then supply Y amount of capital to the yield source, executed through the following atomic transaction.
Also, note that the supplier may opt out from the yield source even if is met, by simply not supplying to the Middleware