constructor
initializeCallbacks
Parameters
| Name | Type | Description |
|---|---|---|
| _vaultClosingFeeP | uint8 | the % of closing fee going to vault |
initializeTreasuryAddress
Parameters
| Name | Type | Description |
|---|---|---|
| _treasury | address | the treasury address |
updateVaultClosingFeeP
Parameters
| Name | Type | Description |
|---|---|---|
| _valueP | uint8 | the % of closing fee going to vault |
updateTreasuryAddress
Parameters
| Name | Type | Description |
|---|---|---|
| _treasury | address | the new treasury address |
claimPendingGovFees
openTradeMarketCallback
Parameters
| Name | Type | Description |
|---|---|---|
| _a | ITradingCallbacks.AggregatorAnswer | the price aggregator answer (order id, price, etc.) |
closeTradeMarketCallback
Parameters
| Name | Type | Description |
|---|---|---|
| _a | ITradingCallbacks.AggregatorAnswer | the price aggregator answer (order id, price, etc.) |
executeTriggerOpenOrderCallback
Parameters
| Name | Type | Description |
|---|---|---|
| _a | ITradingCallbacks.AggregatorAnswer | the price aggregator answer (order id, price, etc.) |
executeTriggerCloseOrderCallback
Parameters
| Name | Type | Description |
|---|---|---|
| _a | ITradingCallbacks.AggregatorAnswer | the price aggregator answer (order id, price, etc.) |
getVaultClosingFeeP
getPendingGovFeesCollateral
updateLeverageCallback
Parameters
| Name | Type | Description |
|---|---|---|
| _a | ITradingCallbacks.AggregatorAnswer | the price aggregator answer (order id, price, etc.) |
increasePositionSizeMarketCallback
Parameters
| Name | Type | Description |
|---|---|---|
| _a | ITradingCallbacks.AggregatorAnswer | the price aggregator answer (order id, price, etc.) |
decreasePositionSizeMarketCallback
Parameters
| Name | Type | Description |
|---|---|---|
| _a | ITradingCallbacks.AggregatorAnswer | the price aggregator answer (order id, price, etc.) |
validateTriggerOpenOrderCallback
Parameters
| Name | Type | Description |
|---|---|---|
| _tradeId | ITradingStorage.Id | the id of the trade |
| _orderType | enum ITradingStorage.PendingOrderType | the pending order type |
| _open | uint64 | the open value from an aggregator answer |
| _high | uint64 | the high value from an aggregator answer |
| _low | uint64 | the low value from an aggregator answer |
validateTriggerCloseOrderCallback
Parameters
| Name | Type | Description |
|---|---|---|
| _tradeId | ITradingStorage.Id | the id of the trade |
| _orderType | enum ITradingStorage.PendingOrderType | the pending order type |
| _open | uint64 | the open value from an aggregator answer |
| _high | uint64 | the high value from an aggregator answer |
| _low | uint64 | the low value from an aggregator answer |
