Description:
"The assert_fees function in update_config from liquidation_queue contract is not applied correctly. As a consequence, some valid values will not be accepted, see example below:
Current values:
bid_fee = 0.3
liquidator_fee = 0.6
New values:
bid_fee = 0.5
liquidator_fee = 0.4
The new values won't be accepted despite that 0.5 + 0.4 < 1. The assert_fees function should be applied after trying to change both values (bid_fee and liquidator_fee).
Description: "The
assert_fees
function inupdate_config
from liquidation_queue contract is not applied correctly. As a consequence, some valid values will not be accepted, see example below:Current values:
New values:
The new values won't be accepted despite that 0.5 + 0.4 < 1. The
assert_fees
function should be applied after trying to change both values (bid_fee
andliquidator_fee
).Code Location: krp-cdp-contracts/contracts/liquidation_queue/src/contract.rs#L211-L219