Closed gangov closed 1 month ago
variable in question is being used in stake_rewards/distritubion.rs
pub fn calc_power(
config: &Config,
stakes: i128,
multiplier: Decimal,
token_per_power: i32,
) -> i128 {
if stakes < config.min_bond {
0
} else {
stakes * multiplier / token_per_power as i128
}
}
closing this one as per the last comment
Did you explain this to the coinspect team as well?
Did you explain this to the coinspect team as well?
no, I haven't. Adding it now in a separate msg, besides the sheet update
Location
Description When initializing the contract, the initialize function below receives a
min_bond
parameter. However, after being saved into storage, it is not utilized.While this does not pose a risk to the contract's users, having unused parameters and information adds unnecessary complexity to the contract's maintenance and consumes unnecessary storage space.
Recommendation Remove this parameter if it is not used. Also, check for additional unused parameters or variables.