MarginCalculator
Verified contract
Active on
Ethereum with 80 txns
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
0xc69c…332e
0x8be7…060c
Balances ($0.00)
No balances found for "MarginCalculator"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 17788734 | a year ago | | | 0 | 0.0024346500 | |
| 17788733 | a year ago | | | 0 | 0.0024349500 | |
| 17788732 | a year ago | | | 0 | 0.0012353500 | |
| 17788731 | a year ago | | | 0 | 0.0012356500 | |
| 17690713 | a year ago | | | 0 | 0.0024346500 | |
| 17690712 | a year ago | | | 0 | 0.0024349500 | |
| 17690711 | a year ago | | | 0 | 0.0012353500 | |
| 17690710 | a year ago | | | 0 | 0.0012356500 | |
| 17690580 | a year ago | | | 0 | 0.0025320360 | |
| 17690579 | a year ago | | | 0 | 0.0025323480 |
ABI
ABI objects
Getter at block 21274645
AUCTION_TIME() view returns (uint256)
3600
addressBook() view returns (address)
0x8be7687884111f62ec088a81cf2f7d39263f060c
getOracleDeviation() view returns (uint256)
0
liquidationMultiplier() view returns (uint256)
10000
oracle() view returns (address)
0xc69c49bac000e6310aa055af5593e0ebf603332e
owner() view returns (address)
0xf8368119bb1073cf01b841848725d81b542a4c19
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 FixedPointInt256FixedPointInt, struct FixedPointInt256FixedPointInt)
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) view returns (bool, uint256, uint256)
State-modifying
Events renounceOwnership()
setCollateralDust(address _collateral, uint256 _dust)
setLiquidationMultiplier(uint256 _liquidationMultiplier)
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)
LiquidationMultiplierUpdated(uint256 liquidationMultiplier)
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, address _addressBook)
This contract contains no fallback and receive objects.
This contract contains no error objects.