Salary-Streamer
A Salary that is distributable by just transferring of receipt tokens.
Problem Statement
A Stream rewarder contract that is linked to a receipt token and it transfers rewards(which has to be queue to the rewarder by the methodqueueNewRewards) to all the holders of the receipt token over a fixed duration.An employer can use this by: Transferring receipt tokens to all the employees, the employees will receive salaries as per the receipt token holdings of all the employees.
Solution
Used a Base reward Pool contract for reference to create a stream rewarder. The base rewarder distributes rewards at the end of the reward queue. For the stream rewarder, rewards have to be queued at the start. And the rewards are distributed linearly over the period that is configured as a constant at the time of deployment of the Stream Rewarder.
Hackathon
ETHGlobal New Delhi
2025
Contributors
- deepakpalrocks
5 contributions