We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1870e16 commit b249170Copy full SHA for b249170
contracts/staking/src/contract.rs
@@ -404,7 +404,6 @@ pub fn query_investment(deps: Deps) -> StdResult<InvestmentResponse> {
404
nominal_value: if supply.issued.is_zero() {
405
FALLBACK_RATIO
406
} else {
407
- // TODO: use Decimal256???
408
Decimal256::from_ratio(supply.bonded, supply.issued)
409
.try_into()
410
.map_err(|_| StdError::generic_err("nominal value too high"))?
0 commit comments