Skip to content

Commit

Permalink
fix(calculateTokens): read multipliers from backend
Browse files Browse the repository at this point in the history
  • Loading branch information
arsenijesavic committed Sep 19, 2023
1 parent 994ffac commit eb0789d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/store/proposals/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,10 +413,11 @@ export default {
ratioUsdEquity = parseFloat(state.draft.annualUsdSalary || 0) / 12
deferredSan = isNaN(state.draft.minDeferred) ? 0 : parseFloat(state.draft.minDeferred || 0)
}

// TO DO dividir entre 12 para mostrar por mes, mostrar uun lbael para informar que es mensual solo para assignmnt, y archertypes
commit('setPeg', (ratioUsdEquity * (1 - deferredSan / 100)).toFixed(0))
commit('setReward', (ratioUsdEquity * (deferredSan / 100) / rootState.dao.settings.rewardToPegRatio).toFixed(0))
commit('setVoice', ratioUsdEquity.toFixed(0) * 2)
commit('setPeg', (ratioUsdEquity * (1 - deferredSan / 100)).toFixed(0) * rootState.dao.settings.treasuryTokenMultiplier)
commit('setReward', ((ratioUsdEquity * (deferredSan / 100)).toFixed(0)) * rootState.dao.settings.utilityTokenMultiplier)
commit('setVoice', ratioUsdEquity.toFixed(0) * rootState.dao.settings.voiceTokenMultiplier)

// Para badges multiply multiplicar x 100 y sumar 10,000
},
Expand Down

0 comments on commit eb0789d

Please sign in to comment.