{% extends 'base.html' %} {% block content %}
{% for part in params.chart %}
{% endfor %}
Order by
Selection value : {{ params.selection_value | format_price_round }} $
{% if params.filter_type!='token' and params.filter_type!='underlying' %}
Daily earnings : {{ params.daily_earnings | round(2) }} $
Selection APR : {{ params.selection_apr | round(2) }} %
Monthly earnings : {{ params.monthly_earnings | round(2) }} $
{% endif %}
{% set img_value = '$' %} {% set img_apr = '%' %} {% set img_token = '' %} {% set img_balance = '' %} {% set img_price = '$' %} {% set img_cex = '' %} {% set img_cold = '' %} {% set img_hot = '' %} {% set img_blockchain = '' %} {% set img_last_update = '' %} {% set img_next_update = '' %}
{% if params.chart | length != 0 %} {% endif %} {% for gr in params.groups %}

{{ gr.name }}

{% if gr.apr!=none %}
{{ gr.value | format_price_round }}{{ img_value | safe }}
{{ gr.apr | fixed(1) }}{{ img_apr | safe }}
{% else %}
{% endif %}
{% for pos in gr.positions %}

{{ pos.name }}

{{ pos.value | format_price_round }}{{ img_value | safe }}
{{ pos.apr | fixed(1) }}{{ img_apr | safe }}
{% for comp in pos.components %}
{% if comp.token.slug_link!=none %}{{ comp.token.symbol }}{% else %}{{ comp.token.symbol }}{% endif %}{{ img_token | safe }}
{{ comp.balance | round(comp.token.decimals) }}{{ img_balance | safe }}
{{ comp.token.price | format_price }}{{ img_price | safe }}
{{ comp.value | format_price_round }}{{ img_value | safe }}
{{ comp.apr | fixed(1) }}{{ img_apr | safe }}
{% endfor %}
{% if pos.wallet==none %}
{{ img_cex | safe }}{{ pos.cex.name }}
{% else %} {% if pos.wallet.cold %}
{{ img_cold | safe }}{{ pos.wallet.name }}
{% else %}
{{ img_hot | safe }}{{ pos.wallet.name }}
{% endif %}
{{ img_blockchain | safe }}{{ pos.blockchain.name }}
{% endif %}
{% if pos.info!='' %}INFO{% endif %} EDIT DELETE
{% if pos.tags|length>0 %}
TAGS {% for tag in pos.tags %} {{ tag.name }} {% endfor %}
{% endif %}
{{ pos.info | replace('\n','
') | safe }}
{{ img_last_update | safe }}{{ pos.last_update | format_datetime }} ({{ pos.last_update | format_time_elapsed }})
{{ img_next_update | safe }}{{ pos.next_update | format_datetime }} ({{ pos.next_update | format_time_remaining | safe }})
{% endfor %}
{% endfor %}
{% endblock %}