Skip to main content

IEmissionManager

Git Source

Events​

SaleCreated​

forge-lint: disable-next-line(mixed-case-variable)

event SaleCreated(uint256 marketID, uint256 saleAmount);

Parameters

NameTypeDescription
marketIDuint256
saleAmountuint256

BondMarketCreationFailed​

event BondMarketCreationFailed(uint256 saleAmount);

Parameters

NameTypeDescription
saleAmountuint256

BackingUpdated​

event BackingUpdated(uint256 newBacking, uint256 supplyAdded, uint256 reservesAdded);

Parameters

NameTypeDescription
newBackinguint256
supplyAddeduint256
reservesAddeduint256

BaseRateChanged​

Emitted when the base emission rate is changed

event BaseRateChanged(uint256 changeBy, uint48 forNumBeats, bool add);

Parameters

NameTypeDescription
changeByuint256
forNumBeatsuint48
addbool

MinimumPremiumChanged​

Emitted when the minimum premium is changed

event MinimumPremiumChanged(uint256 newMinimumPremium);

Parameters

NameTypeDescription
newMinimumPremiumuint256

VestingPeriodChanged​

Emitted when the vesting period is changed

event VestingPeriodChanged(uint48 newVestingPeriod);

Parameters

NameTypeDescription
newVestingPerioduint48

BackingChanged​

Emitted when the backing is changed This differs from BackingUpdated in that it is emitted when the backing is changed directly by governance

event BackingChanged(uint256 newBacking);

Parameters

NameTypeDescription
newBackinguint256

RestartTimeframeChanged​

Emitted when the restart timeframe is changed

event RestartTimeframeChanged(uint48 newRestartTimeframe);

Parameters

NameTypeDescription
newRestartTimeframeuint48

BondContractsSet​

Emitted when the bond contracts are set

event BondContractsSet(address auctioneer, address teller);

Parameters

NameTypeDescription
auctioneeraddress
telleraddress

ConvertibleDepositAuctioneerSet​

Emitted when the CD auctionner contract is set

event ConvertibleDepositAuctioneerSet(address auctioneer);

Parameters

NameTypeDescription
auctioneeraddress

TickSizeChanged​

Emitted when the tick size is changed

event TickSizeChanged(uint256 newTickSize);

Parameters

NameTypeDescription
newTickSizeuint256

MinPriceScalarChanged​

Emitted when the minimum price scalar is changed

event MinPriceScalarChanged(uint256 newMinPriceScalar);

Parameters

NameTypeDescription
newMinPriceScalaruint256

BondMarketCapacityScalarChanged​

Emitted when the bond market capacity scalar is changed

event BondMarketCapacityScalarChanged(uint256 newBondMarketCapacityScalar);

Parameters

NameTypeDescription
newBondMarketCapacityScalaruint256

Errors​

OnlyTeller​

error OnlyTeller();

InvalidMarket​

error InvalidMarket();

InvalidCallback​

error InvalidCallback();

InvalidParam​

error InvalidParam(string parameter);

Parameters

NameTypeDescription
parameterstring

CannotRestartYet​

error CannotRestartYet(uint48 availableAt);

Parameters

NameTypeDescription
availableAtuint48

RestartTimeframePassed​

error RestartTimeframePassed();

Structs​

BaseRateChange​

struct BaseRateChange {
uint256 changeBy;
uint48 daysLeft;
bool addition;
}

Properties

NameTypeDescription
changeByuint256
daysLeftuint48
additionbool

EnableParams​

Parameters for the enable function

struct EnableParams {
uint256 baseEmissionsRate;
uint256 minimumPremium;
uint256 backing;
uint256 tickSize;
uint256 minPriceScalar;
uint256 bondMarketCapacityScalar;
uint48 restartTimeframe;
}

Properties

NameTypeDescription
baseEmissionsRateuint256percent of OHM supply to issue per day at the minimum premium, in OHM scale, i.e. 1e9 = 100%
minimumPremiumuint256minimum premium at which to issue OHM, a percentage where 1e18 is 100%
backinguint256backing price of OHM in reserve token, in reserve scale
tickSizeuint256fixed tick size in OHM decimals (9)
minPriceScalaruint256scalar for min price
bondMarketCapacityScalaruint256scalar for bond market capacity from auction remainders
restartTimeframeuint48time in seconds that the manager needs to be restarted after a shutdown, otherwise it must be re-initialized