v9.1.1 Update
Summary
Apply fee tiers to oracle rewards
Full Changelog
core/facets/GNSPriceAggregator.sol (update)
getPrice
andgetLinkFee
now accept_trader
argument
interfaces/libraries/IPriceAggregatorUtils.sol (update)
Adjusted
getPrice
andgetLinkFee
functions definitionsUpdated
PriceRequested
event: now emits trader address, andcollateralIndex
/trader
/pairIndex
are now the indexed properties (orderType
andjob
no longer indexed)
libraries/updateLeverage/UpdateLeverageLifecycles.sol (update)
_initiateRequest
: small adjustment to avoid stack too deep, now passes_trade.user
togetPrice
libraries/updatePositionSize/UpdatePositionSizeLifecycles.sol (update)
_initiateRequest
: passes_trade.user
togetPrice
libraries/PriceAggregatorUtils.sol (update)
Library is now external
getPrice
now accepts_trader
argument, refreshes fee tier for_trader
right before calculating link fee, passes_trader
togetLinkFee
to apply his fee tier to the oracle link fees, andPriceRequested
now emits_trader
getLinkFee
now accepts_trader
and applies his fee tier to the link fee result
libraries/TradingInteractionsUtils.sol (update)
closeTradeMarket
: passest.user
togetPrice
triggerOrder
: refreshest.user
's fee tier before receiving the link fee from the caller, passest.user
togetLinkFee
_openTrade
: passes_trade.user
togetPrice
_getPriceTriggerOrder
: passes_trade.user
togetPrice
Last updated