@@ -11,15 +11,6 @@ import {Proxy} from "contracts/Proxy.sol";
1111import {Mainnet} from "contracts/utils/Addresses.sol " ;
1212
1313contract Fork_PaxosARM_Smoke_Test is AbstractSmokeTest {
14- /// @dev 0.998e36 = 0.998 USDC per base asset, the automation's minimum buy price.
15- uint256 internal constant MIN_BUY_PRICE = 0.998e36 ;
16- /// @dev 0.99995e36 = 0.99995 USDC per base asset, the automation's maximum buy price.
17- uint256 internal constant MAX_BUY_PRICE = 0.99995e36 ;
18- /// @dev 0.99997e36 = 0.99997 USDC per base asset, the automation's minimum sell price.
19- uint256 internal constant MIN_SELL_PRICE = 0.99997e36 ;
20- /// @dev 1e36 = 1 USDC per base asset, the automation's maximum sell price.
21- uint256 internal constant MAX_SELL_PRICE = 1e36 ;
22-
2314 IERC20 usdc;
2415 IERC20 pyusd;
2516 IERC20 usdg;
@@ -97,20 +88,9 @@ contract Fork_PaxosARM_Smoke_Test is AbstractSmokeTest {
9788 }
9889
9990 function _assertBaseAssetConfig (address baseAsset , address expectedAdapter , string memory label ) internal view {
100- (
101- uint128 buyPrice ,
102- uint128 sellPrice ,,,
103- uint128 crossPrice ,,
104- bool peggedToLiquidityAsset ,
105- uint8 baseAssetDecimals ,
106- address adapter
107- ) = usdcARM.baseAssetConfigs (baseAsset);
108-
109- assertGe (buyPrice, MIN_BUY_PRICE, string .concat (label, " minimum buy price " ));
110- assertLe (buyPrice, MAX_BUY_PRICE, string .concat (label, " maximum buy price " ));
111- assertGe (sellPrice, MIN_SELL_PRICE, string .concat (label, " minimum sell price " ));
112- assertLe (sellPrice, MAX_SELL_PRICE, string .concat (label, " maximum sell price " ));
113- assertEq (crossPrice, 0.99997e36 , string .concat (label, " cross price " ));
91+ (,,,,,, bool peggedToLiquidityAsset , uint8 baseAssetDecimals , address adapter ) =
92+ usdcARM.baseAssetConfigs (baseAsset);
93+
11494 assertEq (peggedToLiquidityAsset, true , string .concat (label, " pegged " ));
11595 assertEq (baseAssetDecimals, 6 , string .concat (label, " base asset decimals " ));
11696 assertEq (adapter, expectedAdapter, string .concat (label, " adapter " ));
0 commit comments