total amount of tokens in pool that many users put tokens in? The following works fine if there is only 1 user invested in the said pool but when users increase it always return 0, any ideas whats wrong?
uint256 userPoolSharePercent = (userBetAmount / pooledForThisOutcome) * 100;
calculateUserPoolWeight = (totalPooledAmountForThisMatch * userPoolSharePercent) / 100;
mappings
Обсуждают сегодня