Payment widget + smart contacts to streamline creation of superfluid subscriptions/streams of GHO, by depositing ETH or some supported token. From 5-6 transactions to 1 (ETH) or 2 (Token approval)!
A merchant wants to sell subscriptions - and recieve the payment in a constant flow of stablecoins. A user wants to buy such subscription, but without having to swap his/her assets.
GhoFlow allows the merchant to have a payment widget, streamlines the whole process in 1 transaction (if using ETH for credit, 2 if some token), leveraging AAVE lending pools, stablecoin GHO and Superfluid for the payment streams!
If a user would like to pay a merchant in a stream of GHO stablecoin, the steps would be:
GhoFlow compresses all these steps into a single smart contract function, simplifying the process a lot.
GhoFlow has a main solidity contract - GhoFlowFactory, which spawns/deploys subcontracts for every sender that wants to deposit and create a stream (once this subcontract is created, it is reused in every future interaction). This is done this way because:
The user then has the possibility of repaying its GHO debt and withdrawing the deposited assets + interest whenever she/he sees it fit.
Also, the user can: