Smart Contracts
Last updated
Last updated
The source code of Polystream contracts is available on .
The core contracts fall into following categories in the Github repository:
Adapter
Core
Rewards
Strategy
Adapter contracts serve as standardized connectors between Polystream and various decentralized lending protocols (e.g., Aave, LayerBank). Each adapter abstracts the complexities and differences of individual protocols, enabling a uniform method for supplying assets, withdrawing assets, and harvesting yield.
The Core contracts serve as the backbone of Polystream, managing user deposits, withdrawals, yield distribution, and the registry of supported DeFi protocols and adapters. They enable smooth interactions between users, adapters, and yield-generating protocols.
The Rewards contracts handle the accurate and fair distribution of yield rewards generated by the Polystream vault. Rewards are distributed based on each user's share and the duration their assets are staked (time-weighted contributions). The system ensures that rewards are calculated, tracked, and claimed transparently.
Polystream employs an automated Yield Optimization Strategy designed to continuously maximize returns for users. By dynamically evaluating and reallocating funds across supported DeFi protocols, the system ensures user deposits always benefit from the highest available APY (Annual Percentage Yield).