Upgraded Q -> 2 from #167 [1728301859344] #175
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
duplicate-31
partial-50
Incomplete articulation of vulnerability; eligible for partial credit only (50%)
Judge has assessed an item in Issue #167 as 2 risk. The relevant finding follows:
[LOW-5] Removal of liquidity also requires the pool to be enabled:
In LOC-687, lib.rs, it is said that liquidity removal from a position does not require the pool to be enabled:
https://github.com/code-423n4/2024-08-superposition/blob/main/pkg/seawater/src/lib.rs#L687
However, the function
update_position()
in pool.rs, which is called byupdate_position_internal()
in lib.rs requires the pool to be enabled:https://github.com/code-423n4/2024-08-superposition/blob/main/pkg/seawater/src/pool.rs#L92
Recommended Mitigation Steps:
Consider allowing removal of liquidity even when the pool is not enabled, that is, when delta is negative
The text was updated successfully, but these errors were encountered: