tfelix / w3shop

⚡ Sell digital content with a decentralized and permanent web shop! No man in the middle required. Get payed in crypto. ⚡

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Subsidized user product reviews

tfelix opened this issue · comments

Story
As a shop owner
I want to set aside a percentage of the user payment that they get refunded
when they later leave a review for the article.

One possible option is

State holding intermediate contract

  • Contract keeps the users fee for a certain amount of time
  • Holds the state of the user bought item (can the user proof this to the contract so state save is not required?)

Pro

  • Shop owner can later change comment subsidized percentage easily without affecting open and waiting comment returns

Cons

  • Swiping funds of expired comment windows is complex and requires a lot of gas
  • Possibly a lot of data must be kept in the contract (bought item, token? (or always pay in ETH?)