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) |
---|---|---|---|---|---|---|---|
| 13682592 | 3 years ago | | | 0 | 0.0037459500 | |
| 13678468 | 3 years ago | | | 0 | 0.0054725700 | |
| 13678403 | 3 years ago | | | 0 | 0.0087772400 | |
| 13678400 | 3 years ago | | | 0 | 0.0049958600 | |
| 13677852 | 3 years ago | | | 0 | 0.0044807400 | |
| 13677848 | 3 years ago | | | 0 | 0.0044686500 |
ABI
ABI objects
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 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)
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 _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.