FeesCalculator

Verified contract

Active on Ethereum with 6 txns
Deployed by via 0x79839495 at 13626448
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"

0x9823f492db78739509adcd3e5ed3fdae3802ef0655358d6ba0d85efe00aa34f4
0x8e5a78917af5ffb4b76e61b7333d9341a1afcb68f7247d393460fac20eb4deed
0xcec980d4df058974e38682732c4f8f7cd9d91c4ed675673e36345384190d266b
0xbf1e1c8c5b115b7f0b0f4c94e1d0252922cc14fc298ef865f588bc49c5391702
0x070467be110a56002487a72cbd6284b06755735c8e0f38873a37527cb51c5c70
0x271cc2f10894a3234ebacc5f6019376bcbf666b2d0ee9718814899939c1eeec7

Functions
Getter at block 21210082
adjustedVolumeTimestamp(view returns (uint32)
1652892358
buyingPremiumFeeMaxPercent(view returns (uint16)
1000
buyingPremiumThreshold(view returns (uint16)
6500
closeAdjustedVolumeTimestamp(view returns (uint32)
1652921053
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)
0x44f671c28454d8f490088fa77f564a06a8caeba2
depositFeePercent(view returns (uint16)
0
fundingFeeConstantRate(view returns (uint256)
3000
maxCVIValue(view returns (uint16)
20000
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)
0x2167eefb9ecb52fb6fcf1ff8f7dae6f0121f4fbc
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.