Skip to main content
Interface for TradingCommonUtils library

TradePriceImpactInput

struct TradePriceImpactInput {
  struct ITradingStorage.Trade trade;
  uint256 oraclePrice;
  uint256 spreadP;
  uint256 positionSizeCollateral;
}

GovFeeCharged

event GovFeeCharged(address trader, uint8 collateralIndex, uint256 amountCollateral)
Emitted when gov fee is charged

Parameters

NameTypeDescription
traderaddressaddress of the trader
collateralIndexuint8index of the collateral
amountCollateraluint256amount charged (collateral precision)

ReferralFeeCharged

event ReferralFeeCharged(address trader, uint8 collateralIndex, uint256 amountCollateral)
Emitted when referral fee is charged

Parameters

NameTypeDescription
traderaddressaddress of the trader
collateralIndexuint8index of the collateral
amountCollateraluint256amount charged (collateral precision)

GnsOtcFeeCharged

event GnsOtcFeeCharged(address trader, uint8 collateralIndex, uint256 amountCollateral)
Emitted when GNS otc fee is charged

Parameters

NameTypeDescription
traderaddressaddress of the trader
collateralIndexuint8index of the collateral
amountCollateraluint256amount charged (collateral precision)

TriggerFeeCharged

event TriggerFeeCharged(address trader, uint8 collateralIndex, uint256 amountCollateral)
Emitted when trigger fee is charged

Parameters

NameTypeDescription
traderaddressaddress of the trader
collateralIndexuint8index of the collateral
amountCollateraluint256amount charged (collateral precision)

GTokenFeeCharged

event GTokenFeeCharged(address trader, uint8 collateralIndex, uint256 amountCollateral)
Emitted when gToken fee is charged

Parameters

NameTypeDescription
traderaddressaddress of the trader
collateralIndexuint8index of the collateral
amountCollateraluint256amount charged (collateral precision)