IEmissionManager
Events
SaleCreated
forge-lint: disable-next-line(mixed-case-variable)
event SaleCreated(uint256 marketID, uint256 saleAmount);
BondMarketCreationFailed
event BondMarketCreationFailed(uint256 saleAmount);
BackingUpdated
event BackingUpdated(uint256 newBacking, uint256 supplyAdded, uint256 reservesAdded);
BaseRateChanged
Emitted when the base emission rate is changed
event BaseRateChanged(uint256 changeBy, uint48 forNumBeats, bool add);
MinimumPremiumChanged
Emitted when the minimum premium is changed
event MinimumPremiumChanged(uint256 newMinimumPremium);
VestingPeriodChanged
Emitted when the vesting period is changed
event VestingPeriodChanged(uint48 newVestingPeriod);
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);
RestartTimeframeChanged
Emitted when the restart timeframe is changed
event RestartTimeframeChanged(uint48 newRestartTimeframe);
BondContractsSet
Emitted when the bond contracts are set
event BondContractsSet(address auctioneer, address teller);
ConvertibleDepositAuctioneerSet
Emitted when the CD auctionner contract is set
event ConvertibleDepositAuctioneerSet(address auctioneer);
TickSizeChanged
Emitted when the tick size is changed
event TickSizeChanged(uint256 newTickSize);
MinPriceScalarChanged
Emitted when the minimum price scalar is changed
event MinPriceScalarChanged(uint256 newMinPriceScalar);
BondMarketCapacityScalarChanged
Emitted when the bond market capacity scalar is changed
event BondMarketCapacityScalarChanged(uint256 newBondMarketCapacityScalar);
Errors
OnlyTeller
error OnlyTeller();
InvalidMarket
error InvalidMarket();
InvalidCallback
error InvalidCallback();
InvalidParam
error InvalidParam(string parameter);
CannotRestartYet
error CannotRestartYet(uint48 availableAt);
RestartTimeframePassed
error RestartTimeframePassed();
Structs
BaseRateChange
struct BaseRateChange {
uint256 changeBy;
uint48 daysLeft;
bool addition;
}
EnableParams
Parameters for the enable function
struct EnableParams {
uint256 baseEmissionsRate;
uint256 minimumPremium;
uint256 backing;
uint256 tickSize;
uint256 minPriceScalar;
uint256 bondMarketCapacityScalar;
uint48 restartTimeframe;
}
Properties
| Name | Type | Description |
|---|---|---|
baseEmissionsRate | uint256 | percent of OHM supply to issue per day at the minimum premium, in OHM scale, i.e. 1e9 = 100% |
minimumPremium | uint256 | minimum premium at which to issue OHM, a percentage where 1e18 is 100% |
backing | uint256 | backing price of OHM in reserve token, in reserve scale |
tickSize | uint256 | fixed tick size in OHM decimals (9) |
minPriceScalar | uint256 | scalar for min price |
bondMarketCapacityScalar | uint256 | scalar for bond market capacity from auction remainders |
restartTimeframe | uint48 | time in seconds that the manager needs to be restarted after a shutdown, otherwise it must be re-initialized |