FeesCalculator

Verified contract

Active on Ethereum with 6 txns
Deployed by via 0xa7c1d04e at 13677757
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
11 additional variables

No balances found for "FeesCalculator"

0xfe339822cf52dbededb51934d4b841a015aa1c858dfce3e3cc64a570d2ba1e8e
0x2634c8811d66e276d6cf9a2455bf66862032022ebbb59e1c77facc84360e7677
0xf2524855e9876e4095619c4d9e3cb84860ccfe75f09b5fc7c664d81169269ee1
0xb34b153962c15b36a356e848cd6e10c7ef2b0ab8e586efc27823f24560301760
0xd7d09688716ed192d630dccb409e7871cdbf40d134e81a59bfa39b6ef0da84d3
0x1dbbbd953e1731976f1629267e55f157c53b6560c4165346403fdb178b5309aa

Functions
Getter at block 21303733
adjustedVolumeTimestamp(view returns (uint32)
1648355208
buyingPremiumFeeMaxPercent(view returns (uint16)
1000
buyingPremiumThreshold(view returns (uint16)
6500
closeAdjustedVolumeTimestamp(view returns (uint32)
1649094920
closeMaxVolumeFee(view returns (uint16)
80
closeMaxVolumeFeeDeltaCollateral(view returns (uint16)
600
closeMidVolumeFee(view returns (uint16)
0
closePositionFeeDecayPeriod(view returns (uint256)
86400
closePositionFeePercent(view returns (uint16)
30
closePositionLPFeePercent(view returns (uint16)
0
closePositionMaxFeePercent(view returns (uint16)
300
closeVolumeFeeTimeWindow(view returns (uint16)
3600
closeVolumeTimeWindow(view returns (uint16)
7200
closingPremiumFeeMaxPercent(view returns (uint16)
1000
cviOracle(view returns (address)
0x9bc99ed62555f8f0dd1566681a2327500f62a19e
depositFeePercent(view returns (uint16)
0
fundingFeeConstantRate(view returns (uint256)
3000
maxCVIValue(view returns (uint16)
22000
maxTurbulenceFeePercentToTrim(view returns (uint16)
100
maxVolumeFee(view returns (uint16)
130
maxVolumeFeeDeltaCollateral(view returns (uint16)
600
midVolumeFee(view returns (uint16)
0
openPositionFeePercent(view returns (uint16)
15
openPositionFees(view returns (uint16 openPositionFeePercentResultuint16 buyingPremiumFeeMaxPercentResult)
(openPositionFeePercentResult=15, buyingPremiumFeeMaxPercentResult=1000)
openPositionLPFeePercent(view returns (uint16)
15
oracleHeartbeatPeriod(view returns (uint256)
3300
owner(view returns (address)
0xcedad8c0ae5e0a878c01cc8c81e0ca2dba909ded
stateUpdator(view returns (address)
0x0e0da40101d8f6eb1b1d6b0215327e8452e0bc60
turbulenceDeviationPercentage(view returns (uint16)
500
turbulenceDeviationThresholdPercent(view returns (uint16)
7000
turbulenceIndicatorPercent(view returns (uint16)
0
turbulenceStepPercent(view returns (uint16)
1000
volumeFeeTimeWindow(view returns (uint16)
3600
volumeTimeWindow(view returns (uint16)
7200
withdrawFeePercent(view returns (uint16)
0
Read-only
calculateBuyingPremiumFee(uint168 _tokenAmountuint8 _leverageuint256 _collateralRatiouint256 _lastCollateralRatiobool _withVolumeFeeview returns (uint168 buyingPremiumFeeuint16 combinedPremiumFeePercentage)
calculateBuyingPremiumFeeWithAddendum(uint168 _tokenAmountuint8 _leverageuint256 _collateralRatiouint256 _lastCollateralRatiobool _withVolumeFeeuint16 _turbulenceIndicatorPercentview returns (uint168 buyingPremiumFeeuint16 combinedPremiumFeePercentage)
calculateClosePositionFeePercent(uint256 _creationTimestampbool _isNoLockPositionAddressview returns (uint16)
calculateClosingPremiumFee(uint256uint256uint256bool _withVolumeFeeview returns (uint16 combinedPremiumFeePercentage)
calculateClosingPremiumFeeWithAddendum(uint256 _collateralRatiouint256 _lastCollateralRatiobool _withVolumeFeeview returns (uint16 combinedPremiumFeePercentage)
calculateSingleUnitFundingFee(struct IFeesCalculatorCVIValue[] _cviValuesview returns (uint256 fundingFee)
calculateTurbulenceIndicatorPercent(uint256 totalTimeuint256 newRoundsuint16 _lastCVIValueuint16 _currCVIValueview returns (uint16)
calculateWithdrawFeePercent(uint256view returns (uint16)
collateralToBuyingPremiumMapping(uint256view returns (uint16)
updateSnapshots(uint256 _latestTimestampuint256 _blockTimestampSnapshotuint256 _latestTimestampSnapshotuint80 latestOracleRoundIdview returns (struct IFeesCalculatorSnapshotUpdate snapshotUpdate)
State-modifying
renounceOwnership(
setBuyingPremiumFeeMax(uint16 _newBuyingPremiumFeeMaxPercentage
setBuyingPremiumThreshold(uint16 _newBuyingPremiumThreshold
setCloseMaxVolumeFee(uint16 _newCloseMaxVolumeFee
setCloseMaxVolumeFeeDeltaCollateral(uint16 _newCloseMaxVolumeFeeDeltaCollateral
setCloseMidVolumeFee(uint16 _newCloseMidVolumeFee
setClosePositionFee(uint16 _newClosePositionFeePercentage
setClosePositionFeeDecay(uint256 _newClosePositionFeeDecayPeriod
setClosePositionLPFee(uint16 _newClosePositionLPFeePercent
setClosePositionMaxFee(uint16 _newClosePositionMaxFeePercentage
setCloseVolumeFeeTimeWindow(uint16 _newCloseVolumeFeeTimeWindow
setCloseVolumeTimeWindow(uint16 _newCloseVolumeTimeWindow
setClosingPremiumFeeMax(uint16 _newClosingPremiumFeeMaxPercentage
setCollateralToBuyingPremiumMapping(uint16[] _newCollateralToBuyingPremiumMapping
setDepositFee(uint16 _newDepositFeePercentage
setFundingFeeConstantRate(uint16 _newfundingFeeConstantRate
setMaxTurbulenceFeePercentToTrim(uint16 _newMaxTurbulenceFeePercentToTrim
setMaxVolumeFee(uint16 _newMaxVolumeFee
setMaxVolumeFeeDeltaCollateral(uint16 _newMaxVolumeFeeDeltaCollateral
setMidVolumeFee(uint16 _newMidVolumeFee
setOpenPositionFee(uint16 _newOpenPositionFeePercentage
setOpenPositionLPFee(uint16 _newOpenPositionLPFeePercent
setOracle(address _cviOracle
setOracleHeartbeatPeriod(uint256 _newOracleHeartbeatPeriod
setStateUpdator(address _newUpdator
setTurbulenceDeviationPercent(uint16 _newTurbulenceDeviationPercentage
setTurbulenceDeviationThresholdPercent(uint16 _newTurbulenceDeviationThresholdPercent
setTurbulenceStep(uint16 _newTurbulenceStepPercentage
setVolumeFeeTimeWindow(uint16 _newVolumeFeeTimeWindow
setVolumeTimeWindow(uint16 _newVolumeTimeWindow
setWithdrawFee(uint16 _newWithdrawFeePercentage
transferOwnership(address newOwner
updateAdjustedTimestamp(uint256 _collateralRatiouint256 _lastCollateralRatio
updateCloseAdjustedTimestamp(uint256 _collateralRatiouint256 _lastCollateralRatio
updateTurbulenceIndicatorPercent(uint256 _totalTimeuint256 _newRoundsuint16 _lastCVIValueuint16 _currCVIValue
Events
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
Constructor
constructor(address _cviOracleuint16 _maxCVIValue
Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.