@@ -40,9 +40,6 @@ contract ERC20PriceOracle is OwnableUpgradeable {
4040 /// @dev priceRatio = tokenScale * (tokenPrice / ethPrice) * 10^(ethDecimals - tokenDecimals)
4141 mapping (uint16 => uint256 ) public priceRatio;
4242
43- /// @notice Mapping from tokenID to fee discount percentage
44- mapping (uint16 => uint256 ) public feeDiscountPercent;
45-
4643 /// @notice Allow List whitelist
4744 mapping (address => bool ) public allowList;
4845
@@ -72,7 +69,6 @@ contract ERC20PriceOracle is OwnableUpgradeable {
7269 );
7370 event TokenDeactivated (uint16 indexed tokenID );
7471 event PriceRatioUpdated (uint16 indexed tokenID , uint256 newPrice );
75- event FeeDiscountPercentUpdated (uint16 indexed tokenID , uint256 newPercent );
7672 event TokenScaleUpdated (uint16 indexed tokenID , uint256 newScale );
7773 event AllowListSet (address indexed user , bool val );
7874 event AllowListEnabledUpdated (bool isEnabled );
@@ -401,37 +397,6 @@ contract ERC20PriceOracle is OwnableUpgradeable {
401397 return tokenID;
402398 }
403399
404- /*//////////////////////////////////////////////////////////////
405- Fee Discount Management
406- //////////////////////////////////////////////////////////////*/
407-
408- /**
409- * @notice Update fee discount percentage
410- * @param _tokenID Token ID
411- * @param _newPercent New fee discount percentage (basis points, 10000 = 100%)
412- */
413- function updateFeeDiscountPercent (uint16 _tokenID , uint256 _newPercent ) external onlyAllowed {
414- // Check if token exists
415- if (tokenRegistry[_tokenID].tokenAddress == address (0 )) revert TokenNotFound ();
416-
417- // Check percentage range (0-100%)
418- if (_newPercent > 10000 ) revert InvalidPercent ();
419-
420- feeDiscountPercent[_tokenID] = _newPercent;
421-
422- emit FeeDiscountPercentUpdated (_tokenID, _newPercent);
423- }
424-
425- /**
426- * @notice Get fee discount percentage
427- * @param _tokenID Token ID
428- * @return percent Fee discount percentage
429- */
430- function getFeeDiscountPercent (uint16 _tokenID ) external view returns (uint256 ) {
431- if (tokenRegistry[_tokenID].tokenAddress == address (0 )) revert TokenNotFound ();
432- return feeDiscountPercent[_tokenID];
433- }
434-
435400 /*//////////////////////////////////////////////////////////////
436401 Scale Management
437402 //////////////////////////////////////////////////////////////*/
0 commit comments