Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pooltogether/yield-source-interface
https://github.com/pooltogether/yield-source-interface
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pooltogether/yield-source-interface
- Owner: pooltogether
- License: gpl-3.0
- Created: 2021-03-08T22:30:08.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-15T21:09:29.000Z (almost 2 years ago)
- Last Synced: 2024-04-23T21:42:43.517Z (9 months ago)
- Language: Solidity
- Size: 441 KB
- Stars: 10
- Watchers: 3
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PoolTogether Yield Source Specification
PoolTogether would like to integrate any protocol that serves as a yield source. The PoolTogether 3.3.0 contracts introduce a Yield Source Prize Pool, that is bound to a contract that implements the Yield Source Interface. This is a generic interface that allows a Yield Source Prize Pool to use an external contract for yield. As long as a contract supports the Yield Source Interface, it can be plugged into the Yield Source Prize Pool. This makes it easy to add new yield sources.
# Yield Source Interface
The Yield Source Interface is defined in the [IYieldSource.sol](./contracts/IYieldSource.sol) file.
Keep in mind:
- All deposits are denominated in the `depositToken()` ERC20.
- The `balanceOfToken(address)` function is similar to the Aave aToken, in that the balance must always increase.# Implementations
**Note: these implementations may or may not have been audited.** They should be considered experimental until proven otherwise.
- [Compound cToken Yield Source](https://github.com/pooltogether/pooltogether-pool-contracts/blob/f3c40ecacc654caa323f956f91e9851703a73111/contracts/yield-source/CTokenYieldSource.sol)
- [Aave aToken Yield Source](https://github.com/pooltogether/aave-yield-source)
- [xSushi Yield Source](https://github.com/steffenix/sushi-pooltogether)
- [Yearn V2 Vault Yield Source](https://github.com/pooltogether/pooltogether-yearnv2-yield-source)