Closed chase-manning closed 5 months ago
E.g. vault.totalSupply().mul(vault.exchangeRate()) with the output value still in 18 decimals. So would output the same as vault.totalSupply() * vault.exchangeRate() / 1e18
vault.totalSupply().mul(vault.exchangeRate())
vault.totalSupply() * vault.exchangeRate() / 1e18
Added mul and div. They both accept a decimal multiplier as a second argument (optional, defaults to 18)
mul
div
E.g.
vault.totalSupply().mul(vault.exchangeRate())
with the output value still in 18 decimals. So would output the same asvault.totalSupply() * vault.exchangeRate() / 1e18