Skip to main content
Interface for GNSOtc facet (inherits types and also contains functions, events, and custom errors)

initializeOtc

Initializer for OTC facet

Parameters

updateOtcConfig

Updates OTC config

Parameters

addOtcCollateralBalance

Increases OTC balance for a collateral

Parameters

sellGnsForCollateral

OTC Buys GNS from caller for _amountCollateral of _collateralIndex

Parameters

getOtcConfig

Returns OTC Config

getOtcBalance

Returns OTC balance for a collateral (collateral precision)

Parameters

getOtcRate

Returns OTC rate (price + premium) of GNS in collateral (1e10)

Parameters

OtcConfigUpdated

Emitted when OTCConfig is updated

Parameters

OtcBalanceUpdated

Emitted when OTC balance is updated

Parameters

OtcExecuted

Emitted when an OTC trade is executed

Parameters

InvalidShareSum