-
Notifications
You must be signed in to change notification settings - Fork 610
Futures min skew scale #1561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Futures min skew scale #1561
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,7 +20,7 @@ contract MixinFuturesMarketSettings is MixinResolver { | |
| bytes32 internal constant PARAMETER_MAX_LEVERAGE = "maxLeverage"; | ||
| bytes32 internal constant PARAMETER_MAX_MARKET_VALUE = "maxMarketValue"; | ||
| bytes32 internal constant PARAMETER_MAX_FUNDING_RATE = "maxFundingRate"; | ||
| bytes32 internal constant PARAMETER_MAX_FUNDING_RATE_SKEW = "maxFundingRateSkew"; | ||
| bytes32 internal constant PARAMETER_MIN_SKEW_SCALE = "minSkewScale"; | ||
| bytes32 internal constant PARAMETER_MAX_FUNDING_RATE_DELTA = "maxFundingRateDelta"; | ||
|
|
||
| // Global settings | ||
|
|
@@ -72,12 +72,12 @@ contract MixinFuturesMarketSettings is MixinResolver { | |
| return _parameter(_baseAsset, PARAMETER_MAX_MARKET_VALUE); | ||
| } | ||
|
|
||
| function _maxFundingRate(bytes32 _baseAsset) internal view returns (uint) { | ||
| return _parameter(_baseAsset, PARAMETER_MAX_FUNDING_RATE); | ||
| function _minSkewScale(bytes32 _baseAsset) internal view returns (uint) { | ||
| return _parameter(_baseAsset, PARAMETER_MIN_SKEW_SCALE); | ||
| } | ||
|
|
||
| function _maxFundingRateSkew(bytes32 _baseAsset) internal view returns (uint) { | ||
| return _parameter(_baseAsset, PARAMETER_MAX_FUNDING_RATE_SKEW); | ||
| function _maxFundingRate(bytes32 _baseAsset) internal view returns (uint) { | ||
| return _parameter(_baseAsset, PARAMETER_MAX_FUNDING_RATE); | ||
| } | ||
|
|
||
| function _maxFundingRateDelta(bytes32 _baseAsset) internal view returns (uint) { | ||
|
|
@@ -94,7 +94,7 @@ contract MixinFuturesMarketSettings is MixinResolver { | |
| uint maxLeverage, | ||
| uint maxMarketValue, | ||
| uint maxFundingRate, | ||
| uint maxFundingRateSkew, | ||
| uint minSkewScale, | ||
| uint maxFundingRateDelta | ||
| ) | ||
| { | ||
|
|
@@ -104,7 +104,7 @@ contract MixinFuturesMarketSettings is MixinResolver { | |
| maxLeverage = _maxLeverage(_baseAsset); | ||
| maxMarketValue = _maxMarketValue(_baseAsset); | ||
| maxFundingRate = _maxFundingRate(_baseAsset); | ||
| maxFundingRateSkew = _maxFundingRateSkew(_baseAsset); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why removing
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess it's not really used and is always
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It was not used in practice (was set to 1). Additionally it was making calculations complex to reason about and test. Should be simple enough to reintroduce if we need it when we need a more complex model. |
||
| minSkewScale = _minSkewScale(_baseAsset); | ||
| maxFundingRateDelta = _maxFundingRateDelta(_baseAsset); | ||
| } | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.