Skip to content
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

feat/new-fee-column #163

Closed
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions src/helpers/fee.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import Decimal from "decimal.js";

export function generateFeeString(reward: number | Decimal | undefined, feeRate: number | Decimal | undefined) {
if (!reward || !feeRate) return "-";
const feeRateDecimal = new Decimal(100).minus(new Decimal(feeRate)).div(100);
const originalReward = new Decimal(reward).div(feeRateDecimal);
const fee = originalReward.minus(new Decimal(reward));
return fee.toFixed(2);
}
13 changes: 10 additions & 3 deletions src/parser/github-comment-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { getOctokitInstance } from "../octokit";
import program from "./command-line";
import { GithubCommentScore, Module, Result } from "./processor";
import { GITHUB_COMMENT_PAYLOAD_LIMIT } from "../helpers/constants";
import { generateFeeString } from "../helpers/fee";

interface SortedTasks {
issues: { specification: GithubCommentScore | null; comments: GithubCommentScore[] };
Expand Down Expand Up @@ -171,12 +172,14 @@ export class GithubCommentModule implements Module {
count: number,
reward: number | Decimal | undefined
) {
const fee = generateFeeString(reward, result.feeRate);
return `
<tr>
<td>${view}</td>
<td>${contribution}</td>
<td>${count}</td>
<td>${reward || "-"}</td>
<td>${fee}</td>
</tr>`;
}

Expand Down Expand Up @@ -206,7 +209,7 @@ export class GithubCommentModule implements Module {
return content.join("");
}

_createIncentiveRows(sortedTasks: SortedTasks | undefined) {
_createIncentiveRows(sortedTasks: SortedTasks | undefined, feeRate: number | Decimal | undefined = undefined) {
const content: string[] = [];

if (!sortedTasks) {
Expand All @@ -226,6 +229,7 @@ export class GithubCommentModule implements Module {
.replaceAll(">", "&gt;")
.replaceAll("`", "&#96;")
.replace(/([\s\S]{64}).[\s\S]+/, "$1&hellip;");
const fee = generateFeeString(commentScore.score?.reward, feeRate);
return `
<tr>
<td>
Expand All @@ -243,6 +247,7 @@ export class GithubCommentModule implements Module {
</td>
<td>${commentScore.score?.relevance ?? "-"}</td>
<td>${commentScore.score?.reward ?? "-"}</td>
<td>${fee}</td>
</tr>`;
}

Expand Down Expand Up @@ -293,7 +298,7 @@ export class GithubCommentModule implements Module {
</h6>
</b>
</summary>
${result.feeRate !== undefined ? `<h6>⚠️ ${new Decimal(result.feeRate).mul(100)}% fee rate has been applied. Consider using the <a href="https://dao.ubq.fi/dollar" target="_blank" rel="noopener">Ubiquity Dollar</a> for no fees.</h6>` : ""}
${result.feeRate !== undefined ? `<h6>⚠️ ${result.feeRate}% fee rate has been applied. Consider using the&nbsp;<a href="https://dao.ubq.fi/dollar" target="_blank" rel="noopener">Ubiquity Dollar</a>&nbsp;for no fees.</h6>` : ""}
gentlementlegen marked this conversation as resolved.
Show resolved Hide resolved
<h6>Contributions Overview</h6>
<table>
<thead>
Expand All @@ -302,6 +307,7 @@ export class GithubCommentModule implements Module {
<th>Contribution</th>
<th>Count</th>
<th>Reward</th>
<th>Fee</th>
</tr>
</thead>
<tbody>
Expand All @@ -318,10 +324,11 @@ export class GithubCommentModule implements Module {
<th>Formatting</th>
<th>Relevance</th>
<th>Reward</th>
<th>Fee</th>
</tr>
</thead>
<tbody>
${this._createIncentiveRows(sortedTasks)}
${this._createIncentiveRows(sortedTasks, result.feeRate)}
</tbody>
</table>`
: ""
Expand Down
2 changes: 1 addition & 1 deletion src/parser/permit-generation-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export class PermitGenerationModule implements Module {
permitFeeAmountDecimal = permitFeeAmountDecimal.add(new Decimal(rewardResult.total).minus(totalAfterFee));
// subtract fees
result[key].total = Number(totalAfterFee.toFixed(2));
result[key].feeRate = feeRateDecimal.toNumber();
result[key].feeRate = new Decimal(env.PERMIT_FEE_RATE).toNumber();
if (result[key].task) {
result[key].task.reward = Number(new Decimal(result[key].task.reward).mul(feeRateDecimal).toFixed(2));
}
Expand Down
2 changes: 1 addition & 1 deletion tests/__mocks__/results/output-reward-split.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<details><summary><b><h3>&nbsp;<a href="https://pay.ubq.fi?claim=W3sidHlwZSI6ImVyYzIwLXBlcm1pdCIsInBlcm1pdCI6eyJwZXJtaXR0ZWQiOnsidG9rZW4iOiIweGU5MUQxNTNFMGI0MTUxOEEyQ2U4RGQzRDc5NDRGYTg2MzQ2M2E5N2QiLCJhbW91bnQiOiI1MjY0MDAwMDAwMDAwMDAwMDAwMCJ9LCJub25jZSI6IjMzOTI5NDE3NjI3OTM5NzU1OTMxNzgxMTE1NjU5ODM3OTc0NzU4OTQwMzc0OTU0MDQxMzEyODYzODI3ODA0MTE2ODc3MDgzNTI4ODgiLCJkZWFkbGluZSI6IjU3ODk2MDQ0NjE4NjU4MDk3NzExNzg1NDkyNTA0MzQzOTUzOTI2NjM0OTkyMzMyODIwMjgyMDE5NzI4NzkyMDAzOTU2NTY0ODE5OTY3In0sInRyYW5zZmVyRGV0YWlscyI6eyJ0byI6IjB4NEQwNzA0ZjQwMEQ1N0JhOTNlRWE4ODc2NUMzRmNEQkQ4MjZkQ0ZjNCIsInJlcXVlc3RlZEFtb3VudCI6IjUyNjQwMDAwMDAwMDAwMDAwMDAwIn0sIm93bmVyIjoiMHhkOTUzMEYzZmJCRWExMWJlRDAxREMwOUU3OTMxOGYyZjIwMjIzNzE2Iiwic2lnbmF0dXJlIjoiMHg5MTc1OTgxYjg0NzYzMzdkOGM0YWQyMGMwMWQ0NDI4ZjQ2MWU4MTA3ZjA1ZGZlZGIxMTU5Zjg2YTFkN2ZmYWViMDMyYWUxNjljMTY2NmVlZjM0ODU3YWNlYTRjNzZkMWYyNTI4ZWQyNjgzMWNiOWI0Y2JlY2IzOTYwNGU3OTRlZTFiIiwibmV0d29ya0lkIjoxMDB9XQ==" target="_blank" rel="noopener">[ 52.64 WXDAI ]</a>&nbsp;</h3><h6>@0x4007</h6></b></summary><h6>Contributions Overview</h6><table><thead><tr><th>View</th><th>Contribution</th><th>Count</th><th>Reward</th></tr></thead><tbody><tr><td>Issue</td><td>Task</td><td>0.5</td><td>25</td></tr><tr><td>Issue</td><td>Specification</td><td>1</td><td>5.69</td></tr><tr><td>Issue</td><td>Comment</td><td>2</td><td>6.544</td></tr><tr><td>Review</td><td>Comment</td><td>3</td><td>15.406</td></tr></tbody></table><h6>Conversation Incentives</h6><table><thead><tr><th>Comment</th><th>Formatting</th><th>Relevance</th><th>Reward</th></tr></thead><tbody><tr><td><h6><a href="https://github.com/ubiquity/work.ubq.fi/issues/69" target="_blank" rel="noopener">Looks like the filters are barely useable now that we have the s&hellip;</a></h6></td><td><details><summary>5.69</summary><pre>content:&#13; content:&#13; p:&#13; score: 1&#13; elementCount: 2&#13; img:&#13; score: 1&#13; elementCount: 1&#13; result: 3&#13;regex:&#13; wordCount: 48&#13; wordValue: 0.1&#13; result: 2.69&#13;</pre></details></td><td>1</td><td>5.69</td></tr><tr><td><h6><a href="https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186802545" target="_blank" rel="noopener">Okay both bots are broken @gentlementlegen We should have spli&hellip;</a></h6></td><td><details><summary>3.77</summary><pre>content:&#13; content:&#13; p:&#13; score: 1&#13; elementCount: 2&#13; result: 2&#13;regex:&#13; wordCount: 13&#13; wordValue: 0.2&#13; result: 1.77&#13;</pre></details></td><td>0.8</td><td>3.416</td></tr><tr><td><h6><a href="https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186807999" target="_blank" rel="noopener">Actually, looks like it did the right thing for your reward on v&hellip;</a></h6></td><td><details><summary>3.66</summary><pre>content:&#13; content:&#13; p:&#13; score: 1&#13; elementCount: 1&#13; result: 1&#13;regex:&#13; wordCount: 21&#13; wordValue: 0.2&#13; result: 2.66&#13;</pre></details></td><td>0.8</td><td>3.128</td></tr><tr><td><h6><a href="https://github.com/ubiquity/work.ubq.fi/pull/70" target="_blank" rel="noopener">Resolves https://github.com/ubiquity/work.ubq.fi/issues/69</a></h6></td><td><details><summary>1</summary><pre>content:&#13; content:&#13; p:&#13; score: 1&#13; elementCount: 1&#13; result: 1&#13;regex:&#13; wordCount: 10&#13; wordValue: 0&#13; result: 0&#13;</pre></details></td><td>0.7</td><td>0</td></tr><tr><td><h6><a href="https://github.com/ubiquity/work.ubq.fi/pull/70#issuecomment-2186530214" target="_blank" rel="noopener">I always struggle with Cypress</a></h6></td><td><details><summary>1.79</summary><pre>content:&#13; content:&#13; p:&#13; score: 1&#13; elementCount: 1&#13; result: 1&#13;regex:&#13; wordCount: 5&#13; wordValue: 0.2&#13; result: 0.79&#13;</pre></details></td><td>0.7</td><td>3.106</td></tr><tr><td><h6><a href="https://github.com/ubiquity/work.ubq.fi/pull/70#issuecomment-2186798329" target="_blank" rel="noopener">Only doesn't work on my local, the guess is token expiration aft&hellip;</a></h6></td><td><details><summary>7.5</summary><pre>content:&#13; content:&#13; p:&#13; score: 1&#13; elementCount: 2&#13; a:&#13; score: 1&#13; elementCount: 1&#13; result: 3&#13;regex:&#13; wordCount: 39&#13; wordValue: 0.2&#13; result: 4.5&#13;</pre></details></td><td>0.7</td><td>12.3</td></tr></tbody></table></details><details><summary><b><h3>&nbsp;<a href="https://pay.ubq.fi?claim=W3sidHlwZSI6ImVyYzIwLXBlcm1pdCIsInBlcm1pdCI6eyJwZXJtaXR0ZWQiOnsidG9rZW4iOiIweGU5MUQxNTNFMGI0MTUxOEEyQ2U4RGQzRDc5NDRGYTg2MzQ2M2E5N2QiLCJhbW91bnQiOiIzMjc0MzAwMDAwMDAwMDAwMDAwMCJ9LCJub25jZSI6IjgzMDc2NDM3NDQ2NDk5NTg5MzA0NjExMTI4OTYzOTE2NzEwMTA2ODg2MTAyNDM2MDIzODgxNTIwMDU4MzQ2ODAwNTc4NzU0NDAxNzU1IiwiZGVhZGxpbmUiOiI1Nzg5NjA0NDYxODY1ODA5NzcxMTc4NTQ5MjUwNDM0Mzk1MzkyNjYzNDk5MjMzMjgyMDI4MjAxOTcyODc5MjAwMzk1NjU2NDgxOTk2NyJ9LCJ0cmFuc2ZlckRldGFpbHMiOnsidG8iOiIweDREMDcwNGY0MDBENTdCYTkzZUVhODg3NjVDM0ZjREJEODI2ZENGYzQiLCJyZXF1ZXN0ZWRBbW91bnQiOiIzMjc0MzAwMDAwMDAwMDAwMDAwMCJ9LCJvd25lciI6IjB4ZDk1MzBGM2ZiQkVhMTFiZUQwMURDMDlFNzkzMThmMmYyMDIyMzcxNiIsInNpZ25hdHVyZSI6IjB4OTY0M2Y0ZDM4YzFmMjU5MWZiOGU5M2U2ZmIzY2FmZjQ4NzAxYTA2MWZmNjA4M2YzZGMzODFkZTM2ZmM1YzllMTU0NDkyZGU4ZDRjZWJhM2NiMzdlNDI0YmJmYWI4ZGE5YmU1ZTk3OTBkZDBlZmQwNzkwYjM2MWNlMWFhMjQ4NmUxYiIsIm5ldHdvcmtJZCI6MTAwfV0=" target="_blank" rel="noopener">[ 32.743 WXDAI ]</a>&nbsp;</h3><h6>@gentlementlegen</h6></b></summary><h6>Contributions Overview</h6><table><thead><tr><th>View</th><th>Contribution</th><th>Count</th><th>Reward</th></tr></thead><tbody><tr><td>Issue</td><td>Task</td><td>0.5</td><td>25</td></tr><tr><td>Issue</td><td>Comment</td><td>2</td><td>5.168</td></tr><tr><td>Review</td><td>Comment</td><td>1</td><td>2.575</td></tr></tbody></table><h6>Conversation Incentives</h6><table><thead><tr><th>Comment</th><th>Formatting</th><th>Relevance</th><th>Reward</th></tr></thead><tbody><tr><td><h6><a href="https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186805818" target="_blank" rel="noopener">@0x4007 So it should be 25 each? I can confirm this is not handl&hellip;</a></h6></td><td><details><summary>2.54</summary><pre>content:&#13; content:&#13; p:&#13; score: 1&#13; elementCount: 1&#13; result: 1&#13;regex:&#13; wordCount: 25&#13; wordValue: 0.1&#13; result: 1.54&#13;</pre></details></td><td>0.8</td><td>2.232</td></tr><tr><td><h6><a href="https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186813200" target="_blank" rel="noopener">Ah yes because it doesn't apply the &#96;0.5&#96; multiplier I s&hellip;</a></h6></td><td><details><summary>3.17</summary><pre>content:&#13; content:&#13; p:&#13; score: 1&#13; elementCount: 1&#13; code:&#13; score: 1&#13; elementCount: 1&#13; result: 2&#13;regex:&#13; wordCount: 18&#13; wordValue: 0.1&#13; result: 1.17&#13;</pre></details></td><td>0.8</td><td>2.936</td></tr><tr><td><h6><a href="https://github.com/ubiquity/work.ubq.fi/pull/70#issuecomment-2186914050" target="_blank" rel="noopener">After token expiration, I could not reproduce the problem and st&hellip;</a></h6></td><td><details><summary>3.25</summary><pre>content:&#13; content:&#13; p:&#13; score: 1&#13; elementCount: 1&#13; result: 1&#13;regex:&#13; wordCount: 39&#13; wordValue: 0.1&#13; result: 2.25&#13;</pre></details></td><td>0.7</td><td>2.575</td></tr></tbody></table></details>
<details><summary><b><h3>&nbsp;<a href="https://pay.ubq.fi?claim=W3sidHlwZSI6ImVyYzIwLXBlcm1pdCIsInBlcm1pdCI6eyJwZXJtaXR0ZWQiOnsidG9rZW4iOiIweGU5MUQxNTNFMGI0MTUxOEEyQ2U4RGQzRDc5NDRGYTg2MzQ2M2E5N2QiLCJhbW91bnQiOiI1MjY0MDAwMDAwMDAwMDAwMDAwMCJ9LCJub25jZSI6IjMzOTI5NDE3NjI3OTM5NzU1OTMxNzgxMTE1NjU5ODM3OTc0NzU4OTQwMzc0OTU0MDQxMzEyODYzODI3ODA0MTE2ODc3MDgzNTI4ODgiLCJkZWFkbGluZSI6IjU3ODk2MDQ0NjE4NjU4MDk3NzExNzg1NDkyNTA0MzQzOTUzOTI2NjM0OTkyMzMyODIwMjgyMDE5NzI4NzkyMDAzOTU2NTY0ODE5OTY3In0sInRyYW5zZmVyRGV0YWlscyI6eyJ0byI6IjB4NEQwNzA0ZjQwMEQ1N0JhOTNlRWE4ODc2NUMzRmNEQkQ4MjZkQ0ZjNCIsInJlcXVlc3RlZEFtb3VudCI6IjUyNjQwMDAwMDAwMDAwMDAwMDAwIn0sIm93bmVyIjoiMHhkOTUzMEYzZmJCRWExMWJlRDAxREMwOUU3OTMxOGYyZjIwMjIzNzE2Iiwic2lnbmF0dXJlIjoiMHg5MTc1OTgxYjg0NzYzMzdkOGM0YWQyMGMwMWQ0NDI4ZjQ2MWU4MTA3ZjA1ZGZlZGIxMTU5Zjg2YTFkN2ZmYWViMDMyYWUxNjljMTY2NmVlZjM0ODU3YWNlYTRjNzZkMWYyNTI4ZWQyNjgzMWNiOWI0Y2JlY2IzOTYwNGU3OTRlZTFiIiwibmV0d29ya0lkIjoxMDB9XQ==" target="_blank" rel="noopener">[ 52.64 WXDAI ]</a>&nbsp;</h3><h6>@0x4007</h6></b></summary><h6>Contributions Overview</h6><table><thead><tr><th>View</th><th>Contribution</th><th>Count</th><th>Reward</th><th>Fee</th></tr></thead><tbody><tr><td>Issue</td><td>Task</td><td>0.5</td><td>25</td><td>-</td></tr><tr><td>Issue</td><td>Specification</td><td>1</td><td>5.69</td><td>-</td></tr><tr><td>Issue</td><td>Comment</td><td>2</td><td>6.544</td><td>-</td></tr><tr><td>Review</td><td>Comment</td><td>3</td><td>15.406</td><td>-</td></tr></tbody></table><h6>Conversation Incentives</h6><table><thead><tr><th>Comment</th><th>Formatting</th><th>Relevance</th><th>Reward</th><th>Fee</th></tr></thead><tbody><tr><td><h6><a href="https://github.com/ubiquity/work.ubq.fi/issues/69" target="_blank" rel="noopener">Looks like the filters are barely useable now that we have the s&hellip;</a></h6></td><td><details><summary>5.69</summary><pre>content:&#13; content:&#13; p:&#13; score: 1&#13; elementCount: 2&#13; img:&#13; score: 1&#13; elementCount: 1&#13; result: 3&#13;regex:&#13; wordCount: 48&#13; wordValue: 0.1&#13; result: 2.69&#13;</pre></details></td><td>1</td><td>5.69</td></tr><tr><td><h6><a href="https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186802545" target="_blank" rel="noopener">Okay both bots are broken @gentlementlegen We should have spli&hellip;</a></h6></td><td><details><summary>3.77</summary><pre>content:&#13; content:&#13; p:&#13; score: 1&#13; elementCount: 2&#13; result: 2&#13;regex:&#13; wordCount: 13&#13; wordValue: 0.2&#13; result: 1.77&#13;</pre></details></td><td>0.8</td><td>3.416</td></tr><tr><td><h6><a href="https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186807999" target="_blank" rel="noopener">Actually, looks like it did the right thing for your reward on v&hellip;</a></h6></td><td><details><summary>3.66</summary><pre>content:&#13; content:&#13; p:&#13; score: 1&#13; elementCount: 1&#13; result: 1&#13;regex:&#13; wordCount: 21&#13; wordValue: 0.2&#13; result: 2.66&#13;</pre></details></td><td>0.8</td><td>3.128</td><td>-</td></tr><tr><td><h6><a href="https://github.com/ubiquity/work.ubq.fi/pull/70" target="_blank" rel="noopener">Resolves https://github.com/ubiquity/work.ubq.fi/issues/69</a></h6></td><td><details><summary>1</summary><pre>content:&#13; content:&#13; p:&#13; score: 1&#13; elementCount: 1&#13; result: 1&#13;regex:&#13; wordCount: 10&#13; wordValue: 0&#13; result: 0&#13;</pre></details></td><td>0.7</td><td>0</td></tr><tr><td><h6><a href="https://github.com/ubiquity/work.ubq.fi/pull/70#issuecomment-2186530214" target="_blank" rel="noopener">I always struggle with Cypress</a></h6></td><td><details><summary>1.79</summary><pre>content:&#13; content:&#13; p:&#13; score: 1&#13; elementCount: 1&#13; result: 1&#13;regex:&#13; wordCount: 5&#13; wordValue: 0.2&#13; result: 0.79&#13;</pre></details></td><td>0.7</td><td>3.106</td></tr><tr><td><h6><a href="https://github.com/ubiquity/work.ubq.fi/pull/70#issuecomment-2186798329" target="_blank" rel="noopener">Only doesn't work on my local, the guess is token expiration aft&hellip;</a></h6></td><td><details><summary>7.5</summary><pre>content:&#13; content:&#13; p:&#13; score: 1&#13; elementCount: 2&#13; a:&#13; score: 1&#13; elementCount: 1&#13; result: 3&#13;regex:&#13; wordCount: 39&#13; wordValue: 0.2&#13; result: 4.5&#13;</pre></details></td><td>0.7</td><td>12.3</td><td>-</td></tr></tbody></table></details><details><summary><b><h3>&nbsp;<a href="https://pay.ubq.fi?claim=W3sidHlwZSI6ImVyYzIwLXBlcm1pdCIsInBlcm1pdCI6eyJwZXJtaXR0ZWQiOnsidG9rZW4iOiIweGU5MUQxNTNFMGI0MTUxOEEyQ2U4RGQzRDc5NDRGYTg2MzQ2M2E5N2QiLCJhbW91bnQiOiIzMjc0MzAwMDAwMDAwMDAwMDAwMCJ9LCJub25jZSI6IjgzMDc2NDM3NDQ2NDk5NTg5MzA0NjExMTI4OTYzOTE2NzEwMTA2ODg2MTAyNDM2MDIzODgxNTIwMDU4MzQ2ODAwNTc4NzU0NDAxNzU1IiwiZGVhZGxpbmUiOiI1Nzg5NjA0NDYxODY1ODA5NzcxMTc4NTQ5MjUwNDM0Mzk1MzkyNjYzNDk5MjMzMjgyMDI4MjAxOTcyODc5MjAwMzk1NjU2NDgxOTk2NyJ9LCJ0cmFuc2ZlckRldGFpbHMiOnsidG8iOiIweDREMDcwNGY0MDBENTdCYTkzZUVhODg3NjVDM0ZjREJEODI2ZENGYzQiLCJyZXF1ZXN0ZWRBbW91bnQiOiIzMjc0MzAwMDAwMDAwMDAwMDAwMCJ9LCJvd25lciI6IjB4ZDk1MzBGM2ZiQkVhMTFiZUQwMURDMDlFNzkzMThmMmYyMDIyMzcxNiIsInNpZ25hdHVyZSI6IjB4OTY0M2Y0ZDM4YzFmMjU5MWZiOGU5M2U2ZmIzY2FmZjQ4NzAxYTA2MWZmNjA4M2YzZGMzODFkZTM2ZmM1YzllMTU0NDkyZGU4ZDRjZWJhM2NiMzdlNDI0YmJmYWI4ZGE5YmU1ZTk3OTBkZDBlZmQwNzkwYjM2MWNlMWFhMjQ4NmUxYiIsIm5ldHdvcmtJZCI6MTAwfV0=" target="_blank" rel="noopener">[ 32.743 WXDAI ]</a>&nbsp;</h3><h6>@gentlementlegen</h6></b></summary><h6>Contributions Overview</h6><table><thead><tr><th>View</th><th>Contribution</th><th>Count</th><th>Reward</th><th>Fee</th></tr></thead><tbody><tr><td>Issue</td><td>Task</td><td>0.5</td><td>25</td><td>-</td></tr><tr><td>Issue</td><td>Comment</td><td>2</td><td>5.168</td><td>-</td></tr><tr><td>Review</td><td>Comment</td><td>1</td><td>2.575</td><td>-</td></tr></tbody></table><h6>Conversation Incentives</h6><table><thead><tr><th>Comment</th><th>Formatting</th><th>Relevance</th><th>Reward</th><th>Fee</th></tr></thead><tbody><tr><td><h6><a href="https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186805818" target="_blank" rel="noopener">@0x4007 So it should be 25 each? I can confirm this is not handl&hellip;</a></h6></td><td><details><summary>2.54</summary><pre>content:&#13; content:&#13; p:&#13; score: 1&#13; elementCount: 1&#13; result: 1&#13;regex:&#13; wordCount: 25&#13; wordValue: 0.1&#13; result: 1.54&#13;</pre></details></td><td>0.8</td><td>2.232</td><td>-</td></tr><tr><td><h6><a href="https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186813200" target="_blank" rel="noopener">Ah yes because it doesn't apply the &#96;0.5&#96; multiplier I s&hellip;</a></h6></td><td><details><summary>3.17</summary><pre>content:&#13; content:&#13; p:&#13; score: 1&#13; elementCount: 1&#13; code:&#13; score: 1&#13; elementCount: 1&#13; result: 2&#13;regex:&#13; wordCount: 18&#13; wordValue: 0.1&#13; result: 1.17&#13;</pre></details></td><td>0.8</td><td>2.936</td><td>-</td></tr><tr><td><h6><a href="https://github.com/ubiquity/work.ubq.fi/pull/70#issuecomment-2186914050" target="_blank" rel="noopener">After token expiration, I could not reproduce the problem and st&hellip;</a></h6></td><td><details><summary>3.25</summary><pre>content:&#13; content:&#13; p:&#13; score: 1&#13; elementCount: 1&#13; result: 1&#13;regex:&#13; wordCount: 39&#13; wordValue: 0.1&#13; result: 2.25&#13;</pre></details></td><td>0.7</td><td>2.575</td>-<td></td></tr></tbody></table></details>
<!-- Ubiquity - GithubCommentModule - GithubCommentModule._callee$ - 1234
{
"workflowUrl": "https://github.com/ubiquity-os/conversation-rewards/actions/runs/1",
Expand Down
Loading
Loading