Disclaimer -- Money streaming in it's current phase is working on the logic of constant flow agreements. While these agreements in themselves are quite beneficiary, they could be improved upon further by adding updates + automating them. π
So, what Reflow does? -- It helps in creating reward flows which stream + update themselves in real-time. π
Ummm, what the heck does that mean anyway? π
Let's suppose, A (Employer) wants to give salary to B (Employee), but on 2 conditions:
Therefore, the scenario would look something like:
Wait a minute, is that even possible? π€
Well, that's exactly what Reflow does -- you can send money stream (like Netflix) to anyone; which will be automagically updated after a fixed time interval. Plus, you have to transact only once, and everything else will be automated -- pretty cool, right? π
Under the hood, this is how it all works:
Moreover, the 2 major problems which Reflow solves are:
The main issue was finding a way about how to link Chainlink's smart contract to Reflow's contract such that transactions happen only when there needs to be an update. This needed to be ensured because if transactions keep on running, they would eventually lead to gas loss.
Thus, the solution I found was to embed that specific condition in the contract itself as even if Chainlink tries to make an update, the transaction would be automatically reverted without making a state change.
Moreover, in order to confirm that it worked, I also added push notifications which could send an update if streaming hadn't stopped + the same could be verified via Superfluid console too.
Tracks Applied (4)
Polygon Technology
Superfluid
Chainlink
Push Protocol
Discussion