Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/makerdao/keg
https://github.com/makerdao/keg
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/makerdao/keg
- Owner: makerdao
- License: agpl-3.0
- Created: 2019-12-23T23:50:10.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-18T15:39:40.000Z (over 3 years ago)
- Last Synced: 2023-04-05T23:40:53.280Z (almost 2 years ago)
- Language: Solidity
- Size: 85 KB
- Stars: 7
- Watchers: 10
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MCD Keg
Streaming payment system for MakerDAO. Payment sources are defined as `Taps` and streamed into the `Keg` for pass-through distribution to the end target(s). Tokens are never at rest inside any of these contracts.
The Keg has pre-defined `Flights` which map human-level strings to distribution targets allocated by percentage.
`seat()` creates a new `flight` distribution.
`revoke()` deletes a distribution.
## Tap Sources
### Tap
The `Tap` is the most common type of payment source. It is fixed rate that `pump()` can be called on it anytime to send any outstanding funds along. The funds are pulled from the surplus buffer (`vow`) via `vat.suck()`. Be aware that `rate` is unbounded and could potentially result in system flop auctions.
### FlapTap
The `FlapTap` is a singleton Tap which forwards a fixed percentage that would otherwise be headed for flap auctions (MKR burner). This can be used to allocate a % of profit to be redirected towards other contracts.