v9.1.1 Update
Summary
Apply fee tiers to oracle rewards
Full Changelog
core/facets/GNSPriceAggregator.sol (update)
getPriceandgetLinkFeenow accept_traderargument
interfaces/libraries/IPriceAggregatorUtils.sol (update)
Adjusted
getPriceandgetLinkFeefunctions definitionsUpdated
PriceRequestedevent: now emits trader address, andcollateralIndex/trader/pairIndexare now the indexed properties (orderTypeandjobno longer indexed)
libraries/updateLeverage/UpdateLeverageLifecycles.sol (update)
_initiateRequest: small adjustment to avoid stack too deep, now passes_trade.usertogetPrice
libraries/updatePositionSize/UpdatePositionSizeLifecycles.sol (update)
_initiateRequest: passes_trade.usertogetPrice
libraries/PriceAggregatorUtils.sol (update)
Library is now external
getPricenow accepts_traderargument, refreshes fee tier for_traderright before calculating link fee, passes_tradertogetLinkFeeto apply his fee tier to the oracle link fees, andPriceRequestednow emits_tradergetLinkFeenow accepts_traderand applies his fee tier to the link fee result
libraries/TradingInteractionsUtils.sol (update)
closeTradeMarket: passest.usertogetPricetriggerOrder: refreshest.user's fee tier before receiving the link fee from the caller, passest.usertogetLinkFee_openTrade: passes_trade.usertogetPrice_getPriceTriggerOrder: passes_trade.usertogetPrice
Last updated
Was this helpful?