sherlock-audit / 2024-03-axis-finance-judging

1 stars 0 forks source link

thisvishalsingh - Protocol Fee Changes Impacting Auction Settlements #220

Closed sherlock-admin4 closed 7 months ago

sherlock-admin4 commented 7 months ago

thisvishalsingh

medium

Protocol Fee Changes Impacting Auction Settlements

Summary

The AuctionHouse contract is vulnerable to unexpected financial outcomes due to protocol fee changes during an active auction. Sellers and buyers could receive different amounts than anticipated if fees are altered before the auction's conclusion.

Vulnerability Detail

Impact

Code Snippet

given above. https://github.com/sherlock-audit/2024-03-axis-finance/blob/main/moonraker/src/AuctionHouse.sol#L587

Tool used

Manual Review

Recommendation

Implementation: The purchase function already calculates fees at the time of the transaction, which is a one-time operation and not subject to changes in fees during an auction's lifecycle. This immediate fee deduction upon purchase should be mirrored in the auction settlement process to ensure consistency.

nevillehuang commented 7 months ago

Invalid, admin action, invalid based on the following sherlock rule

  1. An admin action can break certain assumptions about the functioning of the code. Example: Pausing a collateral causes some users to be unfairly liquidated or any other action causing loss of funds. This is not considered a valid issue.
sherlock-admin4 commented 7 months ago

The protocol team fixed this issue in the following PRs/commits: https://github.com/Axis-Fi/moonraker/pull/140

10xhash commented 7 months ago

The protocol team fixed this issue in the following PRs/commits: Axis-Fi/moonraker#140

Fixed The fees are cached at the time of auction creation

sherlock-admin4 commented 7 months ago

The Lead Senior Watson signed off on the fix.