Idle Finance
Website
Github
Twitter
Discord
Searchβ¦
π₯
Introduction
π
Get in touch
π
Products
Introduction
Best Yield
Perpetual Yield Tranches
Fee structure
Integration Partners programs
π»
Developers
Introduction
Networks and codebase
Best Yield
Perpetual Yield Tranches
Architecture
Deployed contracts
Interface
Methods
Integration Pattern
Edge cases
Security management policy
PYTs Subgraph
Gauges
Security
π
Governance
Introduction
Idle DAO
$IDLE token
$IDLE staking
Idle Grants Program
π
Other
Brand assets
Guides
FAQs
Glossary
Resources
Archive
Powered By
GitBook
Integration Pattern
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.
Users deposit funds into the Routing Contract;
2.
The Routing Contract moves funds deposited into the
IdleCDO
contracts on behalf of users;
3.
IdleCDO contract issues
IdleCDO_AA_StrategyName
(if Senior tranche) or
IdleCDO_BB_StrategyName
(if Junior tranche) tokens to users.
Example
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
.
β
Previous
withdrawBB
Next
Edge cases
Last modified
1mo ago
Copy link
Outline
Routing Contract
How it works
Example
Integration Partners Program