FeesCalculator
Verified contract
Active on
Ethereum with 6 txns
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
11 additional
variables
Balances ($0.00)
No balances found for "FeesCalculator"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 13682586 | 3 years ago | | | 0 | 0.0037459500 | |
| 13678478 | 3 years ago | | | 0 | 0.0054725700 | |
| 13641834 | 3 years ago | | | 0 | 0.0059101500 | |
| 13641308 | 3 years ago | | | 0 | 0.0056370600 | |
| 13626554 | 3 years ago | | | 0 | 0.0053125400 | |
| 13626551 | 3 years ago | | | 0 | 0.0030238100 |
ABI
ABI objects
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 openPositionFeePercentResult, uint16 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 _tokenAmount, uint8 _leverage, uint256 _collateralRatio, uint256 _lastCollateralRatio, bool _withVolumeFee) view returns (uint168 buyingPremiumFee, uint16 combinedPremiumFeePercentage)
calculateBuyingPremiumFeeWithAddendum(uint168 _tokenAmount, uint8 _leverage, uint256 _collateralRatio, uint256 _lastCollateralRatio, bool _withVolumeFee, uint16 _turbulenceIndicatorPercent) view returns (uint168 buyingPremiumFee, uint16 combinedPremiumFeePercentage)
calculateClosePositionFeePercent(uint256 _creationTimestamp, bool _isNoLockPositionAddress) view returns (uint16)
calculateClosingPremiumFee(uint256, uint256, uint256, bool _withVolumeFee) view returns (uint16 combinedPremiumFeePercentage)
calculateClosingPremiumFeeWithAddendum(uint256 _collateralRatio, uint256 _lastCollateralRatio, bool _withVolumeFee) view returns (uint16 combinedPremiumFeePercentage)
calculateSingleUnitFundingFee(struct IFeesCalculatorCVIValue[] _cviValues) view returns (uint256 fundingFee)
calculateTurbulenceIndicatorPercent(uint256 totalTime, uint256 newRounds, uint16 _lastCVIValue, uint16 _currCVIValue) view returns (uint16)
calculateWithdrawFeePercent(uint256) view returns (uint16)
collateralToBuyingPremiumMapping(uint256) view returns (uint16)
updateSnapshots(uint256 _latestTimestamp, uint256 _blockTimestampSnapshot, uint256 _latestTimestampSnapshot, uint80 latestOracleRoundId) view returns (struct IFeesCalculatorSnapshotUpdate snapshotUpdate)
State-modifying
Events 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 _collateralRatio, uint256 _lastCollateralRatio)
updateCloseAdjustedTimestamp(uint256 _collateralRatio, uint256 _lastCollateralRatio)
updateTurbulenceIndicatorPercent(uint256 _totalTime, uint256 _newRounds, uint16 _lastCVIValue, uint16 _currCVIValue)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
constructor(address _cviOracle, uint16 _maxCVIValue)
This contract contains no fallback and receive objects.
This contract contains no error objects.