MoCState
Structs
InitializeParams
struct InitializeParams {
address connectorAddress,
address governor,
address btcPriceProvider,
uint256 liq,
uint256 utpdu,
uint256 maxDiscRate,
uint256 dayBlockSpan,
uint256 ema,
uint256 smoothFactor,
uint256 emaBlockSpan,
uint256 maxMintBPro,
address mocPriceProvider,
address mocTokenAddress,
address mocVendorsAddress,
bool liquidationEnabled,
uint256 protected
}Contract Members
StateTransition
Name
Type
Description
BtcPriceProviderUpdated
Name
Type
Description
MoCPriceProviderUpdated
Name
Type
Description
MoCTokenChanged
Name
Type
Description
MoCVendorsChanged
Name
Type
Description
Functions
initialize
Name
Type
Description
setMaxDiscountRate
Name
Type
Description
getMaxDiscountRate
setDayBlockSpan
Name
Type
Description
setBtcPriceProvider
Name
Type
Description
getBtcPriceProvider
getDayBlockSpan
subtractRbtcFromSystem
Name
Type
Description
addToRbtcInSystem
Name
Type
Description
bproTotalSupply
docTotalSupply
cobj
collateralRbtcInSystem
globalCoverage
lockedBitcoin
Name
Type
Description
getRbtcInBitPro
Name
Type
Description
getRbtcRemainder
coverage
Name
Type
Description
abundanceRatio
Name
Type
Description
currentAbundanceRatio
leverage
Name
Type
Description
globalMaxDoc
freeDoc
maxDoc
Name
Type
Description
globalMaxBPro
absoluteMaxDoc
maxBPro
Name
Type
Description
maxBProx
Name
Type
Description
maxBProxBtcValue
Name
Type
Description
absoluteMaxBPro
maxBProWithDiscount
globalLockedBitcoin
bproTecPrice
bucketBProTecPrice
Name
Type
Description
bucketBProTecPriceHelper
Name
Type
Description
bproDiscountPrice
bproUsdPrice
maxBProxBProValue
Name
Type
Description
bproxBProPrice
Name
Type
Description
bproSpotDiscountRate
daysToSettlement
blocksToSettlement
isLiquidationReached
getLiquidationPrice
getBucketNBTC
Name
Type
Description
getBucketNBPro
Name
Type
Description
getBucketNDoc
Name
Type
Description
getBucketCobj
Name
Type
Description
getInrateBag
Name
Type
Description
getBcons
getBitcoinPrice
calculateBitcoinMovingAverage
getLiq
setLiq
Name
Type
Description
getUtpdu
setUtpdu
Name
Type
Description
getPeg
setPeg
Name
Type
Description
getProtected
setProtected
Name
Type
Description
getLiquidationEnabled
setLiquidationEnabled
Name
Type
Description
nextState
setMaxMintBPro
Name
Type
Description
getMaxMintBPro
setMoCPriceProvider
Name
Type
Description
getMoCPriceProvider
getMoCPrice
bproToBtc
Name
Type
Description
docsToBtc
Name
Type
Description
btcToDoc
Name
Type
Description
bproxToBtc
Name
Type
Description
bproxToBtcHelper
Name
Type
Description
btcToBProx
Name
Type
Description
setMoCToken
Name
Type
Description
getMoCToken
setMoCVendors
Name
Type
Description
getMoCVendors
setMoCTokenInternal
Name
Type
Description
setMoCVendorsInternal
Name
Type
Description
setLiquidationPrice
initializeValues
Name
Type
Description
initializeContracts
Name
Type
Description
Last updated