// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;

/// Mock oracle for testing AereSink oracle-floor logic.
/// Returns 18-decimal USD prices; can be set to revert to test fallback path.
contract MockPriceOracle {
    mapping(address => uint256) public prices;
    bool public shouldRevert;

    function setPrice(address asset, uint256 price) external {
        prices[asset] = price;
    }

    function setRevert(bool b) external {
        shouldRevert = b;
    }

    function getPrice(address asset) external view returns (uint256) {
        require(!shouldRevert, "oracle paused");
        return prices[asset];
    }
}
