> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gains.trade/llms.txt
> Use this file to discover all available pages before exploring further.

# ITradingCommonUtils

*Interface for TradingCommonUtils library*

## TradePriceImpactInput

```solidity theme={null}
struct TradePriceImpactInput {
  struct ITradingStorage.Trade trade;
  uint256 oraclePrice;
  uint256 spreadP;
  uint256 positionSizeCollateral;
}
```

## GovFeeCharged

```solidity theme={null}
event GovFeeCharged(address trader, uint8 collateralIndex, uint256 amountCollateral)
```

*Emitted when gov fee is charged*

### Parameters

| Name | Type | Description |
| - | - | - |
| trader | address | address of the trader |
| collateralIndex | uint8 | index of the collateral |
| amountCollateral | uint256 | amount charged (collateral precision) |

## ReferralFeeCharged

```solidity theme={null}
event ReferralFeeCharged(address trader, uint8 collateralIndex, uint256 amountCollateral)
```

*Emitted when referral fee is charged*

### Parameters

| Name | Type | Description |
| - | - | - |
| trader | address | address of the trader |
| collateralIndex | uint8 | index of the collateral |
| amountCollateral | uint256 | amount charged (collateral precision) |

## GnsOtcFeeCharged

```solidity theme={null}
event GnsOtcFeeCharged(address trader, uint8 collateralIndex, uint256 amountCollateral)
```

*Emitted when GNS otc fee is charged*

### Parameters

| Name | Type | Description |
| - | - | - |
| trader | address | address of the trader |
| collateralIndex | uint8 | index of the collateral |
| amountCollateral | uint256 | amount charged (collateral precision) |

## TriggerFeeCharged

```solidity theme={null}
event TriggerFeeCharged(address trader, uint8 collateralIndex, uint256 amountCollateral)
```

*Emitted when trigger fee is charged*

### Parameters

| Name | Type | Description |
| - | - | - |
| trader | address | address of the trader |
| collateralIndex | uint8 | index of the collateral |
| amountCollateral | uint256 | amount charged (collateral precision) |

## GTokenFeeCharged

```solidity theme={null}
event GTokenFeeCharged(address trader, uint8 collateralIndex, uint256 amountCollateral)
```

*Emitted when gToken fee is charged*

### Parameters

| Name | Type | Description |
| - | - | - |
| trader | address | address of the trader |
| collateralIndex | uint8 | index of the collateral |
| amountCollateral | uint256 | amount charged (collateral precision) |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.