AuctionBurnReserveSkew.getPegDeltaFrequency()
Wrong implementation can result in an improper amount of excess Liquidity Extension balance to be used at the end of an auction
#294
Labels
3 (High Risk)
Assets can be stolen/lost/compromised directly
bug
Something isn't working
disagree with severity
Sponsor confirms validity, but disagrees with warden’s risk assessment (sponsor explain in comments)
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
WatchPug
Vulnerability details
https://github.com/code-423n4/2021-11-malt/blob/c3a204a2c0f7c653c6c2dda9f4563fd1dc1cecf3/src/contracts/AuctionBurnReserveSkew.sol#L116-L132
When
count < auctionAverageLookback
, at L131, it should bereturn total * 10000 / count;
. The current implementation will return a smaller value than expected.The result of
getPegDeltaFrequency()
will be used for calculatingrealBurnBudget
for auctions. With the result ofgetPegDeltaFrequency()
being inaccurate, can result in an improper amount of excess Liquidity Extension balance to be used at the end of an auction.The text was updated successfully, but these errors were encountered: