#37202 [SC-Insight] some checks can be removed since its not required(best practice report, not an i
Description
Brief/Intro
Vulnerability Details
#[storage(read, write)]
fn liquidate(
id: Identity,
upper_partial_hint: Identity,
lower_partial_hint: Identity,
) {
require_trove_is_active(id);
let mut borrowers: Vec<Identity> = Vec::new();
borrowers.push(id);
internal_batch_liquidate_troves(borrowers, upper_partial_hint, lower_partial_hint);
}
#[storage(read)]
fn require_trove_is_active(id: Identity) {
let trove = storage.troves.get(id).read();
require(
trove.status == Status::Active,
"TroveManager: Trove is not active",
);
}Impact Details
References
Proof of Concept
Proof of Concept
Previous#37276 [SC-Medium] Redstone's price feed is used incorrectly.Next#37283 [SC-Low] Improper Trove Validation Check Allows Low-Cost Griefing Attack to Block Protocol Re
Last updated
Was this helpful?