-
-
Notifications
You must be signed in to change notification settings - Fork 775
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allows sorting by clr estimates so that people can easily find where their $$s will go further and focus their attention there #5233
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{% load i18n static humanize grants_extra %} | ||
|
||
<div class="clr position-absolute text-center"> | ||
<h2 class="font-caption font-weight-bold my-0 p-1"> | ||
Round 3 CLR Match estimate: {{ grant.clr_prediction_curve.0.1|floatformat:0|intcomma }} DAI | ||
</h2> | ||
<p class="my-0"> + $1 contrib: +<span id="clr-grant-match">{{ grant.clr_prediction_curve.1.2|floatformat:0|intcomma }}</span> DAI</p> | ||
<p class="my-0"> + $10 contrib: +<span id="clr-grant-match">{{ grant.clr_prediction_curve.2.2|floatformat:0|intcomma }}</span> DAI</p> | ||
<p class="my-0"> + $100 contrib: +<span id="clr-grant-match">{{ grant.clr_prediction_curve.3.2|floatformat:0|intcomma }}</span> DAI</p> | ||
<p class="my-0 mb-2"> + $1k contrib: +<span id="clr-grant-match">{{ grant.clr_prediction_curve.4.2|floatformat:0|intcomma }}</span> DAI</p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{% load i18n static humanize grants_extra %} | ||
{% if grant.clr_matching %} | ||
<div class="clr text-center"> | ||
<h2 class="font-caption font-weight-bold my-0 p-1" style="max-width: 105px;"> | ||
including {{ grant.clr_matching|floatformat:0 }} DAI from CLR Rounds 1/2 | ||
</h2> | ||
</div> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
{% load static%} | ||
{% if clr_active %} | ||
<div class="clr_estimate {{class}}"> | ||
<img src="{% static "v2/images/diamonds_high_fiving.gif" %}" > | ||
<h3> | ||
<span>Clr Match Round {{ clr_round }}</span> | ||
</h3> | ||
<div class="clr_estimate {{class}}"> | ||
<img src="{% static "v2/images/diamonds_high_fiving.gif" %}" > | ||
<h3> | ||
<span>Clr Match Round {{ clr_round }}</span> | ||
</h3> | ||
|
||
<h4> | ||
<span class="clr_match_prediction">{{ clr_prediction_curve.0|floatformat:2 }}</span> | ||
<span>DAI</span> | ||
of {{ total_clr_pot }} DAI | ||
</h4> | ||
<p class="mb-0"> | ||
Your contribution at this moment would increase the CLR Match amount | ||
for this grant by | ||
<strong> | ||
<span class="clr_increase">0.00</span> DAI | ||
</strong>. | ||
</p> | ||
</div> | ||
<h4> | ||
<span class="clr_match_prediction">{{ clr_prediction_curve.0|floatformat:2 }}</span> | ||
<span>DAI</span> | ||
of {{ total_clr_pot }} DAI | ||
</h4> | ||
<p class="mb-0"> | ||
Your contribution at this moment would increase the CLR Match amount | ||
for this grant by | ||
<strong> | ||
<span class="clr_increase">0.00</span> DAI | ||
</strong>. | ||
</p> | ||
</div> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@danlipert this adds a third array element, which is how much a specific contribution will net affect the clr match (as opposed to the previous index which is the total if they did)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@owocki Ah this would mean we'd also have to update fund.js cause
grant.clr_prediction_curve
is gonna change from
[[amount, clr_match]]
->[amount, clr_match_increased_from_current]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i dont think so. the new schema is
not
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ohh :P lol okie makes sense