I'm building BEST MVP, a platform to tokenize brand equity via purchase proofs . Our ActivationManager uses a log10 formula for activation points: Any suggestions to optimize log10 with PRBMath or alternatives for precision/gas efficiency? Feedback welcome!
function calculatePoints(uint256 usdValue) internal pure returns (uint256) { uint256 logTerm = usdValue > 10000e8 ? Math.log10((usdValue / 10000e8) * 1e18) : 0; return (usdValue * 1e18) / (1e18 + logTerm); }