4
1
mirror of https://github.com/Qortal/qortal-ui.git synced 2025-02-11 17:55:51 +00:00

Set sponsor ending to 9000

This commit is contained in:
AlphaX-Projects 2024-05-15 14:05:33 +02:00
parent 00e4eb765b
commit 7d9cd57340
2 changed files with 10 additions and 6 deletions

View File

@ -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) {

View File

@ -34,6 +34,8 @@ export const blocksNeed = (level) => {
return '3037600'
} else if (level === 9) {
return '4074400'
} else if (level === 'sponsor') {
return 9000
}
}