constructor
initializeOtc
Parameters
| Name | Type | Description |
|---|---|---|
| _config | IOtc.OtcConfig | new OTC Config |
updateOtcConfig
Parameters
| Name | Type | Description |
|---|---|---|
| _config | IOtc.OtcConfig | new OTC Config. Sum of treasuryShareP, stakingShareP, burnShareP must equal 100 and premiumP must be less than or equal to MAX_PREMIUM_P |
addOtcCollateralBalance
Parameters
| Name | Type | Description |
|---|---|---|
| _collateralIndex | uint8 | collateral index |
| _collateralAmount | uint256 | amount of collateral to increase (collateral precision) |
sellGnsForCollateral
_amountCollateral of _collateralIndex
Parameters
| Name | Type | Description |
|---|---|---|
| _collateralIndex | uint8 | collateral index |
| _collateralAmount | uint256 | amount of collateral to trade (collateral precision) |
getOtcConfig
getOtcBalance
Parameters
| Name | Type | Description |
|---|---|---|
| _collateralIndex | uint8 | collateral index |
getOtcRate
Parameters
| Name | Type | Description |
|---|---|---|
| _collateralIndex | uint8 | collateral index |
