Skip to main content
Facet #11: OTC (Handles buy backs and distribution)

constructor

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