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:
parent
00e4eb765b
commit
7d9cd57340
@ -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) {
|
||||
|
@ -34,6 +34,8 @@ export const blocksNeed = (level) => {
|
||||
return '3037600'
|
||||
} else if (level === 9) {
|
||||
return '4074400'
|
||||
} else if (level === 'sponsor') {
|
||||
return 9000
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user