Integration Example

Routing Contract

One way for external protocols to integrate Perpetual Yield Tranches is to create a Routing Contract around the IdleCDO contracts.
Integrators use a routing contract to keep track of users' deposits in Perpetual Yield Tranches originally made through their platforms.

How it works

  1. 1.
    Users deposit funds into the Routing Contract;
  2. 2.
    The Routing Contract moves funds deposited into the IdleCDO contracts on behalf of users;
  3. 3.
    IdleCDO contract issues IdleCDO_AA_StrategyName (if Senior tranche) or IdleCDO_BB_StrategyName (if Junior tranche) tokens to users.


An example of Routing Contract used by ShapeShift to integrate Best Yield and Perpetual Yield Tranches, with related tests, is available on Github.

Integration Partners Program

Deploying funds into Perpetual Yield Tranches is eligible for the Integration Partners Program.