From 7d9cd5734011fa4e1a85ef5c6c5283913bcd0902 Mon Sep 17 00:00:00 2001 From: AlphaX-Projects <77661270+AlphaX-Projects@users.noreply.github.com> Date: Wed, 15 May 2024 14:05:33 +0200 Subject: [PATCH] Set sponsor ending to 9000 --- .../core/sponsorship-list/sponsorship-list.src.js | 14 ++++++++------ plugins/plugins/utils/functions.js | 2 ++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/plugins/plugins/core/sponsorship-list/sponsorship-list.src.js b/plugins/plugins/core/sponsorship-list/sponsorship-list.src.js index 55441efd..b7819a66 100644 --- a/plugins/plugins/core/sponsorship-list/sponsorship-list.src.js +++ b/plugins/plugins/core/sponsorship-list/sponsorship-list.src.js @@ -227,7 +227,7 @@ class SponsorshipList extends LitElement {

${this.sponsorships.filter(s=> s.blocksRemaining <= 0).length} ${translate('sponsorshipspage.schange7')}!

${translate('sponsorshipspage.schange8')}

${this.sponsorships.filter(s=> s.blocksRemaining <= 0).map((ms)=> html` -

${ms.address}

+

${ms.address}

`)} {this.saveToClipboard(this.privateRewardShareKey, this.renderCopyMsg())}} > - ${translate('sponsorshipspage.schange11')} + ${translate('sponsorshipspage.schange11')} ` : ''} @@ -355,7 +355,7 @@ class SponsorshipList extends LitElement { icon='content_copy' @click=${()=> {this.saveToClipboard(this.lookupPublicAddressValue, this.renderCopyMsg())}} > - ${translate('sponsorshipspage.schange11')} + ${translate('sponsorshipspage.schange11')} ` : ''} @@ -504,11 +504,13 @@ class SponsorshipList extends LitElement { if(getNames.length > 0 ) { const avatarNode = window.parent.reduxStore.getState().app.nodeConfig.knownNodes[window.parent.reduxStore.getState().app.nodeConfig.node] const avatarUrl = avatarNode.protocol + '://' + avatarNode.domain + ':' + avatarNode.port - url = `${avatarUrl}/arbitrary/THUMBNAIL/${getNames[0].name}/qortal_avatar?async=true&apiKey=${this.getApiKey()}` + url = `${avatarUrl}/arbitrary/THUMBNAIL/${getNames[0].name}/qortal_avatar?async=true}` } let blocksRemaining = this._levelUpBlocks(addressInfo) - blocksRemaining = +blocksRemaining > 0 ? +blocksRemaining : 0 + + blocksRemaining = blocksRemaining > 0 ? blocksRemaining : 0 + return { ...addressInfo, ...rs, @@ -553,7 +555,7 @@ class SponsorshipList extends LitElement { } _levelUpBlocks(accountInfo) { - return (blocksNeed(0) - (accountInfo.blocksMinted + accountInfo.blocksMintedAdjustment)).toString() + return (blocksNeed('sponsor') - (accountInfo.blocksMinted + accountInfo.blocksMintedAdjustment)).toString() } async removeRewardShare(rewardShareObject) { diff --git a/plugins/plugins/utils/functions.js b/plugins/plugins/utils/functions.js index 138a7b7b..df85fed0 100644 --- a/plugins/plugins/utils/functions.js +++ b/plugins/plugins/utils/functions.js @@ -34,6 +34,8 @@ export const blocksNeed = (level) => { return '3037600' } else if (level === 9) { return '4074400' + } else if (level === 'sponsor') { + return 9000 } }