Forum for discussion of mid, final term and final project

Content Managment Contract's role

Re: Content Managment Contract's role

by DAMIANO DI FRANCESCO MAESA -
Number of replies: 0

It is up to you to choose. Both solutions can be defended, due to the fact that premium accounts can be exploited to "abuse" the system. In general I would say that 'yes' mkes more sense, but 'no' is safer and cheaper.

Yes) You can say that once it has requested access a premium account needs to be treated as any customer, so it has the option to consume the content independently at any future time.

No) After the premium validity expiration he cannot consume content any more. This is in contrast with the decoupled AccessGranting/Consuming model, but it makes sense to prevent a premium user to actually pay a premium fee to be able to consume once any content ever created to that point. In fact it can spam access granting requests to all the content and consume in the future only when/if it is interested. This can result in an unnecessary bloat of the involved smart contracts with mostly useless data.

Premium accounts can be tricky (i.e. lead to exploits) so they were left to student interpretation accordingly to allow you to tune them depending on your implementation.