initializeGroupLiquidationParams
Parameters
| Name | Type | Description |
|---|---|---|
| _groupLiquidationParams | IPairsStorage.GroupLiquidationParams[] | liquidation params for each group (index corresponds to group index) |
initializeNewFees
Parameters
| Name | Type | Description |
|---|---|---|
| _tradeFeeParams | IPairsStorage.GlobalTradeFeeParams | global trade fee params |
addPairs
Parameters
| Name | Type | Description |
|---|---|---|
| _pairs | IPairsStorage.Pair[] | pairs to add |
updatePairs
Parameters
| Name | Type | Description |
|---|---|---|
| _pairIndices | uint256[] | indices of pairs |
| _pairs | IPairsStorage.Pair[] | new pairs values |
addGroups
Parameters
| Name | Type | Description |
|---|---|---|
| _groups | IPairsStorage.Group[] | groups to add |
updateGroups
Parameters
| Name | Type | Description |
|---|---|---|
| _ids | uint256[] | indices of groups |
| _groups | IPairsStorage.Group[] | new groups values |
addFees
Parameters
| Name | Type | Description |
|---|---|---|
| _fees | IPairsStorage.FeeGroup[] | fees to add |
updateFees
Parameters
| Name | Type | Description |
|---|---|---|
| _ids | uint256[] | indices of fees |
| _fees | IPairsStorage.FeeGroup[] | new fees values |
setPairCustomMaxLeverages
Parameters
| Name | Type | Description |
|---|---|---|
| _indices | uint256[] | indices of pairs |
| _values | uint256[] | new custom max leverages (1e3 precision) |
setGroupLiquidationParams
Parameters
| Name | Type | Description |
|---|---|---|
| _groupIndex | uint256 | index of group |
| _params | IPairsStorage.GroupLiquidationParams | new liquidation params |
setGlobalTradeFeeParams
Parameters
| Name | Type | Description |
|---|---|---|
| _feeParams | IPairsStorage.GlobalTradeFeeParams | new fee params |
pairJob
Parameters
| Name | Type | Description |
|---|---|---|
| _pairIndex | uint256 | index of pair |
Return Values
| Name | Type | Description |
|---|---|---|
| from | string | pair from (eg. BTC) |
| to | string | pair to (eg. USD) |
isPairListed
Parameters
| Name | Type | Description |
|---|---|---|
| _from | string | pair from (eg. BTC) |
| _to | string | pair to (eg. USD) |
isPairIndexListed
Parameters
| Name | Type | Description |
|---|---|---|
| _pairIndex | uint256 | index of pair to check |
pairs
Parameters
| Name | Type | Description |
|---|---|---|
| _index | uint256 | index of pair |
pairsCount
pairSpreadP
Parameters
| Name | Type | Description |
|---|---|---|
| _pairIndex | uint256 | index of pair |
pairMinLeverage
Parameters
| Name | Type | Description |
|---|---|---|
| _pairIndex | uint256 | index of pair |
pairTotalPositionSizeFeeP
Parameters
| Name | Type | Description |
|---|---|---|
| _pairIndex | uint256 | index of pair |
pairTotalLiqCollateralFeeP
Parameters
| Name | Type | Description |
|---|---|---|
| _pairIndex | uint256 | index of pair |
pairOraclePositionSizeFeeP
Parameters
| Name | Type | Description |
|---|---|---|
| _pairIndex | uint256 | index of pair |
pairMinPositionSizeUsd
Parameters
| Name | Type | Description |
|---|---|---|
| _pairIndex | uint256 | index of pair |
getGlobalTradeFeeParams
pairMinFeeUsd
Parameters
| Name | Type | Description |
|---|---|---|
| _pairIndex | uint256 | index of pair |
groups
Parameters
| Name | Type | Description |
|---|---|---|
| _index | uint256 | index of group |
groupsCount
fees
Parameters
| Name | Type | Description |
|---|---|---|
| _index | uint256 | index of fee group |
feesCount
pairMaxLeverage
Parameters
| Name | Type | Description |
|---|---|---|
| _pairIndex | uint256 | index of pair |
pairCustomMaxLeverage
Parameters
| Name | Type | Description |
|---|---|---|
| _pairIndex | uint256 | index of pair |
getAllPairsRestrictedMaxLeverage
getGroupLiquidationParams
getPairLiquidationParams
PairAdded
Parameters
| Name | Type | Description |
|---|---|---|
| index | uint256 | index of pair |
| from | string | pair from (eg. BTC) |
| to | string | pair to (eg. USD) |
PairUpdated
Parameters
| Name | Type | Description |
|---|---|---|
| index | uint256 | index of pair |
PairCustomMaxLeverageUpdated
Parameters
| Name | Type | Description |
|---|---|---|
| index | uint256 | index of pair |
| maxLeverage | uint256 | new max leverage (1e3 precision) |
GroupAdded
Parameters
| Name | Type | Description |
|---|---|---|
| index | uint256 | index of group |
| name | string | name of group |
GroupUpdated
Parameters
| Name | Type | Description |
|---|---|---|
| index | uint256 | index of group |
FeeAdded
Parameters
| Name | Type | Description |
|---|---|---|
| index | uint256 | index of fee group |
| feeGroup | struct IPairsStorage.FeeGroup | fee group |
FeeUpdated
Parameters
| Name | Type | Description |
|---|---|---|
| index | uint256 | index of fee group |
| feeGroup | struct IPairsStorage.FeeGroup | updated fee group |
GroupLiquidationParamsUpdated
Parameters
| Name | Type | Description |
|---|---|---|
| index | uint256 | index of group |
| params | struct IPairsStorage.GroupLiquidationParams | new group liquidation params |
GlobalTradeFeeParamsUpdated
Parameters
| Name | Type | Description |
|---|---|---|
| feeParams | struct IPairsStorage.GlobalTradeFeeParams | new fee params |
