MarginCalculator
Verified contract
Active on
Ethereum with 8 txns
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
0x789c…8833
Balances ($0.00)
No balances found for "MarginCalculator"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 12730173 | 3 years ago | | | 0 | 0.00097848600 | |
| 12728160 | 3 years ago | | | 0 | 0.00060988200 | |
| 12728159 | 3 years ago | | | 0 | 0.00064178400 | |
| 12728155 | 3 years ago | | | 0 | 0.00064162800 | |
| 12728131 | 3 years ago | | | 0 | 0.010966424 | |
| 12728129 | 3 years ago | | | 0 | 0.010966592 | |
| 12728109 | 3 years ago | | | 0 | 0.00090989100 | |
| 12728106 | 3 years ago | | | 0 | 0.00090920700 |
ABI
ABI objects
Getter at block 21282688
AUCTION_TIME() view returns (uint256)
5400
getOracleDeviation() view returns (uint256)
10000000000000000000000000
oracle() view returns (address)
0x789cd7ab3742e23ce0952f6bc3eb3a73a0e08833
owner() view returns (address)
0x638e5da0eebba58c67567bceb4ab2dc8d34853fb
Read-only
getCollateralDust(address _collateral) view returns (uint256)
getExcessCollateral(struct MarginVaultVault _vault, uint256 _vaultType) view returns (uint256, bool)
getExpiredPayoutRate(address _otoken) view returns (uint256)
getMarginRequired(struct MarginVaultVault _vault, uint256 _vaultType) view returns (struct FPIFixedPointInt, struct FPIFixedPointInt)
getMaxPrice(address _underlying, address _strike, address _collateral, bool _isPut, uint256 _timeToExpiry) view returns (uint256)
getNakedMarginRequired(address _underlying, address _strike, address _collateral, uint256 _shortAmount, uint256 _strikePrice, uint256 _underlyingPrice, uint256 _shortExpiryTimestamp, uint256 _collateralDecimals, bool _isPut) view returns (uint256)
getSpotShock(address _underlying, address _strike, address _collateral, bool _isPut) view returns (uint256)
getTimesToExpiry(address _underlying, address _strike, address _collateral, bool _isPut) view returns (uint256[])
isLiquidatable(struct MarginVaultVault _vault, uint256 _vaultType, uint256 _vaultLatestUpdate, uint256 _roundId) view returns (bool, uint256, uint256)
State-modifying
Events renounceOwnership()
setCollateralDust(address _collateral, uint256 _dust)
setOracleDeviation(uint256 _deviation)
setSpotShock(address _underlying, address _strike, address _collateral, bool _isPut, uint256 _shockValue)
setUpperBoundValues(address _underlying, address _strike, address _collateral, bool _isPut, uint256[] _timesToExpiry, uint256[] _values)
transferOwnership(address newOwner)
updateUpperBoundValue(address _underlying, address _strike, address _collateral, bool _isPut, uint256 _timeToExpiry, uint256 _value)
CollateralDustUpdated(address indexed collateral, uint256 dust)
MaxPriceAdded(bytes32 indexed productHash, uint256 timeToExpiry, uint256 value)
MaxPriceUpdated(bytes32 indexed productHash, uint256 timeToExpiry, uint256 oldValue, uint256 newValue)
OracleDeviationUpdated(uint256 oracleDeviation)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
SpotShockUpdated(bytes32 indexed product, uint256 spotShock)
TimeToExpiryAdded(bytes32 indexed productHash, uint256 timeToExpiry)
constructor(address _oracle)
This contract contains no fallback and receive objects.
This contract contains no error objects.