mirror of
https://github.com/ecency/ecency-mobile.git
synced 2025-01-04 20:15:51 +03:00
/4
This commit is contained in:
parent
adfff5663c
commit
afb4cdb357
@ -16,9 +16,8 @@ export const getEstimatedAmount = (account, globalProps:GlobalProps, sliderValue
|
||||
const totalVests = vestingShares;
|
||||
const weight = sliderValue * 10000;
|
||||
const hbdMedian = base / quote;
|
||||
console.log(_votingPower);
|
||||
const voteEffectiveShares = calculateVoteRshares(totalVests, _votingPower, weight)
|
||||
const voteValue = (voteEffectiveShares / fundRecentClaims) * fundRewardBalance * hbdMedian;
|
||||
const voteValue = (voteEffectiveShares / fundRecentClaims) * fundRewardBalance * hbdMedian / 4;
|
||||
const estimatedAmount = weight < 0 ? Math.min(voteValue * -1, 0) : Math.max(voteValue, 0)
|
||||
|
||||
return Number.isNaN(estimatedAmount) ? '0.00000' : estimatedAmount.toFixed(5);
|
||||
|
Loading…
Reference in New Issue
Block a user