minor changes

revamp
lza_menace 2 years ago
parent 3e087646f5
commit 680dc5aff5

@ -15,9 +15,9 @@ SERVER_NAME = getenv('SERVER_NAME', 'localhost:5000')
PLATFORM_WALLET = getenv('PLATFORM_WALLET') PLATFORM_WALLET = getenv('PLATFORM_WALLET')
# Constants - here for easy template references # Constants - here for easy template references
CREATOR_SUBSCRIPTION_TERM = 60 # days term of how long creator subscriptions are valid for until content is hidden CREATOR_SUBSCRIPTION_TERM = 30 # days term of how long creator subscriptions are valid for until content is hidden
CREATOR_SUBSCRIPTION_GRACE = 21 # days grace period after expiration of creator subscriptions until content is archived CREATOR_SUBSCRIPTION_GRACE = 21 # days grace period after expiration of creator subscriptions until content is archived
CREATOR_SUBSCRIPTION_FEE_XMR = .3 # XMR flat rate fee for creator subscriptions CREATOR_SUBSCRIPTION_FEE_XMR = .15 # XMR flat rate fee for creator subscriptions
# Crypto RPC # Crypto RPC
XMR_WALLET_PASS = getenv('XMR_WALLET_PASS') XMR_WALLET_PASS = getenv('XMR_WALLET_PASS')

@ -117,7 +117,7 @@ class Transaction(pw.Model):
class CreatorSubscription(pw.Model): class CreatorSubscription(pw.Model):
""" """
CreatorSubscription model is for tracking subscriptions of creators to the platform. CreatorSubscription model is for tracking subscriptions of creators to the platform.
The first subscription is a flat fee, the following will be based on usage/consumption Subscription is a flat fee with a modifier based on usage/consumption
and will be re-negotiated every N days. and will be re-negotiated every N days.
""" """
id = pw.AutoField() id = pw.AutoField()

@ -98,7 +98,6 @@ async def join():
return await render_template( return await render_template(
'creator/join.html', 'creator/join.html',
new_fee_xmr=config.CREATOR_SUBSCRIPTION_FEE_XMR,
form=form form=form
) )

@ -3,10 +3,14 @@
{% block content %} {% block content %}
<h1>Become a Creator</h1> <h1>Become a Creator</h1>
<p> <p>
First time creators will pay a flat rate of {{ new_fee_xmr }} XMR. </br> Creator subscriptions have a flat rate of {{ config.CREATOR_SUBSCRIPTION_FEE_XMR }} XMR with a modifier for how much content is currently stored. <br>
Please send fees to the platform wallet below and provide your <code>tx_hash</code> and <code>tx_key</code> in the form below to initiate your platform subscription. Subscriptions are a {{ config.CREATOR_SUBSCRIPTION_TERM }} day term. <br>
Please send XMR to the platform wallet below and provide your <code>tx_hash</code> and <code>tx_key</code> in the form below to initiate your platform subscription.
</p>
<p>
Subscription Price: {{ config.CREATOR_SUBSCRIPTION_FEE_XMR }} XMR <br>
Platform Wallet: {{ config.PLATFORM_WALLET }}
</p> </p>
<p>Platform Wallet: {{ config.PLATFORM_WALLET }}</p>
{% include 'includes/form.html' %} {% include 'includes/form.html' %}

Loading…
Cancel
Save