Integration example
Developers > Perpetual Yield Tranches > Integration example
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.
- 1.Users deposit funds into the Routing Contract
- 2.
- 3.IdleCDO contract issues
IdleCDO_AA_StrategyName
(if Senior tranche) orIdleCDO_BB_StrategyName
(if Junior tranche) tokens to users
An example of a Routing contract used by ShapeShift to integrate Best Yield and Perpetual Yield Tranches, with related tests, is available on Github.
Protocols deploying funds into the Perpetual Yield Tranches are eligible to join the Integration Partners program.
Last modified 1mo ago