Salary-Streamer

A Salary that is distributable by just transferring of receipt tokens.

Salary-Streamer

Created At

ETHGlobal New Delhi

Project Description

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 method queueNewRewards) 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.

How it's Made

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.

background image mobile

Join the mailing list

Get the latest news and updates