Developers > Yield Tranches > Integration example
One way for external protocols to integrate Yield Tranches is to create a Routing Contract around the IdleCDOarrow-up-right contracts.
IdleCDO
Integrators use a routing contract to keep track of users' deposits in Yield Tranches originally made through their platforms.
Users deposit funds into the Routing Contract
The Routing contract moves funds deposited into the IdleCDOarrow-up-right contracts on behalf of users
IdleCDO contract issues IdleCDO_AA_StrategyName (if Senior tranche) or IdleCDO_BB_StrategyName (if Junior tranche) tokens to users
IdleCDO_AA_StrategyName
IdleCDO_BB_StrategyName
An example of a Routing contract used by ShapeShiftarrow-up-right to integrate Best Yield and Yield Tranches, with related tests, is available on GitHubarrow-up-right.
Protocols deploying funds into the Yield Tranches are eligible to join the Integrators program.
Last updated 2 years ago
Was this helpful?